From 031caca8caebfdd2fe82d72dece0872ad016580c Mon Sep 17 00:00:00 2001 From: Nicholas Sielicki Date: Sun, 29 Sep 2019 18:19:45 -0500 Subject: [PATCH] replace deprecated yacc directives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tgt-pcb/fp.y | 2 +- vhdlpp/parse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tgt-pcb/fp.y b/tgt-pcb/fp.y index 60be85032..111c5f7ba 100644 --- a/tgt-pcb/fp.y +++ b/tgt-pcb/fp.y @@ -1,5 +1,5 @@ -%pure-parser +%define api.pure %parse-param {const char*file_path} %{ diff --git a/vhdlpp/parse.y b/vhdlpp/parse.y index 6b4c13e5d..ece7a0b70 100644 --- a/vhdlpp/parse.y +++ b/vhdlpp/parse.y @@ -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}