template/bison/yacc.c in lrama-0.5.9 vs template/bison/yacc.c in lrama-0.5.10
- old
+ new
@@ -67,15 +67,17 @@
/* Pull parsers. */
#define YYPULL 1
<%# b4_user_pre_prologue -%>
+<%- if output.aux.prologue -%>
/* First part of user prologue. */
#line <%= output.aux.prologue_first_lineno %> "<%= output.grammar_file_path %>"
<%= output.aux.prologue %>
#line [@oline@] [@ofile@]
+<%- end -%>
<%# b4_cast_define -%>
# ifndef YY_CAST
# ifdef __cplusplus
# define YY_CAST(Type, Val) static_cast<Type> (Val)
@@ -1481,10 +1483,11 @@
YYLTYPE yylloc = yyloc_default;
<%# b4_declare_parser_state_variables -%>
/* Number of syntax errors so far. */
int yynerrs = 0;
+ YY_USE (yynerrs); /* Silence compiler warning. */
yy_state_fast_t yystate = 0;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus = 0;
@@ -2041,9 +2044,11 @@
YYSTACK_FREE (yymsg);
return yyresult;
}
<%# b4_percent_code_get([[epilogue]]) -%>
+<%- if output.aux.epilogue -%>
#line <%= output.aux.epilogue_first_lineno - 1 %> "<%= output.grammar_file_path %>"
<%= output.aux.epilogue -%>
+<%- end -%>