Received: from trends.net (root@clio.trends.ca [209.47.148.2]) by hub.org (8.9.3/8.9.1) with ESMTP id XAA01232 for ; Tue, 20 Apr 1999 23:12:04 -0400 (EDT) (envelope-from janousek@fonet.cz) Received: from www.flamingo.cz (root@fwd.cz [194.212.23.91]) by trends.net (8.8.8/8.8.8) with ESMTP id XAA17021 for ; Tue, 20 Apr 1999 23:04:32 -0400 (EDT) Received: from router.fonet2.cz (ts3-1.bm.cesnet.cz [194.212.133.32]) by www.flamingo.cz (8.8.8/8.8.8) with ESMTP id FAA01369 for ; Wed, 21 Apr 1999 05:01:21 +0200 Received: from server (server.fonet2.cz [192.168.0.2]) by router.fonet2.cz (8.9.1/8.9.1) with SMTP id SAA00641 for ; Tue, 20 Apr 1999 18:02:49 GMT Message-ID: <000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz> From: "Pavel PaJaSoft Janousek" To: "PgSQL Interfaces" Subject: Error in ECPG and #if... Date: Tue, 20 Apr 1999 17:59:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Hi all, I use ECPG distributed with PostgreSQL 6.4.2. and I found next error..:-( ECPG don't know C/C++ preprocessing directives such as #if, #ifdef etc... I try this: .. ... 15. #if 0 16. exec sql select count (*) from 17. exec sql commit; 18. #endif In this ECPG say: parse error on line 16. But when I use this: 15. // exec sql select count (*) from 16. // exec sql commit; ECPG parse this correctly... I think, that this is wrong, that ECPG use as comment only /* and // comment. Construction such as #if 0 is very common way to disable some source and enable this later... - mainly in debugging proces, of cource. Or do I something wrong? Thanks... ---------------------------------------------------------------------------- -- Pavel Janousek (PaJaSoft) FoNet, spol. s r. o. Vyvoj software, sprava siti, Unix, Web, Y2K Anenska 11, 602 00 Brno E-mail: mailto:Janousek@FoNet.Cz Tel.: +420 5 4324 4749 SMS: mailto:P.Janousek@SMS.Paegas.Cz Fax.: +420 5 4324 4751 WWW: http://WWW.FoNet.Cz/ E-mail: mailto:Info@FoNet.Cz ---------------------------------------------------------------------------- ---