[Top][All Lists]

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

Re: config related patch (and how to start handling Debian patches)

From: Rob Browning
Subject: Re: config related patch (and how to start handling Debian patches)
Date: Fri, 14 Feb 2003 23:11:58 -0600
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

Richard Stallman <address@hidden> writes:

> The current pretest is from a branch that has only bug fixes.
> The place we would install changes like these is in the CVS trunk,
> so please make them fit in there.

OK.  I've switched to cvs HEAD, and it looks like two of the three
patches are now redundant.

This small patch switches emacs to prefer the mem* functions rather
than the b* functions when they're available since at least under
GNU/Linux, the b* appear to be deprecated.  However, if this
deprecation isn't common, the following patch might not be the right
thing to do.

Index: configure.in
RCS file: /cvsroot/emacs/emacs/configure.in,v
retrieving revision 1.326
diff -u -r1.326 configure.in
--- configure.in        4 Feb 2003 14:56:31 -0000       1.326
+++ configure.in        15 Feb 2003 04:55:35 -0000
@@ -2206,7 +2206,8 @@
 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
 sendto recvfrom getsockopt setsockopt getsockname getpeername \
-gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset)
+gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
+memset memcmp memmove)
@@ -2823,14 +2824,16 @@
 #  endif
-#ifndef HAVE_BCOPY
-#define bcopy(a,b,s) memcpy (b,a,s)
-#ifndef HAVE_BZERO
-#define bzero(a,s) memset (a,0,s)
-#ifndef HAVE_BCMP
-#define BCMP memcmp
+/* avoid deprecated functions */
+#  define bcopy(a,b,s) memcpy (b,a,s)
+#  define bzero(a,s) memset (a,0,s)
+#  define BCMP memcmp
+#  define bcmp memcmp
 #endif /* EMACS_CONFIG_H */

Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4

reply via email to

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