Comment in ECPG - again
Comment in ECPG - again
От:
"Pavel PaJaSoft Janousek" <janousek@fonet.cz>
Дата:
Hi all,
fine, ECPG doesn't know preprocesor macros as #if, #ifdef... - you
wrote, that this is ok, because this is preprocesor commands.
But why ECPG know '//' and '/*' and '*/' C/C++ style comments?
Somebody wrote, that ECPG translate only exec sql commands, not true,
when I write this:
//exec sql ssss
ECPG don't translate this line => it knows C/C++ comments... - this
construction is wrong, but ECPG doesn't say parse error on this line =>
skips it.
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....
-------------------------------------------------------------------------
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
--------------------------------------------------------------------------
-------------------------------------------------------------------------
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
От:
Michael Meskes <meskes@postgresql.org>
Дата:
On Thu, Apr 22, 1999 at 10:06:07AM +0200, Pavel PaJaSoft Janousek wrote: > But why ECPG know '//' and '/*' and '*/' C/C++ style comments? // is also an SQL comment. The backend will parse it correctly too. /* ... */ was added for convenience. After all this is C code. But #include is CPP code. > Somebody wrote, that ECPG translate only exec sql commands, not true, > when I write this: > //exec sql ssss This is not an exec sql command, but a comment. > 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. 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!