Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQBE6-0001ct-AE for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Feb 2016 09:56:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQBE5-0004Dq-T4 for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Feb 2016 09:56:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQBE5-0004Dj-Fc for pgsql-bugs@postgresql.org; Mon, 01 Feb 2016 09:56:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQBE2-0003ts-PX; Mon, 01 Feb 2016 09:56:53 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u119uicr029893; Mon, 1 Feb 2016 04:56:45 -0500 From: Tom Lane To: Michael Meskes cc: 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 In-reply-to: <20160201094337.GA9280@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> Comments: In-reply-to Michael Meskes message dated "Mon, 01 Feb 2016 10:43:37 +0100" Date: Mon, 01 Feb 2016 10:56:44 +0100 Message-ID: <68728.1454320604@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) 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 Michael Meskes writes: > On Mon, Feb 01, 2016 at 08:59:17AM +0000, Vladimir Zvagolskiy wrote: >> Until I've done the described modification in datetime.h > Anyway, I cannot see a nested comment in that version either. Could you send a small test case to reproduce? Thanks. 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 looks like that code was last touched by pgindent in d747140279426607: -#ifndef _ECPGLIB_H /* source created by ecpg which defines these symbols */ +#ifndef _ECPGLIB_H /* source created by ecpg which defines these + * symbols */ Perhaps that was a bad change, and you should make it look like /* helpful comment here */ #ifndef _ECPGLIB_H regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs