From 9117bff7bdb6fbef175f136d1c5a83c97e33eda2 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 7 Aug 2012 13:39:47 -0400 Subject: [PATCH] Revert "Cleanup: YYPARSE_PARAM and YYLEX_PARAM are deprecated in bison 2.6" This reverts commit 51f4bb7a60d9f073553691dd0f4a52a88592c727. Still needed for bison 2.5. Signed-off-by: Mathieu Desnoyers --- formats/ctf/metadata/ctf-ast.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/formats/ctf/metadata/ctf-ast.h b/formats/ctf/metadata/ctf-ast.h index ef863a0f..8d2e5d77 100644 --- a/formats/ctf/metadata/ctf-ast.h +++ b/formats/ctf/metadata/ctf-ast.h @@ -22,6 +22,13 @@ #include #include +// the parameter name (of the reentrant 'yyparse' function) +// data is a pointer to a 'SParserParam' structure +//#define YYPARSE_PARAM scanner + +// the argument for the 'yylex' function +#define YYLEX_PARAM ((struct ctf_scanner *) scanner)->scanner + struct ctf_node; struct ctf_parser; -- 2.34.1