From 1e603c7225117c26e793a455a30b59d6d7551d5e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 2 May 2014 10:27:42 +0100 Subject: cope with older bison deirectives to get a pure parser --- src/nsgenbind-parser.y | 5 ++++- src/webidl-parser.y | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/nsgenbind-parser.y b/src/nsgenbind-parser.y index 472e655..46bc4f3 100644 --- a/src/nsgenbind-parser.y +++ b/src/nsgenbind-parser.y @@ -28,7 +28,10 @@ char *errtxt; %} %locations -%define api.pure + /* bison prior to 2.4 cannot cope with %define api.pure so we use the + * deprecated directive + */ +%pure-parser %error-verbose %parse-param { struct genbind_node **genbind_ast } diff --git a/src/webidl-parser.y b/src/webidl-parser.y index 55ab221..9324212 100644 --- a/src/webidl-parser.y +++ b/src/webidl-parser.y @@ -35,7 +35,10 @@ webidl_error(YYLTYPE *locp, struct webidl_node **winbind_ast, const char *str) %} %locations -%define api.pure + /* bison prior to 2.4 cannot cope with %define api.pure so we use the + * deprecated directive + */ +%pure-parser %error-verbose %parse-param { struct webidl_node **webidl_ast } -- cgit v1.2.1