bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/9] glr.c: move function declaration earlier


From: Akim Demaille
Subject: [PATCH 2/9] glr.c: move function declaration earlier
Date: Wed, 19 Dec 2012 11:36:03 +0100

* data/glr.c (yypstack, yypdumpstack): Declare earlier, to make
it easier to call them from other functions.
---
 data/glr.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/data/glr.c b/data/glr.c
index 6c03af3..13c7381 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)
 {
-- 
1.8.0.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]