#define watchaddr Perl_watchaddr
#define watchok Perl_watchok
#define whichsig Perl_whichsig
-#define yychar Perl_yychar
#define yycheck Perl_yycheck
-#define yydebug Perl_yydebug
#define yydefred Perl_yydefred
#define yydestruct Perl_yydestruct
#define yydgoto Perl_yydgoto
-#define yyerrflag Perl_yyerrflag
#define yyerror Perl_yyerror
#define yygindex Perl_yygindex
#define yylen Perl_yylen
#define yylex Perl_yylex
#define yylhs Perl_yylhs
-#define yylval Perl_yylval
#define yyname Perl_yyname
-#define yynerrs Perl_yynerrs
#define yyparse Perl_yyparse
#define yyrindex Perl_yyrindex
#define yyrule Perl_yyrule
#define yysindex Perl_yysindex
#define yytable Perl_yytable
-#define yyval Perl_yyval
#define yywarn Perl_yywarn
#endif /* EMBED */
#define PL_xnv_root (PL_Vars.Gxnv_root)
#define PL_xpv_root (PL_Vars.Gxpv_root)
#define PL_xrv_root (PL_Vars.Gxrv_root)
+#define PL_yychar (PL_Vars.Gyychar)
+#define PL_yydebug (PL_Vars.Gyydebug)
+#define PL_yyerrflag (PL_Vars.Gyyerrflag)
+#define PL_yylval (PL_Vars.Gyylval)
+#define PL_yynerrs (PL_Vars.Gyynerrs)
+#define PL_yyssp (PL_Vars.Gyyssp)
+#define PL_yyval (PL_Vars.Gyyval)
+#define PL_yyvsp (PL_Vars.Gyyvsp)
#else /* !PERL_GLOBAL_STRUCT */
#define PL_Gxnv_root PL_xnv_root
#define PL_Gxpv_root PL_xpv_root
#define PL_Gxrv_root PL_xrv_root
+#define PL_Gyychar PL_yychar
+#define PL_Gyydebug PL_yydebug
+#define PL_Gyyerrflag PL_yyerrflag
+#define PL_Gyylval PL_yylval
+#define PL_Gyynerrs PL_yynerrs
+#define PL_Gyyssp PL_yyssp
+#define PL_Gyyval PL_yyval
+#define PL_Gyyvsp PL_yyvsp
#ifdef EMBED
warn_uninit
watchaddr
watchok
-yychar
yycheck
-yydebug
yydefred
yydgoto
-yyerrflag
yygindex
yylen
yylhs
-yylval
yyname
-yynerrs
yyrindex
yyrule
yysindex
yytable
-yyval
# Functions
#endif /* !USE_LOCALE_NUMERIC */
/* utf8 character classes */
-PERLVAR(Gutf8_alnum, SV *)
-PERLVAR(Gutf8_alpha, SV *)
-PERLVAR(Gutf8_space, SV *)
-PERLVAR(Gutf8_digit, SV *)
-PERLVAR(Gutf8_upper, SV *)
-PERLVAR(Gutf8_lower, SV *)
-PERLVAR(Gutf8_print, SV *)
-PERLVAR(Gutf8_mark, SV *)
-PERLVAR(Gutf8_toupper, SV *)
-PERLVAR(Gutf8_totitle, SV *)
-PERLVAR(Gutf8_tolower, SV *)
-PERLVAR(Glast_swash_hv, HV *)
-PERLVAR(Glast_swash_klen, U32)
-PERLVAR(Glast_swash_key[10], U8)
-PERLVAR(Glast_swash_tmps, U8 *)
-PERLVAR(Glast_swash_slen, STRLEN)
+PERLVAR(Gutf8_alnum, SV *)
+PERLVAR(Gutf8_alpha, SV *)
+PERLVAR(Gutf8_space, SV *)
+PERLVAR(Gutf8_digit, SV *)
+PERLVAR(Gutf8_upper, SV *)
+PERLVAR(Gutf8_lower, SV *)
+PERLVAR(Gutf8_print, SV *)
+PERLVAR(Gutf8_mark, SV *)
+PERLVAR(Gutf8_toupper, SV *)
+PERLVAR(Gutf8_totitle, SV *)
+PERLVAR(Gutf8_tolower, SV *)
+PERLVAR(Glast_swash_hv, HV *)
+PERLVAR(Glast_swash_klen, U32)
+PERLVAR(Glast_swash_key[10], U8)
+PERLVAR(Glast_swash_tmps, U8 *)
+PERLVAR(Glast_swash_slen, STRLEN)
/* constants (these are not literals to facilitate pointer comparisons) */
PERLVARIC(GYes, char *, "1")
PERLVAR(Gspecialsv_list[4],SV *) /* from byterun.h */
+/* perly.c globals */
+PERLVAR(Gyydebug, int)
+PERLVAR(Gyynerrs, int)
+PERLVAR(Gyyerrflag, int)
+PERLVAR(Gyychar, int)
+PERLVAR(Gyyssp, short*)
+PERLVAR(Gyyvsp, YYSTYPE*)
+PERLVAR(Gyyval, YYSTYPE)
+PERLVAR(Gyylval, YYSTYPE)
#include "EXTERN.h"
#include "perl.h"
+#define yydebug PL_yydebug
+#define yynerrs PL_yynerrs
+#define yyerrflag PL_yyerrflag
+#define yychar PL_yychar
+#define yyssp PL_yyssp
+#define yyvsp PL_yyvsp
+#define yyval PL_yyval
+#define yylval PL_yylval
+
#ifdef PERL_OBJECT
static void
Dep(CPerlObj *pPerl)
#define YYMAXDEPTH 500
#endif
#endif
-int yydebug;
-int yynerrs;
-int yyerrflag;
-int yychar;
-short *yyssp;
-YYSTYPE *yyvsp;
-YYSTYPE yyval;
-YYSTYPE yylval;
#line 643 "perly.y"
/* PROGRAM */
#line 1353 "perly.c"
int yypv_index = (yyvsp - yyvs);
yystacksize += YYSTACKSIZE;
ysave->yyvs = yyvs =
- (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
+ (YYSTYPE*)PerlMem_realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
ysave->yyss = yyss =
- (short*)realloc((char*)yyss,yystacksize * sizeof(short));
+ (short*)PerlMem_realloc((char*)yyss,yystacksize * sizeof(short));
if (!yyvs || !yyss)
goto yyoverflow;
yyssp = yyss + yyps_index;
int yyps_index = (yyssp - yyss);
int yypv_index = (yyvsp - yyvs);
yystacksize += YYSTACKSIZE;
- ysave->yyvs = yyvs = (YYSTYPE*)realloc((char*)yyvs,
+ ysave->yyvs = yyvs = (YYSTYPE*)PerlMem_realloc((char*)yyvs,
yystacksize * sizeof(YYSTYPE));
- ysave->yyss = yyss = (short*)realloc((char*)yyss,
+ ysave->yyss = yyss = (short*)PerlMem_realloc((char*)yyss,
yystacksize * sizeof(short));
if (!yyvs || !yyss)
goto yyoverflow;
int yypv_index = (yyvsp - yyvs);
yystacksize += YYSTACKSIZE;
ysave->yyvs = yyvs =
- (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
+ (YYSTYPE*)PerlMem_realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
ysave->yyss = yyss =
- (short*)realloc((char*)yyss,yystacksize * sizeof(short));
+ (short*)PerlMem_realloc((char*)yyss,yystacksize * sizeof(short));
if (!yyvs || !yyss)
goto yyoverflow;
yyssp = yyss + yyps_index;
OP *opval;
GV *gvval;
} YYSTYPE;
-extern YYSTYPE yylval;
-*** perly.c.orig Tue Jul 28 15:02:41 1998
---- perly.c Tue Jul 28 15:14:54 1998
+*** perly.c.orig Thu Sep 24 00:32:28 1998
+--- perly.c Thu Sep 24 00:18:13 1998
***************
-*** 7,11 ****
---- 7,19 ----
+*** 7,10 ****
+--- 7,27 ----
#include "perl.h"
++ #define yydebug PL_yydebug
++ #define yynerrs PL_yynerrs
++ #define yyerrflag PL_yyerrflag
++ #define yychar PL_yychar
++ #define yyssp PL_yyssp
++ #define yyvsp PL_yyvsp
++ #define yyval PL_yyval
++ #define yylval PL_yylval
++
+ #ifdef PERL_OBJECT
- static void
++ static void
+ Dep(CPerlObj *pPerl)
+ {
+ pPerl->deprecate("\"do\" to call subroutines");
+ }
+ #define dep() Dep(this)
+ #else
-+ static void
+ static void
dep(void)
- {
***************
*** 12,86 ****
deprecate("\"do\" to call subroutines");
- #define ARROW 314
#define YYERRCODE 256
short yylhs[] = { -1,
---- 20,26 ----
+--- 29,35 ----
deprecate("\"do\" to call subroutines");
}
+ #endif
#define YYERRCODE 256
short yylhs[] = { -1,
***************
-*** 1345,1365 ****
- YYSTYPE yyval;
- YYSTYPE yylval;
+*** 1337,1365 ****
+ #endif
+ #endif
+- int yydebug;
+- int yynerrs;
+- int yyerrflag;
+- int yychar;
+- short *yyssp;
+- YYSTYPE *yyvsp;
+- YYSTYPE yyval;
+- YYSTYPE yylval;
- short yyss[YYSTACKSIZE];
- YYSTYPE yyvs[YYSTACKSIZE];
- #define yystacksize YYSTACKSIZE
if (yys = getenv("YYDEBUG"))
{
---- 1285,1349 ----
- YYSTYPE yyval;
- YYSTYPE yylval;
+--- 1286,1350 ----
+ #endif
+ #endif
#line 643 "perly.y"
/* PROGRAM */
! #line 1353 "perly.c"
extern char *getenv();
+ #endif
+ #endif
-
++
+ struct ysv *ysave;
+ New(73, ysave, 1, struct ysv);
+ SAVEDESTRUCTOR(yydestruct, ysave);
+ ysave->oldyychar = yychar;
+ ysave->oldyyval = yyval;
+ ysave->oldyylval = yylval;
-+
+
+ #if YYDEBUG
if (yys = getenv("YYDEBUG"))
{
***************
*** 1374,1377 ****
---- 1358,1371 ----
+--- 1359,1372 ----
yychar = (-1);
+ /*
! printf("yydebug: state %d, reading %d (%s)\n", yystate,
yychar, yys);
}
---- 1383,1387 ----
+--- 1384,1388 ----
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n", yystate,
yychar, yys);
}
***************
-*** 1399,1403 ****
+*** 1399,1408 ****
#if YYDEBUG
if (yydebug)
! printf("yydebug: state %d, shifting to state %d\n",
yystate, yytable[yyn]);
#endif
---- 1393,1397 ----
- #if YYDEBUG
- if (yydebug)
-! PerlIO_printf(Perl_debug_log, "yydebug: state %d, shifting to state %d\n",
- yystate, yytable[yyn]);
- #endif
-***************
-*** 1404,1408 ****
if (yyssp >= yyss + yystacksize - 1)
{
! goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
---- 1398,1416 ----
+--- 1394,1417 ----
+ #if YYDEBUG
+ if (yydebug)
+! PerlIO_printf(Perl_debug_log, "yydebug: state %d, shifting to state %d\n",
+ yystate, yytable[yyn]);
+ #endif
if (yyssp >= yyss + yystacksize - 1)
{
! /*
! int yypv_index = (yyvsp - yyvs);
! yystacksize += YYSTACKSIZE;
! ysave->yyvs = yyvs =
-! (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
+! (YYSTYPE*)PerlMem_realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
! ysave->yyss = yyss =
-! (short*)realloc((char*)yyss,yystacksize * sizeof(short));
+! (short*)PerlMem_realloc((char*)yyss,yystacksize * sizeof(short));
! if (!yyvs || !yyss)
! goto yyoverflow;
! yyssp = yyss + yyps_index;
! goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
---- 1448,1472 ----
+--- 1449,1473 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
! int yyps_index = (yyssp - yyss);
! int yypv_index = (yyvsp - yyvs);
! yystacksize += YYSTACKSIZE;
-! ysave->yyvs = yyvs = (YYSTYPE*)realloc((char*)yyvs,
+! ysave->yyvs = yyvs = (YYSTYPE*)PerlMem_realloc((char*)yyvs,
! yystacksize * sizeof(YYSTYPE));
-! ysave->yyss = yyss = (short*)realloc((char*)yyss,
+! ysave->yyss = yyss = (short*)PerlMem_realloc((char*)yyss,
! yystacksize * sizeof(short));
! if (!yyvs || !yyss)
! goto yyoverflow;
! *yyssp);
#endif
if (yyssp <= yyss) goto yyabort;
---- 1478,1484 ----
+--- 1479,1485 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
! yystate, yychar, yys);
}
#endif
---- 1497,1503 ----
+--- 1498,1504 ----
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
---- 1508,1512 ----
+--- 1509,1513 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reducing by rule %d (%s)\n",
! #line 2270 "y.tab.c"
}
yyssp -= yym;
---- 2292,2296 ----
+--- 2293,2297 ----
{ yyval.opval = yyvsp[0].opval; }
break;
! #line 2270 "perly.c"
! state %d\n", YYFINAL);
#endif
yystate = YYFINAL;
---- 2302,2308 ----
+--- 2303,2309 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
! printf("yydebug: state %d, reading %d (%s)\n",
YYFINAL, yychar, yys);
}
---- 2318,2322 ----
+--- 2319,2323 ----
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
! PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n",
! goto yyoverflow;
}
*++yyssp = yystate;
---- 2333,2357 ----
+--- 2334,2358 ----
#if YYDEBUG
if (yydebug)
! PerlIO_printf(Perl_debug_log,
! int yypv_index = (yyvsp - yyvs);
! yystacksize += YYSTACKSIZE;
! ysave->yyvs = yyvs =
-! (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
+! (YYSTYPE*)PerlMem_realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
! ysave->yyss = yyss =
-! (short*)realloc((char*)yyss,yystacksize * sizeof(short));
+! (short*)PerlMem_realloc((char*)yyss,yystacksize * sizeof(short));
! if (!yyvs || !yyss)
! goto yyoverflow;
! yyssp = yyss + yyps_index;
yyaccept:
! return (0);
}
---- 2359,2366 ----
+--- 2360,2367 ----
goto yyloop;
yyoverflow:
! yyerror("Out of memory for yacc stack");
#include "EXTERN.h"
#include "perl.h"
+#define yychar PL_yychar
+#define yylval PL_yylval
+
#ifndef PERL_OBJECT
static void check_uni _((void));
static void force_next _((I32 type));