pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel PaJaSoft Janousek <janousek@fonet.cz>
To: PgSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Error in ECPG and #if...
Date: Tue, 20 Apr 1999 17:59:13 +0200
Message-ID: <000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz> (raw)

    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
----------------------------------------------------------------------------
---





view thread (3+ messages)  latest in thread

Message-ID: <000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz>
Permalink:  ../000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz/
Also on:    postgresql.org/message-id/000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: janousek@fonet.cz
  Subject: Re: Error in ECPG and #if...
  In-Reply-To: <000401be8b46$bd6d96c0$0200a8c0@server.fonet2.cz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox