/[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 101 by ph10, Tue Mar 6 15:19:44 2007 UTC revision 108 by ph10, Wed Mar 7 11:11:23 2007 UTC
# Line 210  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.101  
changed lines
  Added in v.108

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12