From c0ad8bf3c2fb46f001bb24ac98a72b8bfb3a77ce Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 4 Sep 2002 12:03:01 +0000 Subject: [PATCH] * data/yacc.c: Guard the declaration of yytoknum also with `#ifdef YYPRINT', so it is declared only when used. --- ChangeLog | 5 +++++ THANKS | 2 +- data/yacc.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 13ef7276..d4a4d39b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-09-04 Jim Meyering + + * data/yacc.c: Guard the declaration of yytoknum also with + `#ifdef YYPRINT', so it is declared only when used. + 2002-09-04 Akim Demaille * configure.in: Rename as... diff --git a/THANKS b/THANKS index 66ec166a..6084c7bc 100644 --- a/THANKS +++ b/THANKS @@ -21,7 +21,7 @@ Florian Krohm florian@edamail.fishkill.ibm.com H. Merijn Brand h.m.brand@hccnet.nl Hans Aberg haberg@matematik.su.se Jesse Thilo jthilo@gnu.org -Jim Meyering meyering@gnu.org +Jim Meyering jim@meyering.net Juan Manuel Guerrero ST001906@HRZ1.HRZ.TU-Darmstadt.De Kees Zeelenberg kzlg@users.sourceforge.net Keith Browne kbrowne@legato.com diff --git a/data/yacc.c b/data/yacc.c index b57db164..daa08d60 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -358,12 +358,14 @@ static const char *const yytname[[]] = }; #endif +# ifdef YYPRINT /* YYTOKNUM[[YYLEX-NUM]] -- Internal token number corresponding to token YYLEX-NUM. */ static const b4_int_type_for([b4_toknum]) yytoknum[[]] = { b4_toknum }; +# endif /* YYR1[[YYN]] -- Symbol number of symbol that rule YYN derives. */ static const b4_int_type_for([b4_r1]) yyr1[[]] = -- 2.47.2