@@ -400,7 +400,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
400400<xc >{op_chars }{ ECHO; }
401401<xc >\* + { ECHO; }
402402
403- <xc ><<EOF>> {mmerror (PARSE_ERROR, ET_FATAL ," unterminated /* comment" ); }
403+ <xc ><<EOF>> {mmfatal (PARSE_ERROR," unterminated /* comment" ); }
404404
405405<SQL >{xbstart }{
406406token_start = yytext;
@@ -422,7 +422,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
422422<xb >{xbinside }{addlit (yytext, yyleng); }
423423<xh >{quotecontinue }|
424424<xb >{quotecontinue }{/* ignore */ }
425- <xb ><<EOF>> {mmerror (PARSE_ERROR, ET_FATAL ," unterminated bit string literal" ); }
425+ <xb ><<EOF>> {mmfatal (PARSE_ERROR," unterminated bit string literal" ); }
426426
427427<SQL >{xhstart }{
428428token_start = yytext;
@@ -438,7 +438,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
438438return XCONST;
439439}
440440
441- <xh ><<EOF>> {mmerror (PARSE_ERROR, ET_FATAL ," unterminated hexadecimal string literal" ); }
441+ <xh ><<EOF>> {mmfatal (PARSE_ERROR," unterminated hexadecimal string literal" ); }
442442<SQL >{xnstart } {
443443/* National character.
444444 * Transfer it as-is to the backend.
@@ -516,7 +516,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
516516/* This is only needed for \ just before EOF */
517517addlitchar (yytext[0 ]);
518518}
519- <xq ,xqc ,xe ,xn ,xus ><<EOF>> {mmerror (PARSE_ERROR, ET_FATAL ," unterminated quoted string" ); }
519+ <xq ,xqc ,xe ,xn ,xus ><<EOF>> {mmfatal (PARSE_ERROR," unterminated quoted string" ); }
520520<SQL >{dolqfailed }{
521521/* throw back all but the initial "$" */
522522yyless (1 );
@@ -592,7 +592,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
592592}
593593<xd ,xui >{xddouble }{addlitchar (' "' ); }
594594<xd ,xui >{xdinside }{addlit (yytext, yyleng); }
595- <xd ,xdc ,xui ><<EOF>> {mmerror (PARSE_ERROR, ET_FATAL ," unterminated quoted identifier" ); }
595+ <xd ,xdc ,xui ><<EOF>> {mmfatal (PARSE_ERROR," unterminated quoted identifier" ); }
596596<C ,SQL >{xdstart }{
597597state_before = YYSTATE;
598598BEGIN (xdc);
@@ -938,7 +938,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
938938BEGIN (C);
939939}
940940<undef >{other }| \n {
941- mmerror (PARSE_ERROR, ET_FATAL ," missing identifier in EXEC SQL UNDEF command" );
941+ mmfatal (PARSE_ERROR," missing identifier in EXEC SQL UNDEF command" );
942942yyterminate ();
943943}
944944<C >{exec_sql }{include }{space }* {BEGIN (incl); }
@@ -984,10 +984,10 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
984984}
985985<C ,xskip >{exec_sql }{elif }{space }* {/* pop stack */
986986if ( preproc_tos ==0 ) {
987- mmerror (PARSE_ERROR, ET_FATAL ," missing matching\" EXEC SQL IFDEF\" /\" EXEC SQL IFNDEF\" " );
987+ mmfatal (PARSE_ERROR," missing matching\" EXEC SQL IFDEF\" /\" EXEC SQL IFNDEF\" " );
988988}
989989else if ( stacked_if_value[preproc_tos].else_branch )
990- mmerror (PARSE_ERROR, ET_FATAL ," missing\" EXEC SQL ENDIF;\" " );
990+ mmfatal (PARSE_ERROR," missing\" EXEC SQL ENDIF;\" " );
991991else
992992preproc_tos--;
993993
@@ -998,9 +998,9 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
998998if (INFORMIX_MODE)
999999{
10001000if (preproc_tos ==0 )
1001- mmerror (PARSE_ERROR, ET_FATAL ," missing matching\" EXEC SQL IFDEF\" /\" EXEC SQL IFNDEF\" " );
1001+ mmfatal (PARSE_ERROR," missing matching\" EXEC SQL IFDEF\" /\" EXEC SQL IFNDEF\" " );
10021002else if (stacked_if_value[preproc_tos].else_branch )
1003- mmerror (PARSE_ERROR, ET_FATAL ," missing\" EXEC SQL ENDIF;\" " );
1003+ mmfatal (PARSE_ERROR," missing\" EXEC SQL ENDIF;\" " );
10041004else
10051005preproc_tos--;
10061006
@@ -1016,7 +1016,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
10161016
10171017<C ,xskip >{exec_sql }{else }{space }* " ;" {/* only exec sql endif pops the stack, so take care of duplicated 'else' */
10181018if (stacked_if_value[preproc_tos].else_branch )
1019- mmerror (PARSE_ERROR, ET_FATAL ," more than one EXEC SQL ELSE" );
1019+ mmfatal (PARSE_ERROR," more than one EXEC SQL ELSE" );
10201020else
10211021{
10221022stacked_if_value[preproc_tos].else_branch =TRUE ;
@@ -1035,7 +1035,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
10351035if (INFORMIX_MODE)
10361036{
10371037if (stacked_if_value[preproc_tos].else_branch )
1038- mmerror (PARSE_ERROR, ET_FATAL ," more than one EXEC SQL ELSE" );
1038+ mmfatal (PARSE_ERROR," more than one EXEC SQL ELSE" );
10391039else
10401040{
10411041stacked_if_value[preproc_tos].else_branch =TRUE ;
@@ -1057,7 +1057,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
10571057}
10581058<C ,xskip >{exec_sql }{endif }{space }* " ;" {
10591059if (preproc_tos ==0 )
1060- mmerror (PARSE_ERROR, ET_FATAL ," unmatched EXEC SQL ENDIF" );
1060+ mmfatal (PARSE_ERROR," unmatched EXEC SQL ENDIF" );
10611061else
10621062preproc_tos--;
10631063
@@ -1071,7 +1071,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
10711071if (INFORMIX_MODE)
10721072{
10731073if (preproc_tos ==0 )
1074- mmerror (PARSE_ERROR, ET_FATAL ," unmatched EXEC SQL ENDIF" );
1074+ mmfatal (PARSE_ERROR," unmatched EXEC SQL ENDIF" );
10751075else
10761076preproc_tos--;
10771077
@@ -1091,7 +1091,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
10911091
10921092<xcond >{identifier }{space }* " ;" {
10931093if (preproc_tos >= MAX_NESTED_IF-1 )
1094- mmerror (PARSE_ERROR, ET_FATAL ," too many nested EXEC SQL IFDEF conditions" );
1094+ mmfatal (PARSE_ERROR," too many nested EXEC SQL IFDEF conditions" );
10951095else
10961096{
10971097struct _defines *defptr;
@@ -1124,7 +1124,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
11241124}
11251125
11261126<xcond >{other }| \n {
1127- mmerror (PARSE_ERROR, ET_FATAL ," missing identifier in EXEC SQL IFDEF command" );
1127+ mmfatal (PARSE_ERROR," missing identifier in EXEC SQL IFDEF command" );
11281128yyterminate ();
11291129}
11301130<def_ident >{identifier } {
@@ -1133,7 +1133,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
11331133startlit ();
11341134}
11351135<def_ident >{other }| \n {
1136- mmerror (PARSE_ERROR, ET_FATAL ," missing identifier in EXEC SQL DEFINE command" );
1136+ mmfatal (PARSE_ERROR," missing identifier in EXEC SQL DEFINE command" );
11371137yyterminate ();
11381138}
11391139<def >{space }* " ;" {
@@ -1166,7 +1166,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
11661166<incl >{dquote }{xdinside }{dquote }{space }* " ;" ? {parse_include (); }
11671167<incl >[^ ; \<\>\" ]+ " ;" {parse_include (); }
11681168<incl >{other }| \n {
1169- mmerror (PARSE_ERROR, ET_FATAL ," syntax error in EXEC SQL INCLUDE command" );
1169+ mmfatal (PARSE_ERROR," syntax error in EXEC SQL INCLUDE command" );
11701170yyterminate ();
11711171}
11721172
@@ -1176,7 +1176,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
11761176if ( preproc_tos >0 )
11771177{
11781178preproc_tos =0 ;
1179- mmerror (PARSE_ERROR, ET_FATAL ," missing\" EXEC SQL ENDIF;\" " );
1179+ mmfatal (PARSE_ERROR," missing\" EXEC SQL ENDIF;\" " );
11801180}
11811181yyterminate ();
11821182}
@@ -1215,7 +1215,7 @@ cppline{space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
12151215
12161216}
12171217}
1218- <INITIAL >{other }| \n {mmerror (PARSE_ERROR, ET_FATAL ," internal error: unreachable state; please report this to <pgsql-bugs@postgresql.org>" ); }
1218+ <INITIAL >{other }| \n {mmfatal (PARSE_ERROR," internal error: unreachable state; please report this to <pgsql-bugs@postgresql.org>" ); }
12191219%%
12201220void
12211221lex_init (void )
@@ -1362,7 +1362,7 @@ parse_include(void)
13621362}
13631363}
13641364if (!yyin)
1365- mmerror (NO_INCLUDE_FILE, ET_FATAL ," could not open include file\" %s\" on line %d" , yytext, yylineno);
1365+ mmfatal (NO_INCLUDE_FILE," could not open include file\" %s\" on line %d" , yytext, yylineno);
13661366
13671367input_filename =mm_strdup (inc_file);
13681368yy_switch_to_buffer (yy_create_buffer (yyin,YY_BUF_SIZE ));