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 /scope.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 'scope.c')
-rw-r--r-- | scope.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -298,7 +298,7 @@ Perl_save_gp(pTHX_ GV *gv, I32 empty) gp->gp_sv = newSV(0); } #endif - GvGP(gv) = gp; + GvGP_set(gv,gp); } else { gp_ref(GvGP(gv)); @@ -848,7 +848,7 @@ Perl_leave_scope(pTHX_ I32 base) ptr = SSPOPPTR; gv = MUTABLE_GV(SSPOPPTR); gp_free(gv); - GvGP(gv) = (GP*)ptr; + GvGP_set(gv, (GP*)ptr); /* putting a method back into circulation ("local")*/ if (GvCVu(gv) && (hv=GvSTASH(gv)) && HvENAME_get(hv)) mro_method_changed_in(hv); |