diff options
author | David Mitchell <davem@iabyn.com> | 2018-12-26 10:45:22 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2019-02-19 13:28:11 +0000 |
commit | 1565c085c35f9f8b0c729dff0ac353dcb8d79df6 (patch) | |
tree | 8a43c3a91cfb4d51f5455d00614a9896494e6112 /sv.c | |
parent | 0bb8cb436da6e18869ede1dfa3d55abc438bff5f (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |