summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-05-05 00:49:51 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-05-05 00:49:51 +0000
commitfb205e7a8791bda7ee1f6f939d96b947f4eb160c (patch)
tree69226d3ccfe161c0d9e8b525fa590e24ec3fb4c0 /sv.c
parentf06b58485d86282d0dbf47ffb2a797860a8346a7 (diff)
downloadperl-fb205e7a8791bda7ee1f6f939d96b947f4eb160c.tar.gz
migrate more variables to PL_parser struct:
PL_nexttoke PL_curforce PL_nextval PL_nexttype p4raw-id: //depot/perl@31148
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/sv.c b/sv.c
index f05f4cd9d6..276b8c7b6b 100644
--- a/sv.c
+++ b/sv.c
@@ -9611,6 +9611,13 @@ Perl_parser_dup(pTHX_ const yy_parser *proto, CLONE_PARAMS* param)
parser->thisstuff = proto->thisstuff;
parser->thistoken = proto->thistoken;
parser->thiswhite = proto->thiswhite;
+
+ Copy(proto->nexttoke, parser->nexttoke, 5, NEXTTOKE);
+ parser->curforce = proto->curforce;
+#else
+ Copy(proto->nextval, parser->nextval, 5, YYSTYPE);
+ Copy(proto->nexttype, parser->nexttype, 5, I32);
+ parser->nexttoke = proto->nexttoke;
#endif
return parser;
}
@@ -11252,15 +11259,6 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_lex_state = proto_perl->Ilex_state;
-#ifdef PERL_MAD
- Copy(proto_perl->Inexttoke, PL_nexttoke, 5, NEXTTOKE);
- PL_curforce = proto_perl->Icurforce;
-#else
- Copy(proto_perl->Inextval, PL_nextval, 5, YYSTYPE);
- Copy(proto_perl->Inexttype, PL_nexttype, 5, I32);
- PL_nexttoke = proto_perl->Inexttoke;
-#endif
-
PL_multi_end = proto_perl->Imulti_end;
PL_error_count = proto_perl->Ierror_count;