diff options
author | David Mitchell <davem@iabyn.com> | 2011-01-21 10:25:03 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-01-21 13:46:03 +0000 |
commit | c43ae56ff9cdb8e0fb3d1724f564378b031a4d49 (patch) | |
tree | 8006882d503c9f300a7d366d851636ae13b97d17 /pp.c | |
parent | 79c861242b428940e97f668b35b0faeb25a2b9bb (diff) | |
download | perl-c43ae56ff9cdb8e0fb3d1724f564378b031a4d49.tar.gz |
add GvCV_set() and GvGP_set() macros.
and make GvCV() and GvGP() rvalue-only.
This it to allow a future commit to eliminate some backref magic between
GV and CVs, which will require complete control over assignment to the
gp_cv slot.
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1045,7 +1045,7 @@ PP(pp_undef) gp_free(MUTABLE_GV(sv)); Newxz(gp, 1, GP); - GvGP(sv) = gp_ref(gp); + GvGP_set(sv, gp_ref(gp)); GvSV(sv) = newSV(0); GvLINE(sv) = CopLINE(PL_curcop); GvEGV(sv) = MUTABLE_GV(sv); |