From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: bug#7859: syncing Emacs from sources maintained elsewhere Date: Thu, 20 Jan 2011 12:26:59 +0100 Message-ID: <4D381C03.4080709@swipnet.se> References: <4D2BA939.5090903@cs.ucla.edu> <4D34A88F.4080400@cs.ucla.edu> <4D35D842.5030003@cs.ucla.edu> <4D367F0B.3040808@cs.ucla.edu> <4D368D16.7020702@swipnet.se> <25y66hjmiu.fsf@fencepost.gnu.org> <4D36BF43.3050007@cs.ucla.edu> <4D370928.1040601@swipnet.se> <4D377768.8070504@cs.ucla.edu> <4D37D9FD.3050805@swipnet.se> <4D37E970.2060803@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295522957 12691 80.91.229.12 (20 Jan 2011 11:29:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Jan 2011 11:29:17 +0000 (UTC) Cc: 7859@debbugs.gnu.org, bug-gnulib , 7856@debbugs.gnu.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Thu Jan 20 12:29:13 2011 Return-path: Envelope-to: gnu-bug-gnulib@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PfshS-00076Q-NP for gnu-bug-gnulib@m.gmane.org; Thu, 20 Jan 2011 12:29:12 +0100 Original-Received: from localhost ([127.0.0.1]:59262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfshG-0002th-3F for gnu-bug-gnulib@m.gmane.org; Thu, 20 Jan 2011 06:28:58 -0500 Original-Received: from [140.186.70.92] (port=45925 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pfsgp-0002lV-C4 for bug-gnulib@gnu.org; Thu, 20 Jan 2011 06:28:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfsfU-0005YX-Cx for bug-gnulib@gnu.org; Thu, 20 Jan 2011 06:27:09 -0500 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:60056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfsfU-0005Y3-7p; Thu, 20 Jan 2011 06:27:08 -0500 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id F2269E8100; Thu, 20 Jan 2011 12:27:00 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ato4AGaqN01V4S1kPGdsb2JhbACEE4RLm3IMAQEBATUvrV6QJIEkgzh0BI5CG4d9 X-IronPort-AV: E=Sophos;i="4.60,350,1291590000"; d="scan'208";a="165979132" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 20 Jan 2011 12:27:00 +0100 Original-Received: from [10.225.17.194] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 2C72D7FA05A; Thu, 20 Jan 2011 12:26:59 +0100 (CET) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; sv-SE; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: <4D37E970.2060803@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Xref: news.gmane.org gmane.comp.lib.gnulib.bugs:24822 gmane.emacs.devel:134813 Archived-At: Paul Eggert skrev 2011-01-20 08:51: > On 01/19/2011 10:45 PM, Jan Dj=C3=A4rv wrote: >> /* config.h #define:s malloc/realloc/free and then includes stdlib.h. >> We want the undefined versions, but if config.h includes stdlib.h >> with the #define:s in place, the prototypes will be wrong and we g= et >> warnings. To prevent that, include stdlib.h before config.h. */ > > OK, I see. There's a better way, one that doesn't potentially mess up > the ABI. Namely, Emacs can supply a stdlib.h wrapper that #defines > malloc/realloc/free the way we like. gnulib already does > that, but Emacs doesn't use gnulib's stdlib.h wrapper. > At some point, perhaps Emacs will, and then we can look into > this issue again. > It is just for unexmacosx.c we want undefined malloc/free/realloc. For other files we wan't the defined ones. We can tweek the m/darwin.h file instead where these defines are. Jan D.