diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-04-23 22:27:27 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-04-23 22:27:27 +0000 |
commit | 219f722694525406e854cc2c0ab7723f56ce7dfc (patch) | |
tree | 17f34a8d8f531af8db72d967ab82a06d083e0c72 /perl.c | |
parent | 34caed6d4270e612a2c83bf89b8797851c7ed4d1 (diff) | |
download | perl-219f722694525406e854cc2c0ab7723f56ce7dfc.tar.gz |
inline S_init_lexer() and regen
p4raw-id: //depot/perl@31045
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -1658,6 +1658,7 @@ STATIC void * S_parse_body(pTHX_ char **env, XSINIT_t xsinit) { dVAR; + PerlIO *tmpfp; int argc = PL_origargc; char **argv = PL_origargv; const char *scriptname = NULL; @@ -2257,7 +2258,11 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit) } #endif - init_lexer(); + tmpfp = PL_rsfp; + PL_rsfp = NULL; + lex_start(PL_linestr); + PL_rsfp = tmpfp; + PL_subname = newSVpvs("main"); /* now parse the script */ @@ -4564,17 +4569,6 @@ S_nuke_stacks(pTHX) Safefree(PL_savestack); } -STATIC void -S_init_lexer(pTHX) -{ - dVAR; - PerlIO *tmpfp; - tmpfp = PL_rsfp; - PL_rsfp = NULL; - lex_start(PL_linestr); - PL_rsfp = tmpfp; - PL_subname = newSVpvs("main"); -} STATIC void S_init_predump_symbols(pTHX) |