X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libiberty%2Fmemmove.c;h=ebda7cbb41caa9d0814658115c299e1d6874e517;hb=50aacf4cb70f166dfe8586465e953df262fe6340;hp=3ec73208ca7314287455b2ac94461fa2cd252da9;hpb=614a23c65d9eabed00a5fe30a4d0fa138b6aa5e9;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libiberty/memmove.c b/libiberty/memmove.c index 3ec73208ca7..ebda7cbb41c 100644 --- a/libiberty/memmove.c +++ b/libiberty/memmove.c @@ -3,7 +3,8 @@ /* -@deftypefn Supplemental void* memmove (void *@var{from}, const void *@var{to}, size_t @var{count}) +@deftypefn Supplemental void* memmove (void *@var{from}, const void *@var{to}, @ + size_t @var{count}) Copies @var{count} bytes from memory area @var{from} to memory area @var{to}, returning a pointer to @var{to}. @@ -13,17 +14,12 @@ Copies @var{count} bytes from memory area @var{from} to memory area */ #include -#ifdef __STDC__ #include -#else -#define size_t unsigned long -#endif + +void bcopy (const void*, void*, size_t); PTR -memmove (s1, s2, n) - PTR s1; - const PTR s2; - size_t n; +memmove (PTR s1, const PTR s2, size_t n) { bcopy (s2, s1, n); return s1;