aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-09-12 12:36:30 +0000
committerRichard M. Stallman1993-09-12 12:36:30 +0000
commit739f36e24364a80eb869f68b9ea90f7ffbc00d72 (patch)
treecfe1e5ded4c6b5f7c83e97ef4416a48c5d97fe2a
parent26ff8619bb91aea15614ab4ebdadc230f8b7312d (diff)
downloademacs-739f36e24364a80eb869f68b9ea90f7ffbc00d72.tar.gz
emacs-739f36e24364a80eb869f68b9ea90f7ffbc00d72.zip
(bzero, bcopy, bcmp): Don't define as functions
if they are defined as macros.
-rw-r--r--src/sysdep.c9
1 files changed, 9 insertions, 0 deletions
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)
2303 2303
2304#ifndef BSTRING 2304#ifndef BSTRING
2305 2305
2306#ifndef bzero
2307
2306void 2308void
2307bzero (b, length) 2309bzero (b, length)
2308 register char *b; 2310 register char *b;
@@ -2325,6 +2327,9 @@ bzero (b, length)
2325#endif /* not VMS */ 2327#endif /* not VMS */
2326} 2328}
2327 2329
2330#endif /* no bzero */
2331
2332#ifndef bcopy
2328/* Saying `void' requires a declaration, above, where bcopy is used 2333/* Saying `void' requires a declaration, above, where bcopy is used
2329 and that declaration causes pain for systems where bcopy is a macro. */ 2334 and that declaration causes pain for systems where bcopy is a macro. */
2330bcopy (b1, b2, length) 2335bcopy (b1, b2, length)
@@ -2348,7 +2353,9 @@ bcopy (b1, b2, length)
2348 *b2++ = *b1++; 2353 *b2++ = *b1++;
2349#endif /* not VMS */ 2354#endif /* not VMS */
2350} 2355}
2356#endif /* no bcopy */
2351 2357
2358#ifndef bcmp
2352int 2359int
2353bcmp (b1, b2, length) /* This could be a macro! */ 2360bcmp (b1, b2, length) /* This could be a macro! */
2354 register char *b1; 2361 register char *b1;
@@ -2368,6 +2375,8 @@ bcmp (b1, b2, length) /* This could be a macro! */
2368 return 0; 2375 return 0;
2369#endif /* not VMS */ 2376#endif /* not VMS */
2370} 2377}
2378#endif /* no bcmp */
2379
2371#endif /* not BSTRING */ 2380#endif /* not BSTRING */
2372 2381
2373#ifndef HAVE_RANDOM 2382#ifndef HAVE_RANDOM