12
12
*
13
13
*
14
14
* IDENTIFICATION
15
- * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.117 2003/06/20 15:16:06 meskes Exp $
15
+ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.118 2003/06/26 11:37:05 meskes Exp $
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
@@ -420,7 +420,7 @@ cppline {space}*#(.*\\{space})+.*
420
420
<SQL >{typecast } { return TYPECAST; }
421
421
<SQL >{informix_special } {
422
422
/* are we simulating Informix? */
423
- if (compat == ECPG_COMPAT_INFORMIX )
423
+ if (INFORMIX_MODE )
424
424
{
425
425
unput (' :' );
426
426
}
@@ -605,7 +605,7 @@ cppline {space}*#(.*\\{space})+.*
605
605
<C >{exec_sql } { BEGIN SQL; return SQL_START; }
606
606
<C >{informix_special } {
607
607
/* are we simulating Informix? */
608
- if (compat == ECPG_COMPAT_INFORMIX )
608
+ if (INFORMIX_MODE )
609
609
{
610
610
BEGIN SQL;
611
611
return SQL_START;
@@ -715,7 +715,7 @@ cppline {space}*#(.*\\{space})+.*
715
715
<C >{exec_sql }{define }{space }* { BEGIN (def_ident); }
716
716
<C >{informix_special }{define }{space }* {
717
717
/* are we simulating Informix? */
718
- if (compat == ECPG_COMPAT_INFORMIX )
718
+ if (INFORMIX_MODE )
719
719
{
720
720
BEGIN (def_ident);
721
721
}
@@ -730,7 +730,7 @@ cppline {space}*#(.*\\{space})+.*
730
730
<C >{exec_sql }{include }{space }* { BEGIN (incl); }
731
731
<C >{informix_special }{include }{space }* {
732
732
/* are we simulating Informix? */
733
- if (compat == ECPG_COMPAT_INFORMIX )
733
+ if (INFORMIX_MODE )
734
734
{
735
735
BEGIN (incl);
736
736
}
@@ -745,7 +745,7 @@ cppline {space}*#(.*\\{space})+.*
745
745
<C ,xskip >{exec_sql }{ifdef }{space }* { ifcond = TRUE ; BEGIN (xcond); }
746
746
<C ,xskip >{informix_special }{ifdef }{space }* {
747
747
/* are we simulating Informix? */
748
- if (compat == ECPG_COMPAT_INFORMIX )
748
+ if (INFORMIX_MODE )
749
749
{
750
750
ifcond = TRUE ;
751
751
BEGIN (xcond);
@@ -761,7 +761,7 @@ cppline {space}*#(.*\\{space})+.*
761
761
<C ,xskip >{exec_sql }{ifndef }{space }* { ifcond = FALSE ; BEGIN (xcond); }
762
762
<C ,xskip >{informix_special }{ifndef }{space }* {
763
763
/* are we simulating Informix? */
764
- if (compat == ECPG_COMPAT_INFORMIX )
764
+ if (INFORMIX_MODE )
765
765
{
766
766
ifcond = FALSE ;
767
767
BEGIN (xcond);
@@ -787,7 +787,7 @@ cppline {space}*#(.*\\{space})+.*
787
787
}
788
788
<C ,xskip >{informix_special }{elif }{space }* {
789
789
/* are we simulating Informix? */
790
- if (compat == ECPG_COMPAT_INFORMIX )
790
+ if (INFORMIX_MODE )
791
791
{
792
792
if ( preproc_tos == 0 ) {
793
793
mmerror (PARSE_ERROR, ET_FATAL, " Missing matching 'EXEC SQL IFDEF / EXEC SQL IFNDEF'" );
@@ -826,7 +826,7 @@ cppline {space}*#(.*\\{space})+.*
826
826
}
827
827
<C ,xskip >{informix_special }{else }{space }* {
828
828
/* are we simulating Informix? */
829
- if (compat == ECPG_COMPAT_INFORMIX )
829
+ if (INFORMIX_MODE )
830
830
{
831
831
if ( stacked_if_value[preproc_tos].else_branch ) {
832
832
mmerror (PARSE_ERROR, ET_FATAL, " Duplicated 'EXEC SQL ELSE;'" );
@@ -864,7 +864,7 @@ cppline {space}*#(.*\\{space})+.*
864
864
}
865
865
<C ,xskip >{informix_special }{endif }{space }* " ;" {
866
866
/* are we simulating Informix? */
867
- if (compat == ECPG_COMPAT_INFORMIX )
867
+ if (INFORMIX_MODE )
868
868
{
869
869
if ( preproc_tos == 0 )
870
870
mmerror (PARSE_ERROR, ET_FATAL, " Unmatched 'EXEC SQL ENDIF;'" );
0 commit comments