Обсуждение: STRANGE ecpg OUTPUT

Поиск
Список
Период
Сортировка

STRANGE ecpg OUTPUT

От
"Maurizio"
Дата:
Hi,
 
I'm tring ecpg under QNX 4.25.
Whene I execute the make under interfaces/ecpg/test I have a strange output in test1.c and also in the other sources.
It seems that there are not a CR at the and of the generated lines.
Could anyone help me?
 
Thanks
 
Maurizio Cauci
DREAMTECH di Cauci Maurizio
Via Ronchetti, 2 - 21013 Gallarate (VA)
www.dreamtech-it.com
Вложения

Re: STRANGE ecpg OUTPUT

От
Michael Meskes
Дата:
On Sat, Oct 14, 2000 at 10:41:21AM +0200, Maurizio wrote:
> I'm tring ecpg under QNX 4.25.
> Whene I execute the make under interfaces/ecpg/test I have a strange output in test1.c and also in the other
sources.
> It seems that there are not a CR at the and of the generated lines. 
> Could anyone help me?

I never saw something like this before. Do you have the CR in test1.pgc
resp. sqlca.h?

Michael

-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


Re: STRANGE ecpg OUTPUT

От
Michael Meskes
Дата:
On Mon, Oct 16, 2000 at 10:57:26AM +0200, Maurizio wrote:
> test1.pgc is the sample program in interfaces/ecpg/test end has the CR at
> the end of the line. Also sqlca.h has the CR. I think the problem is in the
> parser. Do you know where in the sources of ecpg is the fput o fprintf to
> the test1.c?

Sure. But I doubt that that is were the problem resides. After all it does
not look as if the lines in question are the ones completely parsed, but
those that are only run through the lexer. 

In preproc/pgc.l some stuff is just ECHO'ed. I think this may be the one.
You could create a pgc.c containing debugging output and check from there. 
I'd recommend you start checking if your ECHO macro is correct though.

> If you try to see test1.c there are a 0x09 char and not a 0x0A at the end of
> the line.

Strange.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


Re: STRANGE ecpg OUTPUT

От
"Maurizio"
Дата:
test1.pgc is the sample program in interfaces/ecpg/test end has the CR at
the end of the line. Also sqlca.h has the CR. I think the problem is in the
parser. Do you know where in the sources of ecpg is the fput o fprintf to
the test1.c?
If you try to see test1.c there are a 0x09 char and not a 0x0A at the end of
the line.

regards
Maurizio Cauci
DREAMTECH di Cauci Maurizio
Via Ronchetti, 2 - 21013 Gallarate (VA)
www.dreamtech-it.com
----- Original Message -----
From: "Michael Meskes" <meskes@postgresql.org>
To: <pgsql-interfaces@postgresql.org>
Sent: Monday, October 16, 2000 10:41 AM
Subject: Re: [INTERFACES] STRANGE ecpg OUTPUT


> On Sat, Oct 14, 2000 at 10:41:21AM +0200, Maurizio wrote:
> > I'm tring ecpg under QNX 4.25.
> > Whene I execute the make under interfaces/ecpg/test I have a strange
output in test1.c and also in the other sources.
> > It seems that there are not a CR at the and of the generated lines.
> > Could anyone help me?
>
> I never saw something like this before. Do you have the CR in test1.pgc
> resp. sqlca.h?
>
> Michael
>
> --
> Michael Meskes
> Michael@Fam-Meskes.De
> Go SF 49ers! Go Rhein Fire!
> Use Debian GNU/Linux! Use PostgreSQL!
>