summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-06-14 18:49:26 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-15 09:03:22 +0000
commited221c571749f1ebcbc3664c74e36e68f3a83031 (patch)
treef7ffcc409cc38b5ad8c07745d15189be70bf8788 /cop.h
parent1e2ebb21f72f169e9de6c2bde1af6eb417686775 (diff)
downloadperl-ed221c571749f1ebcbc3664c74e36e68f3a83031.tar.gz
CopSTASH_eq again
Message-ID: <20050615044926.GA29087@petdance.com> p4raw-id: //depot/perl@24847
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/cop.h b/cop.h
index b6f900c084..c874872746 100644
--- a/cop.h
+++ b/cop.h
@@ -178,20 +178,13 @@ struct cop {
# define CopSTASH(c) (CopSTASHPV(c) \
? gv_stashpv(CopSTASHPV(c),GV_ADD) : Nullhv)
# define CopSTASH_set(c,hv) CopSTASHPV_set(c, (hv) ? HvNAME_get(hv) : Nullch)
-# define CopSTASH_eq(c,hv) ((hv) \
- && (CopSTASHPV(c) == HvNAME_get(hv) \
- || (CopSTASHPV(c) && HvNAME_get(hv)\
- && strEQ(CopSTASHPV(c), HvNAME_get(hv)))))
+# define CopSTASH_eq(c,hv) ((hv) && stashpv_hvname_match(c,hv))
# ifdef NETWARE
# define CopSTASH_free(c) SAVECOPSTASH_FREE(c)
-# else
-# define CopSTASH_free(c) PerlMemShared_free(CopSTASHPV(c))
-# endif
-
-# ifdef NETWARE
# define CopFILE_free(c) SAVECOPFILE_FREE(c)
# else
-# define CopFILE_free(c) (PerlMemShared_free(CopFILE(c)),(CopFILE(c) = Nullch))
+# define CopSTASH_free(c) PerlMemShared_free(CopSTASHPV(c))
+# define CopFILE_free(c) (PerlMemShared_free(CopFILE(c)),(CopFILE(c) = Nullch))
# endif
#else
# define CopFILEGV(c) ((c)->cop_filegv)