Skip to content

Commit fc8c0a9

Browse files
Jiri Olsaacmel
authored andcommitted
perf tools: Use %define api.pure full instead of %pure-parser
bison deprecated the "%pure-parser" directive in favor of "%define api.pure full". The api.pure got introduced in bison 2.3 (Oct 2007), so it seems safe to use it without any version check. Signed-off-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Clark Williams <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lore.kernel.org/lkml/20200112192259.GA35080@krava Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent cb71f7d commit fc8c0a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/perf/util/expr.y

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
#define MAXIDLEN 256
1313
%}
1414

15-
%pure-parser
15+
%define api.pure full
16+
1617
%parse-param { double *final_val }
1718
%parse-param { struct parse_ctx *ctx }
1819
%parse-param { const char **pp }

tools/perf/util/parse-events.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%pure-parser
1+
%define api.pure full
22
%parse-param {void *_parse_state}
33
%parse-param {void *scanner}
44
%lex-param {void* scanner}

0 commit comments

Comments
 (0)