2 *** perly.c.old Wed Jun 10 03:48:43 1998
3 --- perly.c Wed Jun 10 03:55:10 1998
11 + Dep(CPerlObj *pPerl)
13 + pPerl->deprecate("\"do\" to call subroutines");
15 + #define dep() Dep(this)
21 deprecate("\"do\" to call subroutines");
34 ! #define FUNCMETH 259
37 ! #define PRIVATEREF 262
38 ! #define FUNC0SUB 263
39 ! #define UNIOPSUB 264
40 ! #define LSTOPSUB 265
53 ! #define CONTINUE 278
66 ! #define DOLSHARP 291
68 ! #define HASHBRACK 293
75 ! #define ASSIGNOP 300
79 ! #define BITANDOP 304
93 deprecate("\"do\" to call subroutines");
108 - short yyss[YYSTACKSIZE];
109 - YYSTYPE yyvs[YYSTACKSIZE];
110 - #define yystacksize YYSTACKSIZE
113 ! #line 1349 "y.tab.c"
114 #define YYABORT goto yyabort
115 #define YYACCEPT goto yyaccept
116 #define YYERROR goto yyerrlab
120 register int yym, yyn, yystate;
123 extern char *getenv();
125 if (yys = getenv("YYDEBUG"))
134 ! #line 1349 "perly.c"
135 #define YYABORT goto yyabort
136 #define YYACCEPT goto yyaccept
137 #define YYERROR goto yyerrlab
151 + yydestruct(void *ptr)
153 + struct ysv* ysave = (struct ysv*)ptr;
154 + if (ysave->yyss) Safefree(ysave->yyss);
155 + if (ysave->yyvs) Safefree(ysave->yyvs);
156 + yydebug = ysave->oldyydebug;
157 + yynerrs = ysave->oldyynerrs;
158 + yyerrflag = ysave->oldyyerrflag;
159 + yychar = ysave->oldyychar;
160 + yyval = ysave->oldyyval;
161 + yylval = ysave->oldyylval;
168 register int yym, yyn, yystate;
169 + register short *yyssp;
170 + register YYSTYPE *yyvsp;
173 + unsigned yystacksize = YYSTACKSIZE;
177 + #ifndef __cplusplus
178 extern char *getenv();
183 + New(73, ysave, 1, struct ysv);
184 + SAVEDESTRUCTOR(yydestruct, ysave);
185 + ysave->oldyydebug = yydebug;
186 + ysave->oldyynerrs = yynerrs;
187 + ysave->oldyyerrflag = yyerrflag;
188 + ysave->oldyychar = yychar;
189 + ysave->oldyyval = yyval;
190 + ysave->oldyylval = yylval;
193 if (yys = getenv("YYDEBUG"))
201 + ** Initialize private stacks (yyparse may be called from an action)
203 + New(73, yyss, yystacksize, short);
204 + New(73, yyvs, yystacksize, YYSTYPE);
205 + ysave->yyss = yyss;
206 + ysave->yyvs = yyvs;
207 + if (!yyvs || !yyss)
214 if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
215 if (!yys) yys = "illegal-symbol";
216 ! printf("yydebug: state %d, reading %d (%s)\n", yystate,
220 if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
221 if (!yys) yys = "illegal-symbol";
222 ! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n", yystate,
229 ! printf("yydebug: state %d, shifting to state %d\n",
230 yystate, yytable[yyn]);
232 if (yyssp >= yyss + yystacksize - 1)
236 *++yyssp = yystate = yytable[yyn];
240 ! PerlIO_printf(Perl_debug_log, "yydebug: state %d, shifting to state %d\n",
241 yystate, yytable[yyn]);
243 if (yyssp >= yyss + yystacksize - 1)
246 ! ** reallocate and recover. Note that pointers
247 ! ** have to be reset, or bad things will happen
249 ! int yyps_index = (yyssp - yyss);
250 ! int yypv_index = (yyvsp - yyvs);
251 ! yystacksize += YYSTACKSIZE;
252 ! ysave->yyvs = yyvs =
253 ! (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
254 ! ysave->yyss = yyss =
255 ! (short*)realloc((char*)yyss,yystacksize * sizeof(short));
256 ! if (!yyvs || !yyss)
258 ! yyssp = yyss + yyps_index;
259 ! yyvsp = yyvs + yypv_index;
261 *++yyssp = yystate = yytable[yyn];
266 ! printf("yydebug: state %d, error recovery shifting\
267 ! to state %d\n", *yyssp, yytable[yyn]);
269 if (yyssp >= yyss + yystacksize - 1)
273 *++yyssp = yystate = yytable[yyn];
277 ! PerlIO_printf(Perl_debug_log,
278 ! "yydebug: state %d, error recovery shifting to state %d\n",
279 ! *yyssp, yytable[yyn]);
281 if (yyssp >= yyss + yystacksize - 1)
284 ! ** reallocate and recover. Note that pointers
285 ! ** have to be reset, or bad things will happen
287 ! int yyps_index = (yyssp - yyss);
288 ! int yypv_index = (yyvsp - yyvs);
289 ! yystacksize += YYSTACKSIZE;
290 ! ysave->yyvs = yyvs = (YYSTYPE*)realloc((char*)yyvs,
291 ! yystacksize * sizeof(YYSTYPE));
292 ! ysave->yyss = yyss = (short*)realloc((char*)yyss,
293 ! yystacksize * sizeof(short));
294 ! if (!yyvs || !yyss)
296 ! yyssp = yyss + yyps_index;
297 ! yyvsp = yyvs + yypv_index;
299 *++yyssp = yystate = yytable[yyn];
304 ! printf("yydebug: error recovery discarding state %d\n",
307 if (yyssp <= yyss) goto yyabort;
311 ! PerlIO_printf(Perl_debug_log,
312 ! "yydebug: error recovery discarding state %d\n",
315 if (yyssp <= yyss) goto yyabort;
318 if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
319 if (!yys) yys = "illegal-symbol";
320 ! printf("yydebug: state %d, error recovery discards token %d (%s)\n",
321 ! yystate, yychar, yys);
325 if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
326 if (!yys) yys = "illegal-symbol";
327 ! PerlIO_printf(Perl_debug_log,
328 ! "yydebug: state %d, error recovery discards token %d (%s)\n",
329 ! yystate, yychar, yys);
336 ! printf("yydebug: state %d, reducing by rule %d (%s)\n",
337 yystate, yyn, yyrule[yyn]);
342 ! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reducing by rule %d (%s)\n",
343 yystate, yyn, yyrule[yyn]);
347 { yyval.opval = yyvsp[0].opval; }
349 ! #line 2266 "y.tab.c"
353 { yyval.opval = yyvsp[0].opval; }
355 ! #line 2266 "perly.c"
362 ! printf("yydebug: after reduction, shifting from state 0 to\
363 ! state %d\n", YYFINAL);
369 ! PerlIO_printf(Perl_debug_log,
370 ! "yydebug: after reduction, shifting from state 0 to state %d\n",
376 if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
377 if (!yys) yys = "illegal-symbol";
378 ! printf("yydebug: state %d, reading %d (%s)\n",
379 YYFINAL, yychar, yys);
382 if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
383 if (!yys) yys = "illegal-symbol";
384 ! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n",
385 YYFINAL, yychar, yys);
391 ! printf("yydebug: after reduction, shifting from state %d \
392 ! to state %d\n", *yyssp, yystate);
394 if (yyssp >= yyss + yystacksize - 1)
402 ! PerlIO_printf(Perl_debug_log,
403 ! "yydebug: after reduction, shifting from state %d to state %d\n",
406 if (yyssp >= yyss + yystacksize - 1)
409 ! ** reallocate and recover. Note that pointers
410 ! ** have to be reset, or bad things will happen
412 ! int yyps_index = (yyssp - yyss);
413 ! int yypv_index = (yyvsp - yyvs);
414 ! yystacksize += YYSTACKSIZE;
415 ! ysave->yyvs = yyvs =
416 ! (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
417 ! ysave->yyss = yyss =
418 ! (short*)realloc((char*)yyss,yystacksize * sizeof(short));
419 ! if (!yyvs || !yyss)
421 ! yyssp = yyss + yyps_index;
422 ! yyvsp = yyvs + yypv_index;
429 ! yyerror("yacc stack overflow");
438 ! yyerror("Out of memory for yacc stack");