summaryrefslogtreecommitdiff
path: root/yaccpar.c
diff options
context:
space:
mode:
Diffstat (limited to 'yaccpar.c')
-rw-r--r--yaccpar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/yaccpar.c b/yaccpar.c
index 6186453019e37..e57bd4bb7d365 100644
--- a/yaccpar.c
+++ b/yaccpar.c
@@ -2,7 +2,7 @@
* @Id: skel2c,v 1.4 2016/06/07 00:26:09 tom Exp @
*/
-/* @Id: yaccpar.skel,v 1.8 2016/12/02 21:44:42 tom Exp @ */
+/* @Id: yaccpar.skel,v 1.10 2018/05/06 21:28:14 Guy.Harris Exp @ */
#include "defs.h"
@@ -67,8 +67,9 @@ const char *const tables[] =
const char *const global_vars[] =
{
"",
+ "#if YYDEBUG",
"int yydebug;",
- "int yynerrs;",
+ "#endif",
0
};
@@ -79,6 +80,7 @@ const char *const impure_vars[] =
"int yychar;",
"YYSTYPE yyval;",
"YYSTYPE yylval;",
+ "int yynerrs;",
0
};
@@ -124,6 +126,7 @@ const char *const body_vars[] =
" int yychar;",
" YYSTYPE yyval;",
" YYSTYPE yylval;",
+ " int yynerrs;",
"",
" /* variables for the parser stack */",
" YYSTACKDATA yystack;",