diff options
| author | Dan Nicolaescu | 2010-06-06 01:57:39 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-06-06 01:57:39 -0700 |
| commit | 3085237cdc02088dc5ffbdda813b768970592d1e (patch) | |
| tree | d5c8d090e20ad5f05374f07f11cf413b523f40b7 /src/sysdep.c | |
| parent | eccdfe5fd18f4b573e9eada179242c513b3024b1 (diff) | |
| download | emacs-3085237cdc02088dc5ffbdda813b768970592d1e.tar.gz emacs-3085237cdc02088dc5ffbdda813b768970592d1e.zip | |
Remove BSTRING related code, all platforms define it.
* src/s/usg5-4.h (BSTRING): Remove definition.
* src/s/template.h (BSTRING):
* src/s/msdos.h (BSTRING):
* src/s/ms-w32.h (BSTRING):
* src/s/hpux10-20.h (BSTRING):
* src/s/gnu-linux.h (BSTRING):
* src/s/darwin.h (BSTRING):
* src/s/cygwin.h (BSTRING):
* src/s/bsd-common.h (BSTRING):
* src/s/aix4-2.h (BSTRING): Likewise.
* src/sysdep.c: Remove code depending on BSTRING not being defined.
* configure.in: Remove code dealing with BSTRING.
* lib-src/ntlib.h: Remove code dealing with BSTRING.
* nt/config.nt: Remove code depending on BSTRING.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index ba2a7493d74..e311d181c9c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -2752,54 +2752,6 @@ rmdir (dpath) | |||
| 2752 | #endif /* !HAVE_RMDIR */ | 2752 | #endif /* !HAVE_RMDIR */ |
| 2753 | 2753 | ||
| 2754 | 2754 | ||
| 2755 | #ifndef BSTRING | ||
| 2756 | |||
| 2757 | #ifndef bzero | ||
| 2758 | |||
| 2759 | void | ||
| 2760 | bzero (b, length) | ||
| 2761 | register char *b; | ||
| 2762 | register int length; | ||
| 2763 | { | ||
| 2764 | while (length-- > 0) | ||
| 2765 | *b++ = 0; | ||
| 2766 | } | ||
| 2767 | |||
| 2768 | #endif /* no bzero */ | ||
| 2769 | #endif /* BSTRING */ | ||
| 2770 | |||
| 2771 | #if (!defined (BSTRING) && !defined (bcopy)) || defined (NEED_BCOPY) | ||
| 2772 | #undef bcopy | ||
| 2773 | |||
| 2774 | /* Saying `void' requires a declaration, above, where bcopy is used | ||
| 2775 | and that declaration causes pain for systems where bcopy is a macro. */ | ||
| 2776 | bcopy (b1, b2, length) | ||
| 2777 | register char *b1; | ||
| 2778 | register char *b2; | ||
| 2779 | register int length; | ||
| 2780 | { | ||
| 2781 | while (length-- > 0) | ||
| 2782 | *b2++ = *b1++; | ||
| 2783 | } | ||
| 2784 | #endif /* (!defined (BSTRING) && !defined (bcopy)) || defined (NEED_BCOPY) */ | ||
| 2785 | |||
| 2786 | #ifndef BSTRING | ||
| 2787 | #ifndef bcmp | ||
| 2788 | int | ||
| 2789 | bcmp (b1, b2, length) /* This could be a macro! */ | ||
| 2790 | register char *b1; | ||
| 2791 | register char *b2; | ||
| 2792 | register int length; | ||
| 2793 | { | ||
| 2794 | while (length-- > 0) | ||
| 2795 | if (*b1++ != *b2++) | ||
| 2796 | return 1; | ||
| 2797 | |||
| 2798 | return 0; | ||
| 2799 | } | ||
| 2800 | #endif /* no bcmp */ | ||
| 2801 | #endif /* not BSTRING */ | ||
| 2802 | |||
| 2803 | #ifndef HAVE_STRSIGNAL | 2755 | #ifndef HAVE_STRSIGNAL |
| 2804 | char * | 2756 | char * |
| 2805 | strsignal (code) | 2757 | strsignal (code) |