mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
yacc.c: fix misleading indentation
* data/skeletons/yacc.c: here.
This commit is contained in:
@@ -1207,7 +1207,7 @@ yyparse_context_location (const yyparse_context_t *yyctx)
|
||||
b4_parse_param)],
|
||||
[simple],
|
||||
[[]],
|
||||
[[# ifndef yystrlen
|
||||
[[#ifndef yystrlen
|
||||
# if defined __GLIBC__ && defined _STRING_H
|
||||
# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
|
||||
# else
|
||||
@@ -1221,9 +1221,9 @@ yyparse_context_location (const yyparse_context_t *yyctx)
|
||||
return yylen;
|
||||
}
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
# ifndef yystpcpy
|
||||
#ifndef yystpcpy
|
||||
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
|
||||
# define yystpcpy stpcpy
|
||||
# else
|
||||
@@ -1241,11 +1241,11 @@ yyparse_context_location (const yyparse_context_t *yyctx)
|
||||
return yyd - 1;
|
||||
}
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
]m4_case(b4_percent_define_get([[parse.error]]),
|
||||
[verbose],
|
||||
[[# ifndef yytnamerr
|
||||
[[#ifndef yytnamerr
|
||||
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
|
||||
quotes and backslashes, so that it's suitable for yyerror. The
|
||||
heuristic is that double-quoting is unnecessary unless the string
|
||||
@@ -1293,7 +1293,7 @@ yytnamerr (char *yyres, const char *yystr)
|
||||
else
|
||||
return yystrlen (yystr);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
]])[
|
||||
|
||||
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
|
||||
@@ -1343,7 +1343,7 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
|
||||
|
||||
/* Compute error message size. Don't count the "%s"s, but reserve
|
||||
room for the terminator. */
|
||||
yysize = (yystrlen (yyformat) - 2 * yycount) + 1;
|
||||
yysize = yystrlen (yyformat) - 2 * yycount + 1;
|
||||
{
|
||||
int yyi;
|
||||
for (yyi = 0; yyi < yycount; ++yyi)
|
||||
@@ -1393,9 +1393,9 @@ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
|
||||
|
||||
]b4_yydestruct_define[
|
||||
|
||||
]b4_pure_if([], [
|
||||
]b4_pure_if([], [[
|
||||
|
||||
b4_declare_scanner_communication_variables])[]b4_push_if([[
|
||||
]b4_declare_scanner_communication_variables])[]b4_push_if([[
|
||||
|
||||
struct yypstate
|
||||
{]b4_declare_parser_state_variables[
|
||||
|
||||
Reference in New Issue
Block a user