mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
(YYCOPY, yystpcpy, yyparse): Remove "register".
This commit is contained in:
16
data/yacc.c
16
data/yacc.c
@@ -286,7 +286,7 @@ union yyalloc
|
|||||||
# define YYCOPY(To, From, Count) \
|
# define YYCOPY(To, From, Count) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
register YYSIZE_T yyi; \
|
YYSIZE_T yyi; \
|
||||||
for (yyi = 0; yyi < (Count); yyi++) \
|
for (yyi = 0; yyi < (Count); yyi++) \
|
||||||
(To)[yyi] = (From)[yyi]; \
|
(To)[yyi] = (From)[yyi]; \
|
||||||
} \
|
} \
|
||||||
@@ -666,7 +666,7 @@ yystrlen (yystr)
|
|||||||
const char *yystr;
|
const char *yystr;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
register const char *yys = yystr;
|
const char *yys = yystr;
|
||||||
|
|
||||||
while (*yys++ != '\0')
|
while (*yys++ != '\0')
|
||||||
continue;
|
continue;
|
||||||
@@ -691,8 +691,8 @@ yystpcpy (yydest, yysrc)
|
|||||||
const char *yysrc;
|
const char *yysrc;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
register char *yyd = yydest;
|
char *yyd = yydest;
|
||||||
register const char *yys = yysrc;
|
const char *yys = yysrc;
|
||||||
|
|
||||||
while ((*yyd++ = *yys++) != '\0')
|
while ((*yyd++ = *yys++) != '\0')
|
||||||
continue;
|
continue;
|
||||||
@@ -764,8 +764,8 @@ b4_c_function_def([yyparse], [int], b4_parse_param)
|
|||||||
#endif
|
#endif
|
||||||
{[
|
{[
|
||||||
]b4_pure_if([b4_declare_parser_variables])[
|
]b4_pure_if([b4_declare_parser_variables])[
|
||||||
register int yystate;
|
int yystate;
|
||||||
register int yyn;
|
int yyn;
|
||||||
int yyresult;
|
int yyresult;
|
||||||
/* Number of tokens to shift before error messages enabled. */
|
/* Number of tokens to shift before error messages enabled. */
|
||||||
int yyerrstatus;
|
int yyerrstatus;
|
||||||
@@ -783,12 +783,12 @@ b4_c_function_def([yyparse], [int], b4_parse_param)
|
|||||||
/* The state stack. */
|
/* The state stack. */
|
||||||
short int yyssa[YYINITDEPTH];
|
short int yyssa[YYINITDEPTH];
|
||||||
short int *yyss = yyssa;
|
short int *yyss = yyssa;
|
||||||
register short int *yyssp;
|
short int *yyssp;
|
||||||
|
|
||||||
/* The semantic value stack. */
|
/* The semantic value stack. */
|
||||||
YYSTYPE yyvsa[YYINITDEPTH];
|
YYSTYPE yyvsa[YYINITDEPTH];
|
||||||
YYSTYPE *yyvs = yyvsa;
|
YYSTYPE *yyvs = yyvsa;
|
||||||
register YYSTYPE *yyvsp;
|
YYSTYPE *yyvsp;
|
||||||
|
|
||||||
]b4_location_if(
|
]b4_location_if(
|
||||||
[[ /* The location stack. */
|
[[ /* The location stack. */
|
||||||
|
|||||||
Reference in New Issue
Block a user