From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.devel Subject: Re: config related patch (and how to start handling Debian patches) Date: Fri, 14 Feb 2003 23:11:58 -0600 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87el6ann4x.fsf@raven.i.defaultvalue.org> References: <874r7f4rnv.fsf@raven.i.defaultvalue.org> <871y2hz6el.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045285838 4255 80.91.224.249 (15 Feb 2003 05:10:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2003 05:10:38 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18juax-00016T-00 for ; Sat, 15 Feb 2003 06:10:35 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18juoD-00021G-00 for ; Sat, 15 Feb 2003 06:24:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jucj-0008KZ-02 for emacs-devel@quimby.gnus.org; Sat, 15 Feb 2003 00:12:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18jucQ-0008F9-00 for emacs-devel@gnu.org; Sat, 15 Feb 2003 00:12:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18jucM-00084X-00 for emacs-devel@gnu.org; Sat, 15 Feb 2003 00:12:03 -0500 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jucL-0007tO-00; Sat, 15 Feb 2003 00:12:01 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 8A8CB429; Fri, 14 Feb 2003 23:11:58 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 77311BE929; Fri, 14 Feb 2003 23:11:58 -0600 (CST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 10 Feb 2003 17:38:15 -0500") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11658 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11658 Richard Stallman 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) AC_CHECK_HEADERS(sys/un.h) @@ -2823,14 +2824,16 @@ # endif #endif -#ifndef HAVE_BCOPY -#define bcopy(a,b,s) memcpy (b,a,s) -#endif -#ifndef HAVE_BZERO -#define bzero(a,s) memset (a,0,s) -#endif -#ifndef HAVE_BCMP -#define BCMP memcmp +/* avoid deprecated functions */ +#if HAVE_MEMCPY +# define bcopy(a,b,s) memcpy (b,a,s) +#endif +#if HAVE_MEMSET +# define bzero(a,s) memset (a,0,s) +#endif +#if HAVE_MEMCMP +# define BCMP memcmp +# define bcmp memcmp #endif #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