Index: perly.c
-*** perly.c.orig Sun Mar 1 21:44:24 1998
---- perly.c Sun Mar 1 21:46:32 1998
+*** perly.c.old Wed Jun 10 03:48:43 1998
+--- perly.c Wed Jun 10 03:55:10 1998
***************
-*** 13,82 ****
+*** 7,10 ****
+--- 7,18 ----
+ #include "perl.h"
+
++ #ifdef PERL_OBJECT
++ static void
++ Dep(CPerlObj *pPerl)
++ {
++ pPerl->deprecate("\"do\" to call subroutines");
++ }
++ #define dep() Dep(this)
++ #else
+ static void
+ dep(void)
+***************
+*** 12,82 ****
+ deprecate("\"do\" to call subroutines");
}
! #line 29 "perly.y"
! #define ARROW 314
#define YYERRCODE 256
short yylhs[] = { -1,
---- 13,17 ----
+--- 20,26 ----
+ deprecate("\"do\" to call subroutines");
}
++ #endif
! #line 16 "perly.c"
#define YYERRCODE 256
short yylhs[] = { -1,
***************
-*** 1337,1347 ****
+*** 1337,1361 ****
int yyerrflag;
int yychar;
- short *yyssp;
- short yyss[YYSTACKSIZE];
- YYSTYPE yyvs[YYSTACKSIZE];
- #define yystacksize YYSTACKSIZE
- #line 636 "perly.y"
+ #line 635 "perly.y"
/* PROGRAM */
---- 1272,1277 ----
-***************
-*** 1350,1361 ****
+! #line 1349 "y.tab.c"
+ #define YYABORT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
int
if (yys = getenv("YYDEBUG"))
{
---- 1280,1338 ----
+--- 1281,1347 ----
+ int yyerrflag;
+ int yychar;
+ YYSTYPE yyval;
+ YYSTYPE yylval;
+ #line 635 "perly.y"
+ /* PROGRAM */
+! #line 1349 "perly.c"
+ #define YYABORT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
+
{
***************
*** 1370,1373 ****
---- 1347,1360 ----
+--- 1356,1369 ----
yychar = (-1);
+ /*
! printf("yydebug: state %d, reading %d (%s)\n", yystate,
yychar, yys);
}
---- 1372,1376 ----
+--- 1381,1385 ----
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n", yystate,
! goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
---- 1382,1405 ----
+--- 1391,1414 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log, "yydebug: state %d, shifting to state %d\n",
! goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
---- 1437,1461 ----
+--- 1446,1470 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
! *yyssp);
#endif
if (yyssp <= yyss) goto yyabort;
---- 1467,1473 ----
+--- 1476,1482 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
! yystate, yychar, yys);
}
#endif
---- 1486,1492 ----
+--- 1495,1501 ----
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
! PerlIO_printf(Perl_debug_log,
! printf("yydebug: state %d, reducing by rule %d (%s)\n",
yystate, yyn, yyrule[yyn]);
#endif
---- 1497,1501 ----
+--- 1506,1510 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reducing by rule %d (%s)\n",
yystate, yyn, yyrule[yyn]);
#endif
***************
-*** 2274,2279 ****
+*** 2263,2267 ****
+ { yyval.opval = yyvsp[0].opval; }
+ break;
+! #line 2266 "y.tab.c"
+ }
+ yyssp -= yym;
+--- 2290,2294 ----
+ { yyval.opval = yyvsp[0].opval; }
+ break;
+! #line 2266 "perly.c"
+ }
+ yyssp -= yym;
+***************
+*** 2273,2278 ****
#if YYDEBUG
if (yydebug)
! printf("yydebug: after reduction, shifting from state 0 to\
! state %d\n", YYFINAL);
#endif
yystate = YYFINAL;
---- 2292,2298 ----
+--- 2300,2306 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
#endif
yystate = YYFINAL;
***************
-*** 2289,2293 ****
+*** 2288,2292 ****
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
! printf("yydebug: state %d, reading %d (%s)\n",
YYFINAL, yychar, yys);
}
---- 2308,2312 ----
+--- 2316,2320 ----
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n",
YYFINAL, yychar, yys);
}
***************
-*** 2304,2313 ****
+*** 2303,2312 ****
#if YYDEBUG
if (yydebug)
! printf("yydebug: after reduction, shifting from state %d \
! goto yyoverflow;
}
*++yyssp = yystate;
---- 2323,2347 ----
+--- 2331,2355 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
}
*++yyssp = yystate;
***************
-*** 2315,2322 ****
+*** 2314,2321 ****
goto yyloop;
yyoverflow:
! yyerror("yacc stack overflow");
yyaccept:
! return (0);
}
---- 2349,2356 ----
+--- 2357,2364 ----
goto yyloop;
yyoverflow:
! yyerror("Out of memory for yacc stack");