changeset 4708:a915b866ac7f

(bzero, bcopy, bcmp): Don't define as functions if they are defined as macros.
author Richard M. Stallman <rms@gnu.org>
date Sun, 12 Sep 1993 12:36:30 +0000
parents ca55f9c620c5
children c3caa44eff82
files src/sysdep.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sun Sep 12 11:25:16 1993 +0000
+++ b/src/sysdep.c	Sun Sep 12 12:36:30 1993 +0000
@@ -2303,6 +2303,8 @@
 
 #ifndef BSTRING
 
+#ifndef bzero
+
 void
 bzero (b, length)
      register char *b;
@@ -2325,6 +2327,9 @@
 #endif /* not VMS */
 }
 
+#endif /* no bzero */
+
+#ifndef bcopy
 /* Saying `void' requires a declaration, above, where bcopy is used
    and that declaration causes pain for systems where bcopy is a macro.  */
 bcopy (b1, b2, length)
@@ -2348,7 +2353,9 @@
     *b2++ = *b1++;
 #endif /* not VMS */
 }
-
+#endif /* no bcopy */
+
+#ifndef bcmp
 int
 bcmp (b1, b2, length)	/* This could be a macro! */
      register char *b1;
@@ -2368,6 +2375,8 @@
   return 0;
 #endif /* not VMS */
 }
+#endif /* no bcmp */
+
 #endif /* not BSTRING */
 
 #ifndef HAVE_RANDOM