summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nsgenbind-parser.y5
-rw-r--r--src/webidl-parser.y5
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 }