1 *** y.tab.c.orig Thu Aug 26 22:31:26 1999
2 --- y.tab.c Thu Aug 26 22:32:22 1999
7 register int yym, yyn, yystate;
10 ! extern char *getenv();
12 if (yys = getenv("YYDEBUG"))
18 register int yym, yyn, yystate;
19 + register short *yyssp;
20 + register YYSTYPE *yyvsp;
23 + unsigned yystacksize = YYSTACKSIZE;
30 + New(73, ysave, 1, struct ysv);
31 + SAVEDESTRUCTOR(yydestruct, ysave);
32 + ysave->oldyydebug = yydebug;
33 + ysave->oldyynerrs = yynerrs;
34 + ysave->oldyyerrflag = yyerrflag;
35 + ysave->oldyychar = yychar;
36 + ysave->oldyyval = yyval;
37 + ysave->oldyylval = yylval;
40 if (yys = getenv("YYDEBUG"))
50 + ** Initialize private stacks (yyparse may be called from an action)
52 + New(73, yyss, yystacksize, short);
53 + New(73, yyvs, yystacksize, YYSTYPE);
65 if (yyssp >= yyss + yystacksize - 1)
69 *++yyssp = yystate = yytable[yyn];
73 if (yyssp >= yyss + yystacksize - 1)
76 ! ** reallocate and recover. Note that pointers
77 ! ** have to be reset, or bad things will happen
79 ! int yyps_index = (yyssp - yyss);
80 ! int yypv_index = (yyvsp - yyvs);
81 ! yystacksize += YYSTACKSIZE;
82 ! ysave->yyvs = Renew(yyvs, yystacksize, YYSTYPE);
83 ! ysave->yyss = Renew(yyss, yystacksize, short);
86 ! yyssp = yyss + yyps_index;
87 ! yyvsp = yyvs + yypv_index;
89 *++yyssp = yystate = yytable[yyn];
94 if (yyssp >= yyss + yystacksize - 1)
98 *++yyssp = yystate = yytable[yyn];
102 if (yyssp >= yyss + yystacksize - 1)
105 ! ** reallocate and recover. Note that pointers
106 ! ** have to be reset, or bad things will happen
108 ! int yyps_index = (yyssp - yyss);
109 ! int yypv_index = (yyvsp - yyvs);
110 ! yystacksize += YYSTACKSIZE;
111 ! ysave->yyvs = Renew(yyvs, yystacksize, YYSTYPE);
112 ! ysave->yyss = Renew(yyss, yystacksize, short);
113 ! if (!yyvs || !yyss)
115 ! yyssp = yyss + yyps_index;
116 ! yyvsp = yyvs + yypv_index;
118 *++yyssp = yystate = yytable[yyn];
123 if (yyssp >= yyss + yystacksize - 1)
131 ! yyerror("yacc stack overflow");
139 if (yyssp >= yyss + yystacksize - 1)
142 ! ** reallocate and recover. Note that pointers
143 ! ** have to be reset, or bad things will happen
145 ! int yyps_index = (yyssp - yyss);
146 ! int yypv_index = (yyvsp - yyvs);
147 ! yystacksize += YYSTACKSIZE;
148 ! ysave->yyvs = Renew(yyvs, yystacksize, YYSTYPE);
149 ! ysave->yyss = Renew(yyss, yystacksize, short);
150 ! if (!yyvs || !yyss)
152 ! yyssp = yyss + yyps_index;
153 ! yyvsp = yyvs + yypv_index;
159 ! yyerror("Out of memory for yacc stack");