summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-05-25 14:06:55 +0000
committerNicholas Clark <nick@ccl4.org>2005-05-25 14:06:55 +0000
commit4ba4de046b58ba69d5377ba3b48b04bbfd30638f (patch)
treeba1c433417faa12e1aab33f7e32d9e6f4669b916 /cop.h
parent209b62a30de35b357c434b3ec3b38cb713369ba5 (diff)
downloadperl-4ba4de046b58ba69d5377ba3b48b04bbfd30638f.tar.gz
Replace all uses of HvNAME with the appropriate HvNAME_get or
HvNAME_set p4raw-id: //depot/perl@24573
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cop.h b/cop.h
index cffc30982e..b6f900c084 100644
--- a/cop.h
+++ b/cop.h
@@ -177,11 +177,11 @@ struct cop {
# define CopSTASH(c) (CopSTASHPV(c) \
? gv_stashpv(CopSTASHPV(c),GV_ADD) : Nullhv)
-# define CopSTASH_set(c,hv) CopSTASHPV_set(c, (hv) ? HvNAME(hv) : Nullch)
+# define CopSTASH_set(c,hv) CopSTASHPV_set(c, (hv) ? HvNAME_get(hv) : Nullch)
# define CopSTASH_eq(c,hv) ((hv) \
- && (CopSTASHPV(c) == HvNAME(hv) \
- || (CopSTASHPV(c) && HvNAME(hv) \
- && strEQ(CopSTASHPV(c), HvNAME(hv)))))
+ && (CopSTASHPV(c) == HvNAME_get(hv) \
+ || (CopSTASHPV(c) && HvNAME_get(hv)\
+ && strEQ(CopSTASHPV(c), HvNAME_get(hv)))))
# ifdef NETWARE
# define CopSTASH_free(c) SAVECOPSTASH_FREE(c)
# else
@@ -202,7 +202,7 @@ struct cop {
# define CopFILE(c) (CopFILESV(c) ? SvPVX(CopFILESV(c)) : Nullch)
# define CopSTASH(c) ((c)->cop_stash)
# define CopSTASH_set(c,hv) ((c)->cop_stash = (hv))
-# define CopSTASHPV(c) (CopSTASH(c) ? HvNAME(CopSTASH(c)) : Nullch)
+# define CopSTASHPV(c) (CopSTASH(c) ? HvNAME_get(CopSTASH(c)) : Nullch)
/* cop_stash is not refcounted */
# define CopSTASHPV_set(c,pv) CopSTASH_set((c), gv_stashpv(pv,GV_ADD))
# define CopSTASH_eq(c,hv) (CopSTASH(c) == (hv))