From: Richard M. Stallman Date: Sun, 12 Sep 1993 12:36:30 +0000 (+0000) Subject: (bzero, bcopy, bcmp): Don't define as functions X-Git-Tag: emacs-19.34~11143 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=739f36e24364a80eb869f68b9ea90f7ffbc00d72;p=emacs.git (bzero, bcopy, bcmp): Don't define as functions if they are defined as macros. --- diff --git a/src/sysdep.c b/src/sysdep.c index 45d08959c7e..ba01fe56f67 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2303,6 +2303,8 @@ sys_sigsetmask (sigset_t new_mask) #ifndef BSTRING +#ifndef bzero + void bzero (b, length) register char *b; @@ -2325,6 +2327,9 @@ bzero (b, length) #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 @@ bcopy (b1, b2, length) *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 @@ bcmp (b1, b2, length) /* This could be a macro! */ return 0; #endif /* not VMS */ } +#endif /* no bcmp */ + #endif /* not BSTRING */ #ifndef HAVE_RANDOM