From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: autoconf bcopy and bzero Date: Sat, 26 Jan 2008 12:23:39 -0700 Message-ID: References: <200801261833.m0QIXZ2R024158@sallyv1.ics.uci.edu> <200801261953.m0QJrD8O022596@sallyv1.ics.uci.edu> Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201377715 23729 80.91.229.12 (26 Jan 2008 20:01:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 20:01:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 21:02:15 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIrEF-0005cH-2w for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 21:02:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIrDo-0001qr-OA for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 15:01:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIrDd-0001lQ-6a for emacs-devel@gnu.org; Sat, 26 Jan 2008 15:01:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIrDb-0001kW-O5 for emacs-devel@gnu.org; Sat, 26 Jan 2008 15:01:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIrDb-0001kL-EK for emacs-devel@gnu.org; Sat, 26 Jan 2008 15:01:35 -0500 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIrDb-0004qV-5H for emacs-devel@gnu.org; Sat, 26 Jan 2008 15:01:35 -0500 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m0QK1XeR001863; Sat, 26 Jan 2008 15:01:33 -0500 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0QK1XcN026543; Sat, 26 Jan 2008 15:01:33 -0500 Original-Received: from opsy.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0QK1WbQ007131; Sat, 26 Jan 2008 15:01:33 -0500 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id C1C7E37833F; Sat, 26 Jan 2008 12:23:39 -0700 (MST) X-Attribution: Tom In-Reply-To: <200801261953.m0QJrD8O022596@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Sat\, 26 Jan 2008 11\:53\:13 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87602 Archived-At: >> One way to get rid of the warning is to '#undef bcopy' before defining >> it. Alternatively, the code could read: >> >> #if !defined HAVE_BCOPY && !defined bcopy >> #define bcopy(a,b,s) memcpy (b,a,s) >> #endif Dan> That's the obvious think to do, but is it correct? I don't think there is a really correct answer. IMO these can't hurt, and they should always give a working result. For things I maintain, that would be good enough; I don't know what the Emacs approach is here. Using bcopy et al is a bit funny. Most other projects I follow moved to the mem* functions years ago. This is very minor, though, I suppose. Tom