]> git.saurik.com Git - bison.git/commitdiff
* data/yacc.c: Guard the declaration of yytoknum also with
authorAkim Demaille <akim@epita.fr>
Wed, 4 Sep 2002 12:03:01 +0000 (12:03 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 4 Sep 2002 12:03:01 +0000 (12:03 +0000)
`#ifdef YYPRINT', so it is declared only when used.

ChangeLog
THANKS
data/yacc.c

index 13ef727632f526da943cff66b8f831f5e6102b24..d4a4d39b94093310a29d0a76ad97fbf7ac94d212 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-04  Jim Meyering  <jim@meyering.net>
+
+       * data/yacc.c: Guard the declaration of yytoknum also with
+       `#ifdef YYPRINT', so it is declared only when used.
+
 2002-09-04  Akim Demaille  <akim@epita.fr>
 
        * configure.in: Rename as...
diff --git a/THANKS b/THANKS
index 66ec166af524d7df9ae7fb76f8b9aba83f75dca0..6084c7bc776f11fcb586be4a4a319fa316fcde63 100644 (file)
--- 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
index b57db16493d41b4fc1647c35b9ab1c22f2ae6110..daa08d60dad3c644398b3ec19e511b3ae47cbf32 100644 (file)
@@ -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[[]] =