replace deprecated yacc directives

bison 3.4.2 complains when encountering '%pure-parser':
"warning: deprecated directive, use ‘%define api.pure’"

A quick google suggests this option has been around since at least
2012, maybe longer, so probably safe to replace.

Signed-off-by: Nicholas Sielicki <sielicki@yandex.com>
This commit is contained in:
Nicholas Sielicki 2019-09-29 18:19:45 -05:00
parent 8a85d62ec7
commit 031caca8ca
No known key found for this signature in database
GPG Key ID: 07100E9D860CF247
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
%pure-parser
%define api.pure
%parse-param {const char*file_path}
%{

View File

@ -1,5 +1,5 @@
%pure-parser
%define api.pure
%lex-param { yyscan_t yyscanner }
%parse-param {yyscan_t yyscanner }
%parse-param {const char*file_path}