please apply patch

From: "Nicolas Bazin" <nbazin(at)ingenico(dot)com(dot)au>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: please apply patch
Date: 2002-04-02 04:34:01
Message-ID: 01b101c1d9ff$9cbeea90$660d090a@software.ingenico.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


----- Original Message -----
From: Nicolas Bazin
To: PostgreSQL-development
Cc: Tom Lane ; Bruce Momjian ; Michael Meskes
Sent: Thursday, March 28, 2002 9:30 AM
Subject: Always the same ecpg bug - please (re)apply patch

Here is the description:

When a macro is replaced by the preprocessor, pgc.l reaches a end of file, which is not the actual end of the file. One side effect of that is that if you are in a ifdef block, you get a wrong error telling you that a endif is missing.

This patch corrects pgc.l and also adds a test of this problem to test1.pgc. To convince you apply the patch to test1.pgc first then try to compile the test then apply the patch to pgc.l.

The patch moves the test of the scope of an ifdef block to the end of the file beeing parsed, including all includes files, ... .

For the record, this patch was applied a first time by bruce then overwritten by Micheal and reapplied by him. But the big mystery is that there is no trace of that in CVS ????

Nicolas

Attachment Content-Type Size
ecpg.patch application/octet-stream 4.4 KB

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2002-04-02 06:04:32 Re: make BufferGetBlockNumber() a macro
Previous Message Neil Conway 2002-04-02 03:10:03 Re: make BufferGetBlockNumber() a macro