From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6705 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] don't shadow functions with macros in C++ Date: Tue, 9 Dec 2014 22:37:02 -0500 Message-ID: <20141210033702.GR4574@brightrain.aerifal.cx> References: <20141209000614.GL4574@brightrain.aerifal.cx> <20141209021810.GA13045@duality.lan> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1418182644 23991 80.91.229.3 (10 Dec 2014 03:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2014 03:37:24 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6718-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 10 04:37:18 2014 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XyY5V-0002m4-K5 for gllmg-musl@m.gmane.org; Wed, 10 Dec 2014 04:37:17 +0100 Original-Received: (qmail 7657 invoked by uid 550); 10 Dec 2014 03:37:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7648 invoked from network); 10 Dec 2014 03:37:15 -0000 Content-Disposition: inline In-Reply-To: <20141209021810.GA13045@duality.lan> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:6705 Archived-At: On Mon, Dec 08, 2014 at 08:18:12PM -0600, Bobby Bingham wrote: > C++ programmers typically expect something like "::function(x,y)" to work > and may be surprised to find that "(::function)(x,y)" is actually required > due to the headers declaring a macro version of some standard functions. > > We already omit function-like macros for C++ in most cases where there is > a real function available. This commit extends this to the remaining > function-like macros which have a real function version. > --- Thanks! Committed. Rich