diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-05-25 14:06:55 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-05-25 14:06:55 +0000 |
commit | 4ba4de046b58ba69d5377ba3b48b04bbfd30638f (patch) | |
tree | ba1c433417faa12e1aab33f7e32d9e6f4669b916 /cop.h | |
parent | 209b62a30de35b357c434b3ec3b38cb713369ba5 (diff) | |
download | perl-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.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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)) |