diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-05-02 10:27:42 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-02 10:27:42 +0100 |
commit | 1e603c7225117c26e793a455a30b59d6d7551d5e (patch) | |
tree | 650d9adca2f12facad902d285fb1e5ec75af48bc /src | |
parent | 265c3269d328bcb481919649f7adf764fd59aa08 (diff) | |
download | nsgenbind-1e603c7225117c26e793a455a30b59d6d7551d5e.tar.gz nsgenbind-1e603c7225117c26e793a455a30b59d6d7551d5e.tar.bz2 |
cope with older bison deirectives to get a pure parser
Diffstat (limited to 'src')
-rw-r--r-- | src/nsgenbind-parser.y | 5 | ||||
-rw-r--r-- | 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 } |