From: Akim Demaille Date: Wed, 19 Dec 2012 09:36:40 +0000 (+0100) Subject: glr.c: move function declaration earlier X-Git-Tag: v2.7.90~248 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ea45ade792bb01f9e8f778fce6a5f5b424af69de glr.c: move function declaration earlier * data/glr.c (yypstack, yypdumpstack): Declare earlier, to make it easier to call them from other functions. --- diff --git a/data/glr.c b/data/glr.c index 6c03af3b..13c73814 100644 --- a/data/glr.c +++ b/data/glr.c @@ -471,6 +471,12 @@ typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG; multiple parsers can coexist. */ 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 */ # define YYDPRINTF(Args) @@ -2482,10 +2488,6 @@ b4_dollar_popdef])[]dnl /* DEBUGGING ONLY */ #if ]b4_api_PREFIX[DEBUG -static void yypstack (yyGLRStack* yystackp, size_t yyk) - __attribute__ ((__unused__)); -static void yypdumpstack (yyGLRStack* yystackp) __attribute__ ((__unused__)); - static void yy_yypstack (yyGLRState* yys) {