summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-05-11 23:22:24 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-05-11 23:22:24 +0000
commit2f9285f84584cb56950bf07de6ded6ebcdc3d302 (patch)
treeb5b1dd9c379db0f140bfc2ef8cd70fd5cccba18b /pp_ctl.c
parent69de8d7df79f71970f96742185284b67d38d76c6 (diff)
downloadperl-2f9285f84584cb56950bf07de6ded6ebcdc3d302.tar.gz
move PL_rsfp into the PL_parser struct
and simplify its creation and destruction p4raw-id: //depot/perl@31199
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 26e1cb8363..60b6b0a47d 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2745,7 +2745,7 @@ Perl_sv_compile_2op(pTHX_ SV *sv, OP** startop, const char *code, PAD** padp)
STRLEN len;
ENTER;
- lex_start(sv);
+ lex_start(sv, NULL);
SAVETMPS;
/* switch to eval mode */
@@ -3377,11 +3377,10 @@ PP(pp_require)
ENTER;
SAVETMPS;
- lex_start(NULL);
+ lex_start(NULL, tryrsfp);
SAVEGENERICSV(PL_rsfp_filters);
PL_rsfp_filters = NULL;
- PL_rsfp = tryrsfp;
SAVEHINTS();
PL_hints = 0;
SAVECOMPILEWARNINGS();
@@ -3449,7 +3448,7 @@ PP(pp_entereval)
TAINT_PROPER("eval");
ENTER;
- lex_start(sv);
+ lex_start(sv, NULL);
SAVETMPS;
/* switch to eval mode */