Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bymYw-0007YY-4l for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 21:13:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bymYv-0003eR-3H for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 21:13:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bymYt-0003co-0j for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 21:13:39 +0000 Received: from boipeva.ensmp.fr ([194.214.158.136] helo=cc-tupan-roaming-b.ensmp.fr) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bymYo-0008VP-RG for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 21:13:37 +0000 Received: from cri.ensmp.fr (net-93-151-234-8.cust.vodafonedsl.it [93.151.234.8]) (authenticated bits=0) by cc-tupan-roaming-b.ensmp.fr (8.15.2/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id u9OLDUOs029767 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 24 Oct 2016 23:13:31 +0200 Date: Mon, 24 Oct 2016 23:13:29 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: Alvaro Herrera cc: Michael Paquier , Magnus Hagander , PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: Remove extra comma at end of enum list In-Reply-To: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql> Message-ID: References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Miltered: at cc-tupan-roaming-b.ensmp.fr with ID 580E797A.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 580E797A.000 from net-93-151-234-8.cust.vodafonedsl.it/net-93-151-234-8.cust.vodafonedsl.it/93.151.234.8/cri.ensmp.fr/ X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org >> I find it annoying that "//" comments are not supported, or having to >> declare variables at the beginning of a block instead of when first used... > > I think some c99 features would be nice (variadic macros for one), but > those particular two get a big "meh" from me. This is probably a matter of taste. The question really to know when some C99 features (inline, mixing code & declarations, flexible array members, slash-slash comments, compound literals, variadic macros, restrict qualifier, ...), will be considered okay for Pg sources, or if they should be kept C89 compliant for the next 27 years. Well, it seems that Microsoft took time to implement C99 features, which would mean that a recent "Visual C++" would be required to compile pg on windows if pg would use C99 features. > .oO( I wonder if it'd be possible to make ereport() an inline function ... ) Probaby not: ISTM that ereport relies on the fact that it is a macro to avoid evaluating some arguments until necessary, but the compiler would not do that on a function, whether inlined or not, because it would change the semantics if the evaluation was to fail. -- Fabien. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers