From: Akim Demaille Date: Mon, 30 Aug 2004 07:50:08 +0000 (+0000) Subject: * data/glr.c: Guard the declarations of yypstack and yypdumpstack X-Git-Tag: BISON-2_0~122 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/417141dd6134bdb32a1a7d64b2bac4f8bcca0461?hp=2fa09258b1e86ece8ec50836be4a76e383b89cb4 * data/glr.c: Guard the declarations of yypstack and yypdumpstack with #ifdef YYDEBUG. --- 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