summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-12-26 10:45:22 +0000
committerDavid Mitchell <davem@iabyn.com>2019-02-19 13:28:11 +0000
commit1565c085c35f9f8b0c729dff0ac353dcb8d79df6 (patch)
tree8a43c3a91cfb4d51f5455d00614a9896494e6112 /sv.c
parent0bb8cb436da6e18869ede1dfa3d55abc438bff5f (diff)
downloadperl-1565c085c35f9f8b0c729dff0ac353dcb8d79df6.tar.gz
add dVAR's for PERL_GLOBAL_STRUCT_PRIVATE builds
The perl build option -DPERL_GLOBAL_STRUCT_PRIVATE had bit-rotted due to lack of smoking. The main fix is to just add 'dVAR;' to any functions which have a pTHX arg. It's a NOOP on normal builds.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 0a4a2e531a..d7315b2a3f 100644
--- a/sv.c
+++ b/sv.c
@@ -15896,6 +15896,8 @@ Perl_clone_params_new(PerlInterpreter *const from, PerlInterpreter *const to)
void
Perl_init_constants(pTHX)
{
+ dVAR;
+
SvREFCNT(&PL_sv_undef) = SvREFCNT_IMMORTAL;
SvFLAGS(&PL_sv_undef) = SVf_READONLY|SVf_PROTECT|SVt_NULL;
SvANY(&PL_sv_undef) = NULL;