From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#7859: syncing Emacs from sources maintained elsewhere Date: Thu, 20 Jan 2011 12:26:59 +0100 Message-ID: <4D381C03.4080709__36189.9845338941$1295524497$gmane$org@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 1295524498 20721 80.91.229.12 (20 Jan 2011 11:54:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Jan 2011 11:54:58 +0000 (UTC) Cc: 7859@debbugs.gnu.org, bug-gnulib , 7856@debbugs.gnu.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 20 12:54:50 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Pft6I-0005MI-1k for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Jan 2011 12:54:50 +0100 Original-Received: from localhost ([127.0.0.1]:51794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pft6H-0007kC-KG for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Jan 2011 06:54:49 -0500 Original-Received: from [140.186.70.92] (port=39954 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pft6C-0007fU-7V for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2011 06:54:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pft6B-0002ud-11 for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2011 06:54:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pft6A-0002uM-V8 for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2011 06:54:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PfsYd-0005Ix-KU; Thu, 20 Jan 2011 06:20:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jan 2011 11:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7859 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7859-submit@debbugs.gnu.org id=B7859.129552235320323 (code B ref 7859); Thu, 20 Jan 2011 11:20:03 +0000 Original-Received: (at 7859) by debbugs.gnu.org; 20 Jan 2011 11:19:13 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfsXo-0005Hh-Vr for submit@debbugs.gnu.org; Thu, 20 Jan 2011 06:19:13 -0500 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfsXm-0005HQ-HC; Thu, 20 Jan 2011 06:19:11 -0500 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 1EE82C8DE; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 20 Jan 2011 06:20:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43482 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.