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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 15 | ||||
| -rw-r--r-- | src/config.in | 73 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 3 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 3 | ||||
| -rw-r--r-- | src/s/cygwin.h | 3 | ||||
| -rw-r--r-- | src/s/darwin.h | 3 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 3 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 6 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 2 | ||||
| -rw-r--r-- | src/s/msdos.h | 3 | ||||
| -rw-r--r-- | src/s/template.h | 3 | ||||
| -rw-r--r-- | src/s/usg5-4.h | 2 | ||||
| -rw-r--r-- | src/sysdep.c | 48 |
13 files changed, 49 insertions, 118 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e7ac2d066b0..608e6b28395 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | Remove BSTRING related code, all platforms define it. | ||
| 4 | * s/usg5-4.h (BSTRING): Remove definition. | ||
| 5 | * s/template.h (BSTRING): | ||
| 6 | * s/msdos.h (BSTRING): | ||
| 7 | * s/ms-w32.h (BSTRING): | ||
| 8 | * s/hpux10-20.h (BSTRING): | ||
| 9 | * s/gnu-linux.h (BSTRING): | ||
| 10 | * s/darwin.h (BSTRING): | ||
| 11 | * s/cygwin.h (BSTRING): | ||
| 12 | * s/bsd-common.h (BSTRING): | ||
| 13 | * s/aix4-2.h (BSTRING): Likewise. | ||
| 14 | * sysdep.c: Remove code depending on BSTRING not being defined. | ||
| 15 | |||
| 1 | 2010-06-05 Juanma Barranquero <lekktu@gmail.com> | 16 | 2010-06-05 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 17 | ||
| 3 | Remove obsolete macro BASE_LEADING_CODE_P. | 18 | Remove obsolete macro BASE_LEADING_CODE_P. |
diff --git a/src/config.in b/src/config.in index 1197a01e8f7..997e4668421 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -312,10 +312,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 312 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ | 312 | /* Define to 1 if you have the <kerberos/krb.h> header file. */ |
| 313 | #undef HAVE_KERBEROS_KRB_H | 313 | #undef HAVE_KERBEROS_KRB_H |
| 314 | 314 | ||
| 315 | /* Define to 1 if `e_text' is member of `krb5_error'. */ | 315 | /* Define to 1 if `e_text' is a member of `krb5_error'. */ |
| 316 | #undef HAVE_KRB5_ERROR_E_TEXT | 316 | #undef HAVE_KRB5_ERROR_E_TEXT |
| 317 | 317 | ||
| 318 | /* Define to 1 if `text' is member of `krb5_error'. */ | 318 | /* Define to 1 if `text' is a member of `krb5_error'. */ |
| 319 | #undef HAVE_KRB5_ERROR_TEXT | 319 | #undef HAVE_KRB5_ERROR_TEXT |
| 320 | 320 | ||
| 321 | /* Define to 1 if you have the <krb5.h> header file. */ | 321 | /* Define to 1 if you have the <krb5.h> header file. */ |
| @@ -606,25 +606,25 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 606 | /* Define to 1 if you have the `strsignal' function. */ | 606 | /* Define to 1 if you have the `strsignal' function. */ |
| 607 | #undef HAVE_STRSIGNAL | 607 | #undef HAVE_STRSIGNAL |
| 608 | 608 | ||
| 609 | /* Define to 1 if `ifr_addr' is member of `struct ifreq'. */ | 609 | /* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */ |
| 610 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR | 610 | #undef HAVE_STRUCT_IFREQ_IFR_ADDR |
| 611 | 611 | ||
| 612 | /* Define to 1 if `ifr_broadaddr' is member of `struct ifreq'. */ | 612 | /* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */ |
| 613 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR | 613 | #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR |
| 614 | 614 | ||
| 615 | /* Define to 1 if `ifr_flags' is member of `struct ifreq'. */ | 615 | /* Define to 1 if `ifr_flags' is a member of `struct ifreq'. */ |
| 616 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS | 616 | #undef HAVE_STRUCT_IFREQ_IFR_FLAGS |
| 617 | 617 | ||
| 618 | /* Define to 1 if `ifr_hwaddr' is member of `struct ifreq'. */ | 618 | /* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */ |
| 619 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR | 619 | #undef HAVE_STRUCT_IFREQ_IFR_HWADDR |
| 620 | 620 | ||
| 621 | /* Define to 1 if `ifr_netmask' is member of `struct ifreq'. */ | 621 | /* Define to 1 if `ifr_netmask' is a member of `struct ifreq'. */ |
| 622 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK | 622 | #undef HAVE_STRUCT_IFREQ_IFR_NETMASK |
| 623 | 623 | ||
| 624 | /* Define to 1 if `n_un.n_name' is member of `struct nlist'. */ | 624 | /* Define to 1 if `n_un.n_name' is a member of `struct nlist'. */ |
| 625 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME | 625 | #undef HAVE_STRUCT_NLIST_N_UN_N_NAME |
| 626 | 626 | ||
| 627 | /* Define to 1 if `tm_zone' is member of `struct tm'. */ | 627 | /* Define to 1 if `tm_zone' is a member of `struct tm'. */ |
| 628 | #undef HAVE_STRUCT_TM_TM_ZONE | 628 | #undef HAVE_STRUCT_TM_TM_ZONE |
| 629 | 629 | ||
| 630 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ | 630 | /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ |
| @@ -853,6 +853,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 853 | /* Define to the one symbol short name of this package. */ | 853 | /* Define to the one symbol short name of this package. */ |
| 854 | #undef PACKAGE_TARNAME | 854 | #undef PACKAGE_TARNAME |
| 855 | 855 | ||
| 856 | /* Define to the home page for this package. */ | ||
| 857 | #undef PACKAGE_URL | ||
| 858 | |||
| 856 | /* Define to the version of this package. */ | 859 | /* Define to the version of this package. */ |
| 857 | #undef PACKAGE_VERSION | 860 | #undef PACKAGE_VERSION |
| 858 | 861 | ||
| @@ -912,6 +915,28 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 912 | /* Define to 1 if using the Motif X toolkit. */ | 915 | /* Define to 1 if using the Motif X toolkit. */ |
| 913 | #undef USE_MOTIF | 916 | #undef USE_MOTIF |
| 914 | 917 | ||
| 918 | /* Enable extensions on AIX 3, Interix. */ | ||
| 919 | #ifndef _ALL_SOURCE | ||
| 920 | # undef _ALL_SOURCE | ||
| 921 | #endif | ||
| 922 | /* Enable GNU extensions on systems that have them. */ | ||
| 923 | #ifndef _GNU_SOURCE | ||
| 924 | # undef _GNU_SOURCE | ||
| 925 | #endif | ||
| 926 | /* Enable threading extensions on Solaris. */ | ||
| 927 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 928 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 929 | #endif | ||
| 930 | /* Enable extensions on HP NonStop. */ | ||
| 931 | #ifndef _TANDEM_SOURCE | ||
| 932 | # undef _TANDEM_SOURCE | ||
| 933 | #endif | ||
| 934 | /* Enable general extensions on Solaris. */ | ||
| 935 | #ifndef __EXTENSIONS__ | ||
| 936 | # undef __EXTENSIONS__ | ||
| 937 | #endif | ||
| 938 | |||
| 939 | |||
| 915 | /* Define to 1 if we should use toolkit scroll bars. */ | 940 | /* Define to 1 if we should use toolkit scroll bars. */ |
| 916 | #undef USE_TOOLKIT_SCROLL_BARS | 941 | #undef USE_TOOLKIT_SCROLL_BARS |
| 917 | 942 | ||
| @@ -947,28 +972,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 947 | /* Define to 1 if you need to in order for `stat' and other things to work. */ | 972 | /* Define to 1 if you need to in order for `stat' and other things to work. */ |
| 948 | #undef _POSIX_SOURCE | 973 | #undef _POSIX_SOURCE |
| 949 | 974 | ||
| 950 | /* Enable extensions on AIX 3, Interix. */ | ||
| 951 | #ifndef _ALL_SOURCE | ||
| 952 | # undef _ALL_SOURCE | ||
| 953 | #endif | ||
| 954 | /* Enable GNU extensions on systems that have them. */ | ||
| 955 | #ifndef _GNU_SOURCE | ||
| 956 | # undef _GNU_SOURCE | ||
| 957 | #endif | ||
| 958 | /* Enable threading extensions on Solaris. */ | ||
| 959 | #ifndef _POSIX_PTHREAD_SEMANTICS | ||
| 960 | # undef _POSIX_PTHREAD_SEMANTICS | ||
| 961 | #endif | ||
| 962 | /* Enable extensions on HP NonStop. */ | ||
| 963 | #ifndef _TANDEM_SOURCE | ||
| 964 | # undef _TANDEM_SOURCE | ||
| 965 | #endif | ||
| 966 | /* Enable general extensions on Solaris. */ | ||
| 967 | #ifndef __EXTENSIONS__ | ||
| 968 | # undef __EXTENSIONS__ | ||
| 969 | #endif | ||
| 970 | |||
| 971 | |||
| 972 | /* Define to rpl_ if the getopt replacement functions and variables should be | 975 | /* Define to rpl_ if the getopt replacement functions and variables should be |
| 973 | used. */ | 976 | used. */ |
| 974 | #undef __GETOPT_PREFIX | 977 | #undef __GETOPT_PREFIX |
| @@ -1093,14 +1096,6 @@ SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ | |||
| 1093 | 1096 | ||
| 1094 | #define my_strftime nstrftime /* for strftime.c */ | 1097 | #define my_strftime nstrftime /* for strftime.c */ |
| 1095 | 1098 | ||
| 1096 | /* The rest of the code currently tests the CPP symbol BSTRING. | ||
| 1097 | Override any claims made by the system-description files. | ||
| 1098 | Note that on some SCO version it is possible to have bcopy and not bcmp. */ | ||
| 1099 | #undef BSTRING | ||
| 1100 | #if defined (HAVE_BCOPY) && defined (HAVE_BCMP) | ||
| 1101 | #define BSTRING | ||
| 1102 | #endif | ||
| 1103 | |||
| 1104 | /* Some of the files of Emacs which are intended for use with other | 1099 | /* Some of the files of Emacs which are intended for use with other |
| 1105 | programs assume that if you have a config.h file, you must declare | 1100 | programs assume that if you have a config.h file, you must declare |
| 1106 | the type of getenv. */ | 1101 | the type of getenv. */ |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 32c29675012..48f43126fd9 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -52,9 +52,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 52 | functions. Almost, but not quite the same as the 4.2 functions. */ | 52 | functions. Almost, but not quite the same as the 4.2 functions. */ |
| 53 | #define SYSV_SYSTEM_DIR | 53 | #define SYSV_SYSTEM_DIR |
| 54 | 54 | ||
| 55 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 56 | #define BSTRING | ||
| 57 | |||
| 58 | /* The file containing the kernel's symbol table is called /unix. */ | 55 | /* The file containing the kernel's symbol table is called /unix. */ |
| 59 | #define KERNEL_FILE "/unix" | 56 | #define KERNEL_FILE "/unix" |
| 60 | 57 | ||
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index 1d7ebbace13..ffb7a637488 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -71,9 +71,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 71 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 71 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
| 72 | #define HAVE_SOCKETS | 72 | #define HAVE_SOCKETS |
| 73 | 73 | ||
| 74 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 75 | #define BSTRING | ||
| 76 | |||
| 77 | /* Define CLASH_DETECTION if you want lock files to be written | 74 | /* Define CLASH_DETECTION if you want lock files to be written |
| 78 | so that Emacs can tell instantly when you try to modify | 75 | so that Emacs can tell instantly when you try to modify |
| 79 | a file that someone else has modified in his Emacs. */ | 76 | a file that someone else has modified in his Emacs. */ |
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 6204cee392b..93df925fcab 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -73,9 +73,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 73 | } \ | 73 | } \ |
| 74 | while (0) | 74 | while (0) |
| 75 | 75 | ||
| 76 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 77 | #define BSTRING | ||
| 78 | |||
| 79 | /* Define CLASH_DETECTION if you want lock files to be written | 76 | /* Define CLASH_DETECTION if you want lock files to be written |
| 80 | so that Emacs can tell instantly when you try to modify | 77 | so that Emacs can tell instantly when you try to modify |
| 81 | a file that someone else has modified in his Emacs. */ | 78 | a file that someone else has modified in his Emacs. */ |
diff --git a/src/s/darwin.h b/src/s/darwin.h index 399c3d325c1..5c8db1242e1 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -99,9 +99,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 99 | for process-connection-type dependent on the kernel version. */ | 99 | for process-connection-type dependent on the kernel version. */ |
| 100 | #define MIN_PTY_KERNEL_VERSION '7' | 100 | #define MIN_PTY_KERNEL_VERSION '7' |
| 101 | 101 | ||
| 102 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 103 | #define BSTRING | ||
| 104 | |||
| 105 | /* Define CLASH_DETECTION if you want lock files to be written | 102 | /* Define CLASH_DETECTION if you want lock files to be written |
| 106 | so that Emacs can tell instantly when you try to modify | 103 | so that Emacs can tell instantly when you try to modify |
| 107 | a file that someone else has modified in his Emacs. */ | 104 | a file that someone else has modified in his Emacs. */ |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 8b63865d9f9..80092f725fc 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -89,9 +89,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 89 | 89 | ||
| 90 | #define HAVE_SOCKETS | 90 | #define HAVE_SOCKETS |
| 91 | 91 | ||
| 92 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 93 | #define BSTRING | ||
| 94 | |||
| 95 | /* This is used in list_system_processes. */ | 92 | /* This is used in list_system_processes. */ |
| 96 | #define HAVE_PROCFS 1 | 93 | #define HAVE_PROCFS 1 |
| 97 | 94 | ||
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 1a9c2056632..8d9c73e2368 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -45,12 +45,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 45 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 45 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
| 46 | #define HAVE_SOCKETS | 46 | #define HAVE_SOCKETS |
| 47 | 47 | ||
| 48 | /* Define this symbol if your system has the functions bcopy, etc. | ||
| 49 | s800 and later versions of s300 (s200) kernels have equivalents | ||
| 50 | of the BSTRING functions of BSD. If your s200 kernel doesn't have | ||
| 51 | em comment out this section. */ | ||
| 52 | #define BSTRING | ||
| 53 | |||
| 54 | /* Define CLASH_DETECTION if you want lock files to be written | 48 | /* Define CLASH_DETECTION if you want lock files to be written |
| 55 | so that Emacs can tell instantly when you try to modify | 49 | so that Emacs can tell instantly when you try to modify |
| 56 | a file that someone else has modified in his Emacs. */ | 50 | a file that someone else has modified in his Emacs. */ |
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 1fcf73d2578..ea32373e02b 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -63,8 +63,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | for received packets, so datagrams are broken too. */ | 63 | for received packets, so datagrams are broken too. */ |
| 64 | #define BROKEN_DATAGRAM_SOCKETS 1 | 64 | #define BROKEN_DATAGRAM_SOCKETS 1 |
| 65 | 65 | ||
| 66 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 67 | #define BSTRING | ||
| 68 | #define bzero(b, l) memset(b, 0, l) | 66 | #define bzero(b, l) memset(b, 0, l) |
| 69 | #define bcopy(s, d, l) memmove(d, s, l) | 67 | #define bcopy(s, d, l) memmove(d, s, l) |
| 70 | #define bcmp(a, b, l) memcmp(a, b, l) | 68 | #define bcmp(a, b, l) memcmp(a, b, l) |
diff --git a/src/s/msdos.h b/src/s/msdos.h index c78096c6b90..af272635968 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h | |||
| @@ -42,9 +42,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 42 | 42 | ||
| 43 | #define SYSV_SYSTEM_DIR | 43 | #define SYSV_SYSTEM_DIR |
| 44 | 44 | ||
| 45 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 46 | #define BSTRING | ||
| 47 | |||
| 48 | /* Define this is the compiler understands `volatile'. */ | 45 | /* Define this is the compiler understands `volatile'. */ |
| 49 | #define HAVE_VOLATILE | 46 | #define HAVE_VOLATILE |
| 50 | 47 | ||
diff --git a/src/s/template.h b/src/s/template.h index f355d67b8c6..694a1046566 100644 --- a/src/s/template.h +++ b/src/s/template.h | |||
| @@ -78,9 +78,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 78 | /* Define HAVE_PTYS if the system supports pty devices. */ | 78 | /* Define HAVE_PTYS if the system supports pty devices. */ |
| 79 | #define HAVE_PTYS | 79 | #define HAVE_PTYS |
| 80 | 80 | ||
| 81 | /* Define this symbol if your system has the functions bcopy, etc. */ | ||
| 82 | #define BSTRING | ||
| 83 | |||
| 84 | /* subprocesses should be undefined if you do NOT want to | 81 | /* subprocesses should be undefined if you do NOT want to |
| 85 | have code for asynchronous subprocesses | 82 | have code for asynchronous subprocesses |
| 86 | (as used in M-x compile and M-x shell). | 83 | (as used in M-x compile and M-x shell). |
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h index 9810ab3e67f..b3518d7db9f 100644 --- a/src/s/usg5-4.h +++ b/src/s/usg5-4.h | |||
| @@ -63,8 +63,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | 63 | ||
| 64 | /* If we're using the System V X port, BSD bstring functions will be handy. */ | 64 | /* If we're using the System V X port, BSD bstring functions will be handy. */ |
| 65 | #ifdef HAVE_X_WINDOWS | 65 | #ifdef HAVE_X_WINDOWS |
| 66 | #define BSTRING | ||
| 67 | #endif /* HAVE_X_WINDOWS */ | ||
| 68 | 66 | ||
| 69 | /* On USG systems signal handlers return void. */ | 67 | /* On USG systems signal handlers return void. */ |
| 70 | #define SIGTYPE void | 68 | #define SIGTYPE void |
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) |