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.
This commit is contained in:
Alexander Barkov 2019-11-19 15:55:36 +04:00
parent 927ea88084
commit b40cab657b
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd);
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

View file

@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd);
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