Thread: Re: [INTERFACES] Comment in ECPG - again

Re: [INTERFACES] Comment in ECPG - again

From
"Pavel PaJaSoft Janousek"
Date:
    Hi,

>>     So, is ECPG only ESQL compiler (translator) or complex translator
from
>> ESQL to C/C++? I think, that ECPG want be complex translator => it may
know
>> also preprocesor directives....
>
>Please do not mix C/C++ with CPP. After all all CPP commands do not belong
>into the C language at all.

   I wrote this bad before... - i know, that #if .. etc is CPP commands, so
my question is this:

Is correct way: ESQL source -> CPP -> ECPG -> C/C++ compiler?
   I use EGCS, where I found C++ preprocesor? Parse this preprocessor only
#ifdef etc... commands? Doesn't it say error on exec sql statement?

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




Re: [INTERFACES] Comment in ECPG - again

From
Michael Meskes
Date:
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!