mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
glr.c: move function declaration earlier
* data/glr.c (yypstack, yypdumpstack): Declare earlier, to make it easier to call them from other functions.
This commit is contained in:
10
data/glr.c
10
data/glr.c
@@ -471,6 +471,12 @@ typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;
|
|||||||
multiple parsers can coexist. */
|
multiple parsers can coexist. */
|
||||||
int yydebug;
|
int yydebug;
|
||||||
|
|
||||||
|
struct yyGLRStack;
|
||||||
|
static void yypstack (struct yyGLRStack* yystackp, size_t yyk)
|
||||||
|
__attribute__ ((__unused__));
|
||||||
|
static void yypdumpstack (struct yyGLRStack* yystackp)
|
||||||
|
__attribute__ ((__unused__));
|
||||||
|
|
||||||
#else /* !]b4_api_PREFIX[DEBUG */
|
#else /* !]b4_api_PREFIX[DEBUG */
|
||||||
|
|
||||||
# define YYDPRINTF(Args)
|
# define YYDPRINTF(Args)
|
||||||
@@ -2482,10 +2488,6 @@ b4_dollar_popdef])[]dnl
|
|||||||
|
|
||||||
/* DEBUGGING ONLY */
|
/* DEBUGGING ONLY */
|
||||||
#if ]b4_api_PREFIX[DEBUG
|
#if ]b4_api_PREFIX[DEBUG
|
||||||
static void yypstack (yyGLRStack* yystackp, size_t yyk)
|
|
||||||
__attribute__ ((__unused__));
|
|
||||||
static void yypdumpstack (yyGLRStack* yystackp) __attribute__ ((__unused__));
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
yy_yypstack (yyGLRState* yys)
|
yy_yypstack (yyGLRState* yys)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user