Commit c2f7e5ff authored by Steve Beattie's avatar Steve Beattie

bison grammers: use pure.api directive instead of pure-parser variants

This patch adjusts the bison grammer in libapparmor and the parser
to use the %define api.pure directive instead of the deprecated
%pure_parser and %pure-parser keywords.  Bison had been warning about
the former:

  libraries/libapparmor/src/grammar.y:71.1-12: warning: deprecated directive, use ‘%pure-parser’ [-Wdeprecated]
  %pure_parser
  ^^^^^^^^^^^^
Signed-off-by: Steve Beattie's avatarSteve Beattie <steve@nxnw.org>
Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
parent 5bd93faf
......@@ -68,7 +68,7 @@ aa_record_event_type lookup_aa_event(unsigned int type)
%}
%defines
%pure_parser
%define api.pure
%lex-param{void *scanner}
%parse-param{void *scanner}
......
......@@ -55,7 +55,7 @@ static inline Chars* insert_char_range(Chars* cset, uchar a, uchar b)
%}
%pure-parser
%define api.pure
/* %error-verbose */
%lex-param {YYLEX_PARAM}
%parse-param {Node **root}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment