summaryrefslogtreecommitdiff
path: root/av.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 /av.h
parent828dad175cf45f4e83d61df735a510f0314063c8 (diff)
downloadperl-c8e503bfe4136506c95da755e0400990f539bb6a.tar.gz
Eliminate *_ALLOCATED_HEAD and *_HEAD macros which are now used only once.
Diffstat (limited to 'av.h')
-rw-r--r--av.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/av.h b/av.h
index c8ff2a3be9..f8c9d1bdc2 100644
--- a/av.h
+++ b/av.h
@@ -8,22 +8,13 @@
*
*/
-#define _XPVAV_ALLOCATED_HEAD \
- SSize_t xav_fill; /* Index of last element present */ \
- SSize_t xav_max /* max index for which array has space */
-
-#define _XPVAV_HEAD \
- union _xnvu xnv_u; \
- _XPVAV_ALLOCATED_HEAD
-
struct xpvav {
- _XPVAV_HEAD;
+ union _xnvu xnv_u;
+ SSize_t xav_fill; /* Index of last element present */
+ SSize_t xav_max; /* max index for which array has space */
_XPVMG_HEAD;
};
-#undef _XPVAV_ALLOCATED_HEAD
-#undef _XPVAV_HEAD
-
/* SV** xav_alloc; */
#define xav_alloc xiv_u.xivu_p1
/* SV* xav_arylen; */