summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-01-21 10:25:03 +0000
committerDavid Mitchell <davem@iabyn.com>2011-01-21 13:46:03 +0000
commitc43ae56ff9cdb8e0fb3d1724f564378b031a4d49 (patch)
tree8006882d503c9f300a7d366d851636ae13b97d17 /pp.c
parent79c861242b428940e97f668b35b0faeb25a2b9bb (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index edd40841b7..0a955bb392 100644
--- a/pp.c
+++ b/pp.c
@@ -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);