mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-28 05:33:03 +00:00
lalr1.cc: style changes
* data/skeletons/lalr1.cc: Formatting changes. Use more `const`, as in glr2.cc.
This commit is contained in:
@@ -1317,16 +1317,16 @@ b4_dollar_popdef])[]dnl
|
||||
yyarg[yycount++] = yysym;
|
||||
}
|
||||
}]], [[
|
||||
int yyn = yypact_[+yyparser_.yystack_[0].state];
|
||||
const int yyn = yypact_[+yyparser_.yystack_[0].state];
|
||||
if (!yy_pact_value_is_default_ (yyn))
|
||||
{
|
||||
/* Start YYX at -YYN if negative to avoid negative indexes in
|
||||
YYCHECK. In other words, skip the first -YYN actions for
|
||||
this state because they are default actions. */
|
||||
int yyxbegin = yyn < 0 ? -yyn : 0;
|
||||
const int yyxbegin = yyn < 0 ? -yyn : 0;
|
||||
// Stay within bounds of both yycheck and yytname.
|
||||
int yychecklim = yylast_ - yyn + 1;
|
||||
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
|
||||
const int yychecklim = yylast_ - yyn + 1;
|
||||
const int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
|
||||
for (int yyx = yyxbegin; yyx < yyxend; ++yyx)
|
||||
if (yycheck_[yyx + yyn] == yyx && yyx != ]b4_symbol(error, kind)[
|
||||
&& !yy_table_value_is_error_ (yytable_[yyx + yyn]))
|
||||
@@ -1345,7 +1345,9 @@ b4_dollar_popdef])[]dnl
|
||||
return yycount;
|
||||
}
|
||||
|
||||
]])b4_lac_if([[
|
||||
]])[
|
||||
|
||||
]b4_lac_if([[
|
||||
bool
|
||||
]b4_parser_class[::yy_lac_check_ (symbol_kind_type yytoken) const
|
||||
{
|
||||
@@ -1484,8 +1486,9 @@ b4_dollar_popdef])[]dnl
|
||||
<< event << '\n';
|
||||
yy_lac_established_ = false;
|
||||
}
|
||||
}]])b4_parse_error_bmatch([detailed\|verbose], [[
|
||||
}]])[
|
||||
|
||||
]b4_parse_error_bmatch([detailed\|verbose], [[
|
||||
int
|
||||
]b4_parser_class[::yy_syntax_error_arguments_ (const context& yyctx,
|
||||
symbol_kind_type yyarg[], int yyargn) const
|
||||
|
||||
Reference in New Issue
Block a user