* data/glr.c: Guard the declarations of yypstack and yypdumpstack

with #ifdef YYDEBUG.
This commit is contained in:
Akim Demaille
2004-08-30 07:50:08 +00:00
parent 2fa09258b1
commit 417141dd61
2 changed files with 7 additions and 0 deletions

View File

@@ -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...

View 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