]> git.saurik.com Git - bison.git/commitdiff
* data/glr.c: Guard the declarations of yypstack and yypdumpstack
authorAkim Demaille <akim@epita.fr>
Mon, 30 Aug 2004 07:50:08 +0000 (07:50 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 30 Aug 2004 07:50:08 +0000 (07:50 +0000)
with #ifdef YYDEBUG.

ChangeLog
data/glr.c

index f4adc7078da6612b954ffb0d024f0da048ab00fc..55538670e245ee9684d53ae939d33e643c1277ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-30  Florian Krohm  <florian@edamail.fishkill.ibm.com>
+
+       * data/glr.c: Guard the declarations of yypstack and yypdumpstack
+       with #ifdef YYDEBUG.
+
 2004-08-26  Akim Demaille  <akim@epita.fr>
 
        * doc/bison.texinfo (Implementing Loops): Rename as...
index 2a332124fac22004ff4ee9ac288fb30b25638988..e82282d426437a42db892bcac36ebc99a47cfa40 100644 (file)
@@ -1931,6 +1931,7 @@ yyrecoverSyntaxError (yyGLRStack* yystack,
 }
 
 /* DEBUGGING ONLY */
+#ifdef YYDEBUG
 static void yypstack (yyGLRStack* yystack, int yyk) ATTRIBUTE_UNUSED;
 static void yypdumpstack (yyGLRStack* yystack) ATTRIBUTE_UNUSED;
 
@@ -1998,6 +1999,7 @@ yypdumpstack (yyGLRStack* yystack)
             (long int) YYINDEX (yystack->yytops.yystates[yyi]));
   fprintf (stderr, "\n");
 }
+#endif
 ]
 
 b4_epilogue