diff options
| author | Richard M. Stallman | 1993-09-12 12:36:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-09-12 12:36:30 +0000 |
| commit | 739f36e24364a80eb869f68b9ea90f7ffbc00d72 (patch) | |
| tree | cfe1e5ded4c6b5f7c83e97ef4416a48c5d97fe2a /src | |
| parent | 26ff8619bb91aea15614ab4ebdadc230f8b7312d (diff) | |
| download | emacs-739f36e24364a80eb869f68b9ea90f7ffbc00d72.tar.gz emacs-739f36e24364a80eb869f68b9ea90f7ffbc00d72.zip | |
(bzero, bcopy, bcmp): Don't define as functions
if they are defined as macros.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 9 |
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 | |||
| 2306 | void | 2308 | void |
| 2307 | bzero (b, length) | 2309 | bzero (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. */ |
| 2330 | bcopy (b1, b2, length) | 2335 | bcopy (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 | ||
| 2352 | int | 2359 | int |
| 2353 | bcmp (b1, b2, length) /* This could be a macro! */ | 2360 | bcmp (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 |