[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] bcopy patch to assume C89 or better

From: Paul Eggert
Subject: [Bug-gnulib] bcopy patch to assume C89 or better
Date: 08 Sep 2003 16:18:19 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I installed this:

2003-09-08  Paul Eggert  <address@hidden>

        * bcopy.c: Include <stddef.h>.
        (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.

--- bcopy.c.~  Sat Nov  7 18:50:45 1992
+++ bcopy.c     Mon Sep  8 16:16:23 2003
@@ -3,11 +3,13 @@
    In the public domain.
    By David MacKenzie <address@hidden>.  */
+#include <stddef.h>
-bcopy (source, dest, length)
-     char *source, *dest;
-     unsigned length;
+bcopy (void const *source0, void *dest0, size_t length)
+  char const *source = source0;
+  char *dest = dest0;
   if (source < dest)
     /* Moving from low mem to hi mem; start at end.  */
     for (source += length, dest += length; length; --length)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]