1212 *
1313 *
1414 * 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 $
1616 *
1717 *-------------------------------------------------------------------------
1818*/
@@ -420,7 +420,7 @@ cppline{space}*#(.*\\{space})+.*
420420<SQL >{typecast }{return TYPECAST; }
421421<SQL >{informix_special }{
422422/* are we simulating Informix? */
423- if (compat == ECPG_COMPAT_INFORMIX )
423+ if (INFORMIX_MODE )
424424 {
425425unput (' :' );
426426 }
@@ -605,7 +605,7 @@ cppline{space}*#(.*\\{space})+.*
605605<C >{exec_sql }{ BEGIN SQL;return SQL_START; }
606606<C >{informix_special }{
607607/* are we simulating Informix? */
608- if (compat == ECPG_COMPAT_INFORMIX )
608+ if (INFORMIX_MODE )
609609 {
610610 BEGIN SQL;
611611return SQL_START;
@@ -715,7 +715,7 @@ cppline{space}*#(.*\\{space})+.*
715715<C >{exec_sql }{define }{space }* {BEGIN (def_ident); }
716716<C >{informix_special }{define }{space }* {
717717/* are we simulating Informix? */
718- if (compat == ECPG_COMPAT_INFORMIX )
718+ if (INFORMIX_MODE )
719719{
720720BEGIN (def_ident);
721721}
@@ -730,7 +730,7 @@ cppline{space}*#(.*\\{space})+.*
730730<C >{exec_sql }{include }{space }* {BEGIN (incl); }
731731<C >{informix_special }{include }{space }* {
732732/* are we simulating Informix? */
733- if (compat == ECPG_COMPAT_INFORMIX )
733+ if (INFORMIX_MODE )
734734 {
735735BEGIN (incl);
736736 }
@@ -745,7 +745,7 @@ cppline{space}*#(.*\\{space})+.*
745745<C ,xskip >{exec_sql }{ifdef }{space }* { ifcond =TRUE ;BEGIN (xcond); }
746746<C ,xskip >{informix_special }{ifdef }{space }* {
747747/* are we simulating Informix? */
748- if (compat == ECPG_COMPAT_INFORMIX )
748+ if (INFORMIX_MODE )
749749 {
750750 ifcond =TRUE ;
751751BEGIN (xcond);
@@ -761,7 +761,7 @@ cppline{space}*#(.*\\{space})+.*
761761<C ,xskip >{exec_sql }{ifndef }{space }* { ifcond =FALSE ;BEGIN (xcond); }
762762<C ,xskip >{informix_special }{ifndef }{space }* {
763763/* are we simulating Informix? */
764- if (compat == ECPG_COMPAT_INFORMIX )
764+ if (INFORMIX_MODE )
765765 {
766766 ifcond =FALSE ;
767767BEGIN (xcond);
@@ -787,7 +787,7 @@ cppline{space}*#(.*\\{space})+.*
787787}
788788<C ,xskip >{informix_special }{elif }{space }* {
789789/* are we simulating Informix? */
790- if (compat == ECPG_COMPAT_INFORMIX )
790+ if (INFORMIX_MODE )
791791 {
792792if ( preproc_tos ==0 ) {
793793mmerror (PARSE_ERROR, ET_FATAL," Missing matching 'EXEC SQL IFDEF / EXEC SQL IFNDEF'" );
@@ -826,7 +826,7 @@ cppline{space}*#(.*\\{space})+.*
826826}
827827<C ,xskip >{informix_special }{else }{space }* {
828828/* are we simulating Informix? */
829- if (compat == ECPG_COMPAT_INFORMIX )
829+ if (INFORMIX_MODE )
830830 {
831831if ( stacked_if_value[preproc_tos].else_branch ) {
832832mmerror (PARSE_ERROR, ET_FATAL," Duplicated 'EXEC SQL ELSE;'" );
@@ -864,7 +864,7 @@ cppline{space}*#(.*\\{space})+.*
864864}
865865<C ,xskip >{informix_special }{endif }{space }* " ;" {
866866/* are we simulating Informix? */
867- if (compat == ECPG_COMPAT_INFORMIX )
867+ if (INFORMIX_MODE )
868868 {
869869if ( preproc_tos ==0 )
870870mmerror (PARSE_ERROR, ET_FATAL," Unmatched 'EXEC SQL ENDIF;'" );