/[pcre]/code/trunk/pcre_internal.h
ViewVC logotype

Diff of /code/trunk/pcre_internal.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 96 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 108 by ph10, Wed Mar 7 11:11:23 2007 UTC
# Line 189  need to have their names changed. PCRE m Line 189  need to have their names changed. PCRE m
189  option on the command line. */  option on the command line. */
190    
191  #ifdef VPCOMPAT  #ifdef VPCOMPAT
192    #define strlen(s)        _strlen(s)
193  #define strncmp(s1,s2,m) _strncmp(s1,s2,m)  #define strncmp(s1,s2,m) _strncmp(s1,s2,m)
194    #define memcmp(s,c,n)    _memcmp(s,c,n)
195  #define memcpy(d,s,n)    _memcpy(d,s,n)  #define memcpy(d,s,n)    _memcpy(d,s,n)
196  #define memmove(d,s,n)   _memmove(d,s,n)  #define memmove(d,s,n)   _memmove(d,s,n)
197  #define memset(s,c,n)    _memset(s,c,n)  #define memset(s,c,n)    _memset(s,c,n)
# Line 208  case in PCRE. */ Line 210  case in PCRE. */
210  #define memmove(a, b, c) bcopy(b, a, c)  #define memmove(a, b, c) bcopy(b, a, c)
211  #else  /* HAVE_BCOPY */  #else  /* HAVE_BCOPY */
212  static void *  static void *
213  pcre_memmove(unsigned char *dest, const unsigned char *src, size_t n)  pcre_memmove(void *d, const void *s, size_t n)
214  {  {
215  size_t i;  size_t i;
216    unsigned char *dest = (unsigned char *)d;
217    const unsigned char *src = (const unsigned char *)s;
218  dest += n;  dest += n;
219  src += n;  src += n;
220  for (i = 0; i < n; ++i) *(--dest) =  *(--src);  for (i = 0; i < n; ++i) *(--dest) = *(--src);
221  return dest;  return (void *)dest;
222  }  }
223  #define memmove(a, b, c) pcre_memmove(a, b, c)  #define memmove(a, b, c) pcre_memmove(a, b, c)
224  #endif   /* not HAVE_BCOPY */  #endif   /* not HAVE_BCOPY */

Legend:
Removed from v.96  
changed lines
  Added in v.108

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12