[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
add #ifdef YYDEBUG in data/glr.c
From: |
Florian Krohm |
Subject: |
add #ifdef YYDEBUG in data/glr.c |
Date: |
Thu, 26 Aug 2004 22:00:46 -0400 |
User-agent: |
KMail/1.6.2 |
The functions yypstack and yypdumpstack are for debugging purposes
only and should be guarded accordingly. Doing so also avoids compiler
warnings with -Wall.
2004-08-26 Florian Krohm <address@hidden>
* data/glr.c: Guard the declarations of yypstack and yypdumpstack
with #ifdef YYDEBUG.
Index: data/glr.c
===================================================================
RCS file: /cvsroot/bison/bison/data/glr.c,v
retrieving revision 1.70
diff -u -r1.70 glr.c
--- data/glr.c 21 Jun 2004 20:20:30 -0000 1.70
+++ data/glr.c 27 Aug 2004 01:48:17 -0000
@@ -1931,6 +1931,7 @@
}
/* DEBUGGING ONLY */
+#ifdef YYDEBUG
static void yypstack (yyGLRStack* yystack, int yyk) ATTRIBUTE_UNUSED;
static void yypdumpstack (yyGLRStack* yystack) ATTRIBUTE_UNUSED;
@@ -1998,6 +1999,7 @@
(long int) YYINDEX (yystack->yytops.yystates[yyi]));
fprintf (stderr, "\n");
}
+#endif
]
b4_epilogue
- add #ifdef YYDEBUG in data/glr.c,
Florian Krohm <=