diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-05-11 23:22:24 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-05-11 23:22:24 +0000 |
commit | 2f9285f84584cb56950bf07de6ded6ebcdc3d302 (patch) | |
tree | b5b1dd9c379db0f140bfc2ef8cd70fd5cccba18b /pp_ctl.c | |
parent | 69de8d7df79f71970f96742185284b67d38d76c6 (diff) | |
download | perl-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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 */ |