X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/da436e4383a5de048a4d9310342976505be30417..e62f1a899168bdf1658dd6d934dea407491a80ff:/src/parse-gram.c diff --git a/src/parse-gram.c b/src/parse-gram.c index d9a3aa86..19a0252d 100644 --- a/src/parse-gram.c +++ b/src/parse-gram.c @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 2.0. */ +/* A Bison parser, made by GNU Bison 2.0a. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. @@ -251,7 +251,7 @@ typedef union YYSTYPE { assoc assoc; uniqstr uniqstr; } YYSTYPE; -/* Line 190 of yacc.c. */ +/* Line 191 of yacc.c. */ #line 256 "parse-gram.c" # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 @@ -275,7 +275,7 @@ typedef struct YYLTYPE /* Copy the second part of user declarations. */ -/* Line 213 of yacc.c. */ +/* Line 214 of yacc.c. */ #line 280 "parse-gram.c" #if ! defined (yyoverflow) || YYERROR_VERBOSE @@ -345,7 +345,7 @@ union yyalloc # define YYCOPY(To, From, Count) \ do \ { \ - register YYSIZE_T yyi; \ + YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ @@ -901,7 +901,7 @@ yystrlen (yystr) const char *yystr; # endif { - register const char *yys = yystr; + const char *yys = yystr; while (*yys++ != '\0') continue; @@ -926,8 +926,8 @@ yystpcpy (yydest, yysrc) const char *yysrc; # endif { - register char *yyd = yydest; - register const char *yys = yysrc; + char *yyd = yydest; + const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; @@ -1070,8 +1070,8 @@ int yynerrs; /* Location data for the look-ahead symbol. */ YYLTYPE yylloc; - register int yystate; - register int yyn; + int yystate; + int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; @@ -1089,12 +1089,12 @@ YYLTYPE yylloc; /* The state stack. */ short int yyssa[YYINITDEPTH]; short int *yyss = yyssa; - register short int *yyssp; + short int *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; - register YYSTYPE *yyvsp; + YYSTYPE *yyvsp; /* The location stack. */ YYLTYPE yylsa[YYINITDEPTH]; @@ -1147,7 +1147,7 @@ YYLTYPE yylloc; yylloc.start.line = yylloc.end.line = 1; yylloc.start.column = yylloc.end.column = 0; } -/* Line 842 of yacc.c. */ +/* Line 843 of yacc.c. */ #line 1152 "parse-gram.c" yyvsp[0] = yylval; yylsp[0] = yylloc; @@ -1732,10 +1732,11 @@ yyreduce: break; + default: break; } -/* Line 1037 of yacc.c. */ -#line 1739 "parse-gram.c" +/* Line 1039 of yacc.c. */ +#line 1740 "parse-gram.c" yyvsp -= yylen; yyssp -= yylen; @@ -1870,12 +1871,11 @@ yyerrlab: `---------------------------------------------------*/ yyerrorlab: -#ifdef __GNUC__ - /* Pacify GCC when the user code never invokes YYERROR and the label - yyerrorlab therefore never appears in user code. */ + /* Pacify compilers like GCC when the user code never invokes + YYERROR and the label yyerrorlab therefore never appears in user + code. */ if (0) goto yyerrorlab; -#endif yyerror_range[0] = yylsp[1-yylen]; yylsp -= yylen;