Re: [INTERFACES] Comment in ECPG - again - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: [INTERFACES] Comment in ECPG - again
Date
Msg-id 19990424172335.D790@gmx.net
Whole thread Raw
In response to Re: [INTERFACES] Comment in ECPG - again  ("Pavel PaJaSoft Janousek" <janousek@fonet.cz>)
List pgsql-interfaces
On Fri, Apr 23, 1999 at 09:53:51AM +0200, Pavel PaJaSoft Janousek wrote:
> Is correct way: ESQL source -> CPP -> ECPG -> C/C++ compiler?

I never tried this, but it will definitely work.

I use ESQL source -> ECPG -> CPP -> C/C++. Works well too, except that you
have to be syntactically correct even if you use #if 0. But then the
commercial products cannot handle CPP commands either to the best of my
knowledge. 

>     I use EGCS, where I found C++ preprocesor? Parse this preprocessor only

It's cpp. Yes, it comes with egcs too.

> #ifdef etc... commands? Doesn't it say error on exec sql statement?

It shouldn't. But as I said I never tried.

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael.Meskes@gmx.net          | Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] ecpg cursors and scope
Next
From: "Mariusz Czułada"
Date:
Subject: CASE tools? (slightly off-topic)