From 417141dd6134bdb32a1a7d64b2bac4f8bcca0461 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 30 Aug 2004 07:50:08 +0000 Subject: [PATCH 1/1] * data/glr.c: Guard the declarations of yypstack and yypdumpstack with #ifdef YYDEBUG. --- ChangeLog | 5 +++++ data/glr.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index f4adc707..55538670 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-08-30 Florian Krohm + + * data/glr.c: Guard the declarations of yypstack and yypdumpstack + with #ifdef YYDEBUG. + 2004-08-26 Akim Demaille * doc/bison.texinfo (Implementing Loops): Rename as... diff --git a/data/glr.c b/data/glr.c index 2a332124..e82282d4 100644 --- a/data/glr.c +++ b/data/glr.c @@ -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 -- 2.45.2