summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-07-18 19:32:50 +0100
committerNicholas Clark <nick@ccl4.org>2009-08-22 20:49:37 +0100
commitc8e503bfe4136506c95da755e0400990f539bb6a (patch)
tree24f9c95d2abb099c5cb955062e9bd4c9f6b342cb /hv.h
parent828dad175cf45f4e83d61df735a510f0314063c8 (diff)
downloadperl-c8e503bfe4136506c95da755e0400990f539bb6a.tar.gz
Eliminate *_ALLOCATED_HEAD and *_HEAD macros which are now used only once.
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/hv.h b/hv.h
index 7a2e63fcdd..390649605a 100644
--- a/hv.h
+++ b/hv.h
@@ -80,26 +80,17 @@ struct xpvhv_aux {
struct mro_meta *xhv_mro_meta;
};
-#define _XPVHV_ALLOCATED_HEAD \
- STRLEN xhv_fill; /* how full xhv_array currently is */ \
- STRLEN xhv_max /* subscript of last element of xhv_array */
-
-#define _XPVHV_HEAD \
- union _xnvu xnv_u; \
- _XPVHV_ALLOCATED_HEAD
-
/* hash structure: */
/* This structure must match the beginning of struct xpvmg in sv.h. */
struct xpvhv {
- _XPVHV_HEAD;
+ union _xnvu xnv_u;
+ STRLEN xhv_fill; /* how full xhv_array currently is */
+ STRLEN xhv_max; /* subscript of last element of xhv_array */
_XPVMG_HEAD;
};
#define xhv_keys xiv_u.xivu_iv
-#undef _XPVHV_ALLOCATED_HEAD
-#undef _XPVHV_HEAD
-
/* hash a key */
/* FYI: This is the "One-at-a-Time" algorithm by Bob Jenkins
* from requirements by Colin Plumb.