pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedSTRANGE ecpg OUTPUT
4+ messages / 2 participants
[nested] [flat]
* STRANGE ecpg OUTPUT
@ 2000-10-14 08:41 Maurizio <maurizio@dreamtech-it.com>
0 siblings, 1 reply; 4+ messages in thread
From: Maurizio @ 2000-10-14 08:41 UTC (permalink / raw)
To: pgsql-interfaces
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
Attachments:
Test1.c (application/octet-stream, 10.0K) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: STRANGE ecpg OUTPUT
@ 2000-10-16 08:41 Michael Meskes <meskes@postgresql.org>
parent: Maurizio <maurizio@dreamtech-it.com>
0 siblings, 1 reply; 4+ messages in thread
From: Michael Meskes @ 2000-10-16 08:41 UTC (permalink / raw)
To: pgsql-interfaces
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!
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: STRANGE ecpg OUTPUT
@ 2000-10-16 08:57 Maurizio <maurizio@dreamtech-it.com>
parent: Michael Meskes <meskes@postgresql.org>
0 siblings, 1 reply; 4+ messages in thread
From: Maurizio @ 2000-10-16 08:57 UTC (permalink / raw)
To: Michael Meskes <meskes@postgresql.org>; +Cc: pgsql-interfaces
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!
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: STRANGE ecpg OUTPUT
@ 2000-10-16 10:14 Michael Meskes <meskes@postgresql.org>
parent: Maurizio <maurizio@dreamtech-it.com>
0 siblings, 0 replies; 4+ messages in thread
From: Michael Meskes @ 2000-10-16 10:14 UTC (permalink / raw)
To: pgsql-interfaces
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!
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2000-10-16 10:14 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-10-14 08:41 STRANGE ecpg OUTPUT Maurizio <maurizio@dreamtech-it.com>
2000-10-16 08:41 ` Michael Meskes <meskes@postgresql.org>
2000-10-16 08:57 ` Maurizio <maurizio@dreamtech-it.com>
2000-10-16 10:14 ` Michael Meskes <meskes@postgresql.org>
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