summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-08-17 17:28:03 +0100
committerNicholas Clark <nick@ccl4.org>2010-08-17 17:28:03 +0100
commit90d4a63860306135d3c25cb7b0ec5f86603e788d (patch)
treee646bc88f7f8e9bd2eaaba3b14ce4b738b0e2d93 /sv.c
parent8553b68c21502c75a75754c55aa9942917abd7d7 (diff)
downloadperl-90d4a63860306135d3c25cb7b0ec5f86603e788d.tar.gz
Fix building with PERL_GLOBAL_STRUCT defined.
Presumably this compilation option was broken when Perl_clone_params_del and Perl_clone_params_new were added in f7abe70be985cb91.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 8ab73ac496..4918449222 100644
--- a/sv.c
+++ b/sv.c
@@ -12861,9 +12861,11 @@ S_unreferenced_to_tmp_stack(pTHX_ AV *const unreferenced)
void
Perl_clone_params_del(CLONE_PARAMS *param)
{
- PerlInterpreter *const was = PERL_GET_THX;
+ /* This seemingly funky ordering keeps the build with PERL_GLOBAL_STRUCT
+ happy: */
PerlInterpreter *const to = param->new_perl;
dTHXa(to);
+ PerlInterpreter *const was = PERL_GET_THX;
PERL_ARGS_ASSERT_CLONE_PARAMS_DEL;
@@ -12885,6 +12887,7 @@ Perl_clone_params_del(CLONE_PARAMS *param)
CLONE_PARAMS *
Perl_clone_params_new(PerlInterpreter *const from, PerlInterpreter *const to)
{
+ dVAR;
/* Need to play this game, as newAV() can call safesysmalloc(), and that
does a dTHX; to get the context from thread local storage.
FIXME - under PERL_CORE Newx(), Safefree() and friends should expand to