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