summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-05-28 14:53:04 +0100
committerNicholas Clark <nick@ccl4.org>2010-05-28 14:53:04 +0100
commitcd431fdedf8dec69c65efa7edc1d60005800919a (patch)
tree21c64a0da33fe35db7256bf56ec2a8c9faf9e5c0 /handy.h
parent5c135d48c0468f552840e5ac9811f70aebcac766 (diff)
downloadperl-cd431fdedf8dec69c65efa7edc1d60005800919a.tar.gz
Add C_ARRAY_END(), returning a pointer to after the last element of an array.
Refactor the macro append_flags() in dump.c to use it.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index d17b8d3f2c..3d2d46a394 100644
--- a/handy.h
+++ b/handy.h
@@ -916,6 +916,7 @@ void Perl_mem_log_del_sv(const SV *sv, const char *filename, const int linenumbe
#endif
#define C_ARRAY_LENGTH(a) (sizeof(a)/sizeof((a)[0]))
+#define C_ARRAY_END(a) (a) + (sizeof(a)/sizeof((a)[0]))
#ifdef NEED_VA_COPY
# ifdef va_copy