[Top][All Lists]
[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
- [PATCH 0/9] {master} import improvements from {make-glr-symbol}, Akim Demaille, 2012/12/19
- [PATCH 7/9] gnulib: update, Akim Demaille, 2012/12/19
- [PATCH 4/9] glr.cc: simplifying the handling of parse/lex params, Akim Demaille, 2012/12/19
- [PATCH 6/9] skeletons: fix output directives, Akim Demaille, 2012/12/19
- [PATCH 5/9] yacc.c: style changes, Akim Demaille, 2012/12/19
- [PATCH 1/9] %define variables: backward compatibility, Akim Demaille, 2012/12/19
- [PATCH 2/9] glr.c: move function declaration earlier,
Akim Demaille <=
- [PATCH 3/9] glr: rename lex params, Akim Demaille, 2012/12/19
- [PATCH 9/9] variants: prohibit simple copies, Akim Demaille, 2012/12/19
- [PATCH 8/9] variant: more assertions, Akim Demaille, 2012/12/19