pgc.l modif. has been overwritten again - Mailing list pgsql-interfaces

From Nicolas Bazin
Subject pgc.l modif. has been overwritten again
Date
Msg-id 00e301c1d54c$afb3ee00$660d090a@software.ingenico.com.au
Whole thread Raw
Responses Re: pgc.l modif. has been overwritten again  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
We need a little bit of order when several people can commit on the source code, It would be nice that they update their local copy and then commit, or check the directory or check for conflicts. 
It's the second time that this modif has been overwritten. It's getting anoying.
 
 
The patch corrects a test on defines end of visibility that is performed too early by the preprocessor.
 
Here it is again.
 
*** pgc.l Wed Mar 27 15:52:45 2002
--- cvs/src/interfaces/ecpg/preproc/pgc.l Fri Feb 15 17:46:57 2002
***************
*** 859,866 ****
     }
 
  <<EOF>>   {
-
-      if (yy_buffer == NULL) {
        if ( preproc_tos > 0 ) {
           preproc_tos = 0;
 
--- 859,864 ----
     }
 
  <<EOF>>   {
       if ( preproc_tos > 0 ) {
           preproc_tos = 0;
 
***************
*** 866,871 ****
 
           mmerror(PARSE_ERROR, ET_FATAL, "Missing 'EXEC SQL ENDIF;'");
        }
       yyterminate();
      }
       else
--- 864,871 ----
 
           mmerror(PARSE_ERROR, ET_FATAL, "Missing 'EXEC SQL ENDIF;'");
       }
+
+      if (yy_buffer == NULL)
      yyterminate();
       else
       {
***************
*** 867,873 ****
           mmerror(PARSE_ERROR, ET_FATAL, "Missing 'EXEC SQL ENDIF;'");
        }
       yyterminate();
-     }
       else
       {
      struct _yy_buffer *yb = yy_buffer;
--- 867,872 ----
 
       if (yy_buffer == NULL)
      yyterminate();
       else
       {
      struct _yy_buffer *yb = yy_buffer;
 
 
Nicolas.

pgsql-interfaces by date:

Previous
From: "D'Arcy J.M. Cain"
Date:
Subject: Re: Problem with python compile
Next
From: Tom Lane
Date:
Subject: Re: pgc.l modif. has been overwritten again