diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-07-18 19:32:50 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-08-22 20:49:37 +0100 |
commit | c8e503bfe4136506c95da755e0400990f539bb6a (patch) | |
tree | 24f9c95d2abb099c5cb955062e9bd4c9f6b342cb /hv.h | |
parent | 828dad175cf45f4e83d61df735a510f0314063c8 (diff) | |
download | perl-c8e503bfe4136506c95da755e0400990f539bb6a.tar.gz |
Eliminate *_ALLOCATED_HEAD and *_HEAD macros which are now used only once.
Diffstat (limited to 'hv.h')
-rw-r--r-- | hv.h | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -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. |