summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-04-23 22:27:27 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-04-23 22:27:27 +0000
commit219f722694525406e854cc2c0ab7723f56ce7dfc (patch)
tree17f34a8d8f531af8db72d967ab82a06d083e0c72 /perl.c
parent34caed6d4270e612a2c83bf89b8797851c7ed4d1 (diff)
downloadperl-219f722694525406e854cc2c0ab7723f56ce7dfc.tar.gz
inline S_init_lexer() and regen
p4raw-id: //depot/perl@31045
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/perl.c b/perl.c
index 09052d8984..ca4ebb4d1d 100644
--- a/perl.c
+++ b/perl.c
@@ -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)