X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/ea04a14c5ce4a6446a8d3db97c2839c9fd1c445e..e89a22bfab22e4d2ee73be49dcb66b51f8d0e892:/src/bison.simple?ds=inline diff --git a/src/bison.simple b/src/bison.simple index e1da7ec1..72cd1487 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -1,7 +1,9 @@ /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ #line /* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001 Free Software Foundation, Inc. + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -47,12 +49,10 @@ # if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca -# define YYSIZE_T YYSTD (size_t) # else # ifndef YYSTACK_USE_ALLOCA # if defined (alloca) || defined (_ALLOCA_H) # define YYSTACK_ALLOC alloca -# define YYSIZE_T YYSTD (size_t) # else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca @@ -217,12 +217,11 @@ while (0) # ifndef YYFPRINTF # ifdef __cplusplus -# include /* INFRINGES ON USER NAME SPACE */ +# include /* INFRINGES ON USER NAME SPACE */ # else # include /* INFRINGES ON USER NAME SPACE */ # endif # define YYFPRINTF YYSTD (fprintf) -# define YYSTDERR YYSTD (stderr) # endif # define YYDPRINTF(Args) \ @@ -461,7 +460,7 @@ yyparse (YYPARSE_PARAM_ARG) rule. */ int yylen; - YYDPRINTF ((YYSTDERR, "Starting parse\n")); + YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; @@ -557,14 +556,14 @@ yyparse (YYPARSE_PARAM_ARG) yylsp = yyls + yysize - 1; #endif - YYDPRINTF ((YYSTDERR, "Stack size increased to %lu\n", + YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyssp >= yyss + yystacksize - 1) YYABORT; } - YYDPRINTF ((YYSTDERR, "Entering state %d\n", yystate)); + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; @@ -591,7 +590,7 @@ yybackup: if (yychar == YYEMPTY) { - YYDPRINTF ((YYSTDERR, "Reading a token: ")); + YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } @@ -602,7 +601,7 @@ yybackup: yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ - YYDPRINTF ((YYSTDERR, "Now at end of input.\n")); + YYDPRINTF ((stderr, "Now at end of input.\n")); } else { @@ -613,14 +612,14 @@ yybackup: which are defined only if `YYDEBUG' is set. */ if (yydebug) { - YYFPRINTF (YYSTDERR, "Next token is %d (%s", + YYFPRINTF (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); /* Give the individual parser a way to print the precise meaning of a token, for further debugging info. */ # ifdef YYPRINT - YYPRINT (YYSTDERR, yychar, yylval); + YYPRINT (stderr, yychar, yylval); # endif - YYFPRINTF (YYSTDERR, ")\n"); + YYFPRINTF (stderr, ")\n"); } #endif } @@ -652,7 +651,7 @@ yybackup: YYACCEPT; /* Shift the lookahead token. */ - YYDPRINTF ((YYSTDERR, "Shifting token %d (%s), ", + YYDPRINTF ((stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ @@ -714,13 +713,13 @@ yyreduce: { int yyi; - YYFPRINTF (YYSTDERR, "Reducing via rule %d (line %d), ", + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) - YYFPRINTF (YYSTDERR, "%s ", yytname[yyrhs[yyi]]); - YYFPRINTF (YYSTDERR, " -> %s\n", yytname[yyr1[yyn]]); + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); } #endif %% actions /* The action file replaces this line. */ @@ -736,10 +735,10 @@ yyreduce: if (yydebug) { short *yyssp1 = yyss - 1; - YYFPRINTF (YYSTDERR, "state stack now"); + YYFPRINTF (stderr, "state stack now"); while (yyssp1 != yyssp) - YYFPRINTF (YYSTDERR, " %d", *++yyssp1); - YYFPRINTF (YYSTDERR, "\n"); + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif @@ -835,7 +834,7 @@ yyerrlab1: /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; - YYDPRINTF ((YYSTDERR, "Discarding token %d (%s).\n", + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1])); yychar = YYEMPTY; } @@ -881,10 +880,10 @@ yyerrpop: if (yydebug) { short *yyssp1 = yyss - 1; - YYFPRINTF (YYSTDERR, "Error: state stack now"); + YYFPRINTF (stderr, "Error: state stack now"); while (yyssp1 != yyssp) - YYFPRINTF (YYSTDERR, " %d", *++yyssp1); - YYFPRINTF (YYSTDERR, "\n"); + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif @@ -914,7 +913,7 @@ yyerrhandle: if (yyn == YYFINAL) YYACCEPT; - YYDPRINTF ((YYSTDERR, "Shifting error token, ")); + YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; #if YYLSP_NEEDED