Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQDKB-00020K-Di for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Feb 2016 12:11:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQDKA-0004PB-Vj for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Feb 2016 12:11:19 +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) (envelope-from ) id 1aQDJY-0003iN-DC for pgsql-bugs@postgresql.org; Mon, 01 Feb 2016 12:10:40 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aQDJR-0000R3-8b; Mon, 01 Feb 2016 12:10:39 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 7430C1450036; Mon, 1 Feb 2016 13:10:30 +0100 (CET) Received: from feivel (wan3.credativ.com [94.79.138.166]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 631651B42EF; Mon, 1 Feb 2016 13:10:30 +0100 (CET) Received: by feivel (Postfix, from userid 1000) id 208971FFA1; Mon, 1 Feb 2016 13:10:30 +0100 (CET) Date: Mon, 1 Feb 2016 13:10:30 +0100 From: Michael Meskes To: Tom Lane Cc: Michael Meskes , Vladimir Zvagolskiy , "pgsql-bugs@postgresql.org" Subject: Re: BUG #13898: ecpg complains on nested comments in /usr/pgsql-9.4/include/informix/esql/datetime.h Message-ID: <20160201121030.GA18459@feivel> References: <20160129002202.2534.66092@wrigleys.postgresql.org> <1454155301.23207.80.camel@postgresql.org> <37edb08437e746b9bfa4d430ec4f738a@se10mbx02.org.nasdaqomx.com> <20160201085656.GA5967@feivel> <5dd13ee64104460c83de2e113a5907ce@se10mbx02.org.nasdaqomx.com> <20160201094337.GA9280@feivel> <68728.1454320604@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <68728.1454320604@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Mon, Feb 01, 2016 at 10:56:44AM +0100, Tom Lane wrote: > It seems a bit fishy that the comment in question starts on an #if line > and ends on an ordinary line. I am not sure what the C standard says > about such cases, but I can certainly imagine that some tools might not > be very happy with that. It turns out ecpg is one of these tools. Lines starting with # are considered CPP code and not parsed for C language comments. In the C code it then finds only the end of the comment and throws the error. It does surprise me, though, that the error only pops up now. I was pretty sure at least one of these headers was used in the regression suit. Will fix. Thanks. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Meskes at (Debian|Postgresql) dot Org Jabber: michael at xmpp dot meskes dot org VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs