summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-20 20:32:09 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-20 20:32:09 +0000
commit232d1c150c060ca27ef1d2d4770fed5de0e66c01 (patch)
treeba81050432f932d6f4222a4e57810bb137cf62c9 /sv.h
parent4ad10cd17301f4dcbb1ffda3d12c2a32aaa98602 (diff)
downloadperl-232d1c150c060ca27ef1d2d4770fed5de0e66c01.tar.gz
Steal code from maint, and use PERL_ARENA_ROOTS_SIZE to size the arena
arrays, rather than SVt_LAST, so that SVt_LAST can truthfully remain the number of genuine SV types, unclouded by implementation details. p4raw-id: //depot/perl@27251
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 88d3cf89df..09a27d5bc0 100644
--- a/sv.h
+++ b/sv.h
@@ -75,6 +75,8 @@ typedef enum {
#define HE_SVSLOT SVt_NULL
#endif
+#define PERL_ARENA_ROOTS_SIZE (SVt_LAST)
+
/* typedefs to eliminate some typing */
typedef struct he HE;
typedef struct hek HEK;