aboutsummaryrefslogtreecommitdiff
path: root/yaccpar.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2020-06-22 22:42:20 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2020-06-22 22:42:20 +0000
commit5dd99b746d26517ef72ee914e30ece2761079321 (patch)
tree30d932dc7c9813aee58587bffceac1350e1ff900 /yaccpar.c
parent8bb3d1b8fb77d3704e1de225c83b8b66ca673da8 (diff)
Import byacc 20200330.vendor/byacc/20200330
Notes
Notes: svn path=/vendor/byacc/dist/; revision=362513 svn path=/vendor/byacc/20200330/; revision=362514; tag=vendor/byacc/20200330
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 6186453019e3..e57bd4bb7d36 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;",