From 4d8e4ba21c3f1af1f3f2a14dbbd6763b16be768e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 5 Nov 2015 12:29:53 +0100 Subject: [PATCH] Update cql.y for newer bison YAZ-720 --- src/cql.y | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/cql.y b/src/cql.y index 25a4287..7ab6be7 100644 --- a/src/cql.y +++ b/src/cql.y @@ -45,14 +45,13 @@ #define YYSTYPE token -#define YYPARSE_PARAM parm -#define YYLEX_PARAM parm - - int yylex(YYSTYPE *lval, void *vp); - int yyerror(char *s); +int yylex(YYSTYPE *lval, void *vp); +int yyerror(char *lval, char *msg); %} -%pure_parser +%lex-param {void *parm} +%parse-param {void *parm} +%pure-parser %token DOTTERM TERM AND OR NOT PROX GE LE NE EXACT SORTBY %% @@ -216,7 +215,7 @@ searchTerm: %% -int yyerror(char *s) +int yyerror(char *locp, char *s) { return 0; } -- 1.7.10.4