Commit b40cab65 authored by Alexander Barkov's avatar Alexander Barkov

Bison parser cleanups: define yyerror() instead of MYSQLerror()/ORAerror()

To reduce the difference between sql_yacc.yy and sql_yacc_ora.yy,
using yyerror() in both files, instead of MYSQLerror() and ORAerror().
The pre-processor replaces yyerror() to MYSQLerror() and ORAerror()
anyway.
parent 927ea880
...@@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd); ...@@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd);
to abort from the parser. to abort from the parser.
*/ */
void MYSQLerror(THD *thd, const char *s) static void yyerror(THD *thd, const char *s)
{ {
/* /*
Restore the original LEX if it was replaced when parsing Restore the original LEX if it was replaced when parsing
......
...@@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd); ...@@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd);
to abort from the parser. to abort from the parser.
*/ */
void ORAerror(THD *thd, const char *s) static void yyerror(THD *thd, const char *s)
{ {
/* /*
Restore the original LEX if it was replaced when parsing Restore the original LEX if it was replaced when parsing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment