emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r100534: Remove BSTRING related code,


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100534: Remove BSTRING related code, all platforms define it.
Date: Sun, 06 Jun 2010 01:57:39 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100534
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Sun 2010-06-06 01:57:39 -0700
message:
  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.
modified:
  ChangeLog
  admin/CPP-DEFINES
  configure.in
  lib-src/ChangeLog
  lib-src/ntlib.h
  nt/ChangeLog
  nt/config.nt
  src/ChangeLog
  src/config.in
  src/s/aix4-2.h
  src/s/bsd-common.h
  src/s/cygwin.h
  src/s/darwin.h
  src/s/gnu-linux.h
  src/s/hpux10-20.h
  src/s/ms-w32.h
  src/s/msdos.h
  src/s/template.h
  src/s/usg5-4.h
  src/sysdep.c
=== modified file 'ChangeLog'
--- a/ChangeLog 2010-06-03 22:28:51 +0000
+++ b/ChangeLog 2010-06-06 08:57:39 +0000
@@ -1,3 +1,7 @@
+2010-06-06  Dan Nicolaescu  <address@hidden>
+
+       * configure.in: Remove code dealing with BSTRING.
+
 2010-06-03  Dan Nicolaescu  <address@hidden>
 
        * configure.in (AC_PREREQ): Require autoconf 2.65.

=== modified file 'admin/CPP-DEFINES'
--- a/admin/CPP-DEFINES 2010-06-03 22:16:02 +0000
+++ b/admin/CPP-DEFINES 2010-06-06 08:57:39 +0000
@@ -49,7 +49,6 @@
 USE_LISP_UNION_TYPE Define it in lisp.h to make Lisp_Object be a union type 
instead of the default int.
 
 ** System specific macros, decribed in detail in src/s/template.h
-BSTRING
 CLASH_DETECTION
 COFF
 FIRST_PTY_LETTER

=== modified file 'configure.in'
--- a/configure.in      2010-06-03 22:28:51 +0000
+++ b/configure.in      2010-06-06 08:57:39 +0000
@@ -3565,14 +3565,6 @@
 
 #define my_strftime nstrftime  /* for strftime.c */
 
-/* The rest of the code currently tests the CPP symbol BSTRING.
-   Override any claims made by the system-description files.
-   Note that on some SCO version it is possible to have bcopy and not bcmp.  */
-#undef BSTRING
-#if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
-#define BSTRING
-#endif
-
 /* Some of the files of Emacs which are intended for use with other
    programs assume that if you have a config.h file, you must declare
    the type of getenv.  */

=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2010-05-29 23:50:47 +0000
+++ b/lib-src/ChangeLog 2010-06-06 08:57:39 +0000
@@ -1,3 +1,7 @@
+2010-06-06  Dan Nicolaescu  <address@hidden>
+
+       * ntlib.h: Remove code dealing with BSTRING.
+
 2010-05-29  Chong Yidong  <address@hidden>
 
        * emacsclient.c (longopts, decode_options, print_help_and_exit):

=== modified file 'lib-src/ntlib.h'
--- a/lib-src/ntlib.h   2010-04-19 15:07:52 +0000
+++ b/lib-src/ntlib.h   2010-06-06 08:57:39 +0000
@@ -43,12 +43,6 @@
 char * getpass (const char * prompt);
 int fchown (int fd, unsigned uid, unsigned gid);
 
-#ifndef BSTRING
-#define bzero(b, l) memset(b, 0, l)
-#define bcopy(s, d, l) memcpy(d, s, l)
-#define bcmp(a, b, l) memcmp(a, b, l)
-#endif
-
 /* redirect or undo interceptions created by config.h */
 #undef access
 #define access  _access

=== modified file 'nt/ChangeLog'
--- a/nt/ChangeLog      2010-06-03 05:29:02 +0000
+++ b/nt/ChangeLog      2010-06-06 08:57:39 +0000
@@ -1,3 +1,7 @@
+2010-06-06  Dan Nicolaescu  <address@hidden>
+
+       * config.nt: Remove code depending on BSTRING.
+
 2010-06-03  Glenn Morris  <address@hidden>
 
        * config.nt: Remove NOT_C_CODE tests, it is always true now.

=== modified file 'nt/config.nt'
--- a/nt/config.nt      2010-06-03 05:29:02 +0000
+++ b/nt/config.nt      2010-06-06 08:57:39 +0000
@@ -347,14 +347,6 @@
 
 #define my_strftime nstrftime   /* for strftime.c */
 
-/* The rest of the code currently tests the CPP symbol BSTRING.
-   Override any claims made by the system-description files.
-   Note that on some SCO version it is possible to have bcopy and not bcmp.  */
-#undef BSTRING
-#if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
-#define BSTRING
-#endif
-
 /* Non-ANSI C compilers usually don't have volatile.  */
 #ifndef HAVE_VOLATILE
 #ifndef __STDC__

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-06-05 00:41:32 +0000
+++ b/src/ChangeLog     2010-06-06 08:57:39 +0000
@@ -1,3 +1,18 @@
+2010-06-06  Dan Nicolaescu  <address@hidden>
+
+       Remove BSTRING related code, all platforms define it.
+       * s/usg5-4.h (BSTRING): Remove definition.
+       * s/template.h (BSTRING):
+       * s/msdos.h (BSTRING):
+       * s/ms-w32.h (BSTRING):
+       * s/hpux10-20.h (BSTRING):
+       * s/gnu-linux.h (BSTRING):
+       * s/darwin.h (BSTRING):
+       * s/cygwin.h (BSTRING):
+       * s/bsd-common.h (BSTRING):
+       * s/aix4-2.h (BSTRING): Likewise.
+       * sysdep.c: Remove code depending on BSTRING not being defined.
+
 2010-06-05  Juanma Barranquero  <address@hidden>
 
        Remove obsolete macro BASE_LEADING_CODE_P.

=== modified file 'src/config.in'
--- a/src/config.in     2010-06-03 05:47:09 +0000
+++ b/src/config.in     2010-06-06 08:57:39 +0000
@@ -312,10 +312,10 @@
 /* Define to 1 if you have the <kerberos/krb.h> header file. */
 #undef HAVE_KERBEROS_KRB_H
 
-/* Define to 1 if `e_text' is member of `krb5_error'. */
+/* Define to 1 if `e_text' is a member of `krb5_error'. */
 #undef HAVE_KRB5_ERROR_E_TEXT
 
-/* Define to 1 if `text' is member of `krb5_error'. */
+/* Define to 1 if `text' is a member of `krb5_error'. */
 #undef HAVE_KRB5_ERROR_TEXT
 
 /* Define to 1 if you have the <krb5.h> header file. */
@@ -606,25 +606,25 @@
 /* Define to 1 if you have the `strsignal' function. */
 #undef HAVE_STRSIGNAL
 
-/* Define to 1 if `ifr_addr' is member of `struct ifreq'. */
+/* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */
 #undef HAVE_STRUCT_IFREQ_IFR_ADDR
 
-/* Define to 1 if `ifr_broadaddr' is member of `struct ifreq'. */
+/* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */
 #undef HAVE_STRUCT_IFREQ_IFR_BROADADDR
 
-/* Define to 1 if `ifr_flags' is member of `struct ifreq'. */
+/* Define to 1 if `ifr_flags' is a member of `struct ifreq'. */
 #undef HAVE_STRUCT_IFREQ_IFR_FLAGS
 
-/* Define to 1 if `ifr_hwaddr' is member of `struct ifreq'. */
+/* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */
 #undef HAVE_STRUCT_IFREQ_IFR_HWADDR
 
-/* Define to 1 if `ifr_netmask' is member of `struct ifreq'. */
+/* Define to 1 if `ifr_netmask' is a member of `struct ifreq'. */
 #undef HAVE_STRUCT_IFREQ_IFR_NETMASK
 
-/* Define to 1 if `n_un.n_name' is member of `struct nlist'. */
+/* Define to 1 if `n_un.n_name' is a member of `struct nlist'. */
 #undef HAVE_STRUCT_NLIST_N_UN_N_NAME
 
-/* Define to 1 if `tm_zone' is member of `struct tm'. */
+/* Define to 1 if `tm_zone' is a member of `struct tm'. */
 #undef HAVE_STRUCT_TM_TM_ZONE
 
 /* Define to 1 if `struct utimbuf' is declared by <utime.h>. */
@@ -853,6 +853,9 @@
 /* Define to the one symbol short name of this package. */
 #undef PACKAGE_TARNAME
 
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 
@@ -912,6 +915,28 @@
 /* Define to 1 if using the Motif X toolkit. */
 #undef USE_MOTIF
 
+/* Enable extensions on AIX 3, Interix.  */
+#ifndef _ALL_SOURCE
+# undef _ALL_SOURCE
+#endif
+/* Enable GNU extensions on systems that have them.  */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
+/* Enable threading extensions on Solaris.  */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# undef _POSIX_PTHREAD_SEMANTICS
+#endif
+/* Enable extensions on HP NonStop.  */
+#ifndef _TANDEM_SOURCE
+# undef _TANDEM_SOURCE
+#endif
+/* Enable general extensions on Solaris.  */
+#ifndef __EXTENSIONS__
+# undef __EXTENSIONS__
+#endif
+
+
 /* Define to 1 if we should use toolkit scroll bars. */
 #undef USE_TOOLKIT_SCROLL_BARS
 
@@ -947,28 +972,6 @@
 /* Define to 1 if you need to in order for `stat' and other things to work. */
 #undef _POSIX_SOURCE
 
-/* Enable extensions on AIX 3, Interix.  */
-#ifndef _ALL_SOURCE
-# undef _ALL_SOURCE
-#endif
-/* Enable GNU extensions on systems that have them.  */
-#ifndef _GNU_SOURCE
-# undef _GNU_SOURCE
-#endif
-/* Enable threading extensions on Solaris.  */
-#ifndef _POSIX_PTHREAD_SEMANTICS
-# undef _POSIX_PTHREAD_SEMANTICS
-#endif
-/* Enable extensions on HP NonStop.  */
-#ifndef _TANDEM_SOURCE
-# undef _TANDEM_SOURCE
-#endif
-/* Enable general extensions on Solaris.  */
-#ifndef __EXTENSIONS__
-# undef __EXTENSIONS__
-#endif
-
-
 /* Define to rpl_ if the getopt replacement functions and variables should be
    used. */
 #undef __GETOPT_PREFIX
@@ -1093,14 +1096,6 @@
 
 #define my_strftime nstrftime  /* for strftime.c */
 
-/* The rest of the code currently tests the CPP symbol BSTRING.
-   Override any claims made by the system-description files.
-   Note that on some SCO version it is possible to have bcopy and not bcmp.  */
-#undef BSTRING
-#if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
-#define BSTRING
-#endif
-
 /* Some of the files of Emacs which are intended for use with other
    programs assume that if you have a config.h file, you must declare
    the type of getenv.  */

=== modified file 'src/s/aix4-2.h'
--- a/src/s/aix4-2.h    2010-06-03 22:16:02 +0000
+++ b/src/s/aix4-2.h    2010-06-06 08:57:39 +0000
@@ -52,9 +52,6 @@
    functions.  Almost, but not quite the same as the 4.2 functions.  */
 #define SYSV_SYSTEM_DIR
 
-/* Define this symbol if your system has the functions bcopy, etc.  */
-#define BSTRING
-
 /* The file containing the kernel's symbol table is called /unix.  */
 #define KERNEL_FILE "/unix"
 

=== modified file 'src/s/bsd-common.h'
--- a/src/s/bsd-common.h        2010-06-03 22:16:02 +0000
+++ b/src/s/bsd-common.h        2010-06-06 08:57:39 +0000
@@ -71,9 +71,6 @@
 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets.  */
 #define HAVE_SOCKETS
 
-/* Define this symbol if your system has the functions bcopy, etc. */
-#define BSTRING
-
 /* Define CLASH_DETECTION if you want lock files to be written
    so that Emacs can tell instantly when you try to modify
    a file that someone else has modified in his Emacs.  */

=== modified file 'src/s/cygwin.h'
--- a/src/s/cygwin.h    2010-06-03 22:16:02 +0000
+++ b/src/s/cygwin.h    2010-06-06 08:57:39 +0000
@@ -73,9 +73,6 @@
     }                                                  \
   while (0)
 
-/* Define this symbol if your system has the functions bcopy, etc. */
-#define BSTRING
-
 /* Define CLASH_DETECTION if you want lock files to be written
    so that Emacs can tell instantly when you try to modify
    a file that someone else has modified in his Emacs.  */

=== modified file 'src/s/darwin.h'
--- a/src/s/darwin.h    2010-06-03 22:16:02 +0000
+++ b/src/s/darwin.h    2010-06-06 08:57:39 +0000
@@ -99,9 +99,6 @@
    for process-connection-type dependent on the kernel version.  */
 #define MIN_PTY_KERNEL_VERSION '7'
 
-/* Define this symbol if your system has the functions bcopy, etc. */
-#define BSTRING
-
 /* Define CLASH_DETECTION if you want lock files to be written
    so that Emacs can tell instantly when you try to modify
    a file that someone else has modified in his Emacs.  */

=== modified file 'src/s/gnu-linux.h'
--- a/src/s/gnu-linux.h 2010-06-03 22:16:02 +0000
+++ b/src/s/gnu-linux.h 2010-06-06 08:57:39 +0000
@@ -89,9 +89,6 @@
 
 #define HAVE_SOCKETS
 
-/* Define this symbol if your system has the functions bcopy, etc.  */
-#define BSTRING
-
 /* This is used in list_system_processes.  */
 #define HAVE_PROCFS 1
 

=== modified file 'src/s/hpux10-20.h'
--- a/src/s/hpux10-20.h 2010-06-03 22:16:02 +0000
+++ b/src/s/hpux10-20.h 2010-06-06 08:57:39 +0000
@@ -45,12 +45,6 @@
 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets.  */
 #define HAVE_SOCKETS
 
-/* Define this symbol if your system has the functions bcopy, etc.
-   s800 and later versions of s300 (s200) kernels have equivalents
-   of the BSTRING functions of BSD.  If your s200 kernel doesn't have
-   em comment out this section.  */
-#define BSTRING
-
 /* Define CLASH_DETECTION if you want lock files to be written
    so that Emacs can tell instantly when you try to modify
    a file that someone else has modified in his Emacs.  */

=== modified file 'src/s/ms-w32.h'
--- a/src/s/ms-w32.h    2010-06-04 14:13:35 +0000
+++ b/src/s/ms-w32.h    2010-06-06 08:57:39 +0000
@@ -63,8 +63,6 @@
    for received packets, so datagrams are broken too.  */
 #define BROKEN_DATAGRAM_SOCKETS 1
 
-/* Define this symbol if your system has the functions bcopy, etc.  */
-#define BSTRING
 #define bzero(b, l) memset(b, 0, l)
 #define bcopy(s, d, l) memmove(d, s, l)
 #define bcmp(a, b, l) memcmp(a, b, l)

=== modified file 'src/s/msdos.h'
--- a/src/s/msdos.h     2010-05-19 02:51:51 +0000
+++ b/src/s/msdos.h     2010-06-06 08:57:39 +0000
@@ -42,9 +42,6 @@
 
 #define SYSV_SYSTEM_DIR
 
-/* Define this symbol if your system has the functions bcopy, etc.  */
-#define BSTRING
-
 /* Define this is the compiler understands `volatile'.  */
 #define HAVE_VOLATILE
 

=== modified file 'src/s/template.h'
--- a/src/s/template.h  2010-05-18 02:59:15 +0000
+++ b/src/s/template.h  2010-06-06 08:57:39 +0000
@@ -78,9 +78,6 @@
 /* Define HAVE_PTYS if the system supports pty devices.  */
 #define HAVE_PTYS
 
-/* Define this symbol if your system has the functions bcopy, etc.  */
-#define BSTRING
-
 /* subprocesses should be undefined if you do NOT want to
    have code for asynchronous subprocesses
    (as used in M-x compile and M-x shell).

=== modified file 'src/s/usg5-4.h'
--- a/src/s/usg5-4.h    2010-06-03 22:16:02 +0000
+++ b/src/s/usg5-4.h    2010-06-06 08:57:39 +0000
@@ -63,8 +63,6 @@
 
 /* If we're using the System V X port, BSD bstring functions will be handy.  */
 #ifdef HAVE_X_WINDOWS
-#define BSTRING
-#endif /* HAVE_X_WINDOWS */
 
 /* On USG systems signal handlers return void.  */
 #define SIGTYPE void

=== modified file 'src/sysdep.c'
--- a/src/sysdep.c      2010-06-02 02:40:59 +0000
+++ b/src/sysdep.c      2010-06-06 08:57:39 +0000
@@ -2752,54 +2752,6 @@
 #endif /* !HAVE_RMDIR */
 
 
-#ifndef BSTRING
-
-#ifndef bzero
-
-void
-bzero (b, length)
-     register char *b;
-     register int length;
-{
-  while (length-- > 0)
-    *b++ = 0;
-}
-
-#endif /* no bzero */
-#endif /* BSTRING */
-
-#if (!defined (BSTRING) && !defined (bcopy)) || defined (NEED_BCOPY)
-#undef 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)
-     register char *b1;
-     register char *b2;
-     register int length;
-{
-  while (length-- > 0)
-    *b2++ = *b1++;
-}
-#endif /* (!defined (BSTRING) && !defined (bcopy)) || defined (NEED_BCOPY) */
-
-#ifndef BSTRING
-#ifndef bcmp
-int
-bcmp (b1, b2, length)  /* This could be a macro! */
-     register char *b1;
-     register char *b2;
-     register int length;
-{
-  while (length-- > 0)
-    if (*b1++ != *b2++)
-      return 1;
-
-  return 0;
-}
-#endif /* no bcmp */
-#endif /* not BSTRING */
-
 #ifndef HAVE_STRSIGNAL
 char *
 strsignal (code)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]