summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-10-29 22:51:13 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-10-29 22:51:13 -0700
commitc4842d1d15ea656de7335f8bcb5acceaf4646f6f (patch)
tree4161299b51fdedb69d606fc9faa9f2bf085c65d4
parent41d7c195c68c882ae8e1bd0a34c55987b0a16375 (diff)
downloadperl-c4842d1d15ea656de7335f8bcb5acceaf4646f6f.tar.gz
Remove the #ifdef PERL_CORE surrounding the HvENAME* macros
-rw-r--r--hv.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/hv.h b/hv.h
index 84eac3d532..a85a0d0095 100644
--- a/hv.h
+++ b/hv.h
@@ -287,23 +287,21 @@ C<SV*>.
#define HvNAMELEN_get(hv) \
((SvOOK(hv) && (HvAUX(hv)->xhv_name) && HvNAME_HEK_NN(hv)) \
? HEK_LEN(HvNAME_HEK_NN(hv)) : 0)
-#ifdef PERL_CORE
-# define HvENAME_HEK_NN(hv) \
+#define HvENAME_HEK_NN(hv) \
( \
HvAUX(hv)->xhv_name_count > 0 ? *(HEK **)HvAUX(hv)->xhv_name : \
HvAUX(hv)->xhv_name_count < -1 ? ((HEK **)HvAUX(hv)->xhv_name)[1] : \
HvAUX(hv)->xhv_name_count == -1 ? NULL : \
HvAUX(hv)->xhv_name \
)
-# define HvENAME_HEK(hv) \
+#define HvENAME_HEK(hv) \
(SvOOK(hv) && HvAUX(hv)->xhv_name ? HvENAME_HEK_NN(hv) : NULL)
-# define HvENAME_get(hv) \
+#define HvENAME_get(hv) \
((SvOOK(hv) && (HvAUX(hv)->xhv_name) && HvENAME_HEK_NN(hv)) \
? HEK_KEY(HvENAME_HEK_NN(hv)) : NULL)
-# define HvENAMELEN_get(hv) \
+#define HvENAMELEN_get(hv) \
((SvOOK(hv) && (HvAUX(hv)->xhv_name) && HvENAME_HEK_NN(hv)) \
? HEK_LEN(HvENAME_HEK_NN(hv)) : 0)
-#endif
/* the number of keys (including any placeholers) */
#define XHvTOTALKEYS(xhv) ((xhv)->xhv_keys)