summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorRichard Leach <richardleach@users.noreply.github.com>2021-04-19 21:27:03 +0100
committerHugo van der Sanden <hv@crypt.org>2021-05-26 13:37:12 +0100
commit0b1c19ab1cbed9c221a41fca38580344778ce3a6 (patch)
tree57806b6c33ce1b88588f23a10c37fb3200ec4897 /proto.h
parent9940d7c95f83dcd73b4b62eba7c1671f22ca8bf3 (diff)
downloadperl-0b1c19ab1cbed9c221a41fca38580344778ce3a6.tar.gz
Add Perl_av_new_alloc() function and newAV_alloc_x/z() macros
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 56f7d42e7e..b174b3346c 100644
--- a/proto.h
+++ b/proto.h
@@ -285,6 +285,10 @@ PERL_CALLCONV AV* Perl_av_make(pTHX_ SSize_t size, SV **strp)
#define PERL_ARGS_ASSERT_AV_MAKE \
assert(strp)
+PERL_CALLCONV AV* Perl_av_new_alloc(pTHX_ SSize_t size, bool zeroflag)
+ __attribute__warn_unused_result__;
+#define PERL_ARGS_ASSERT_AV_NEW_ALLOC
+
PERL_CALLCONV SV* Perl_av_nonelem(pTHX_ AV *av, SSize_t ix);
#define PERL_ARGS_ASSERT_AV_NONELEM \
assert(av)
@@ -2239,6 +2243,14 @@ PERL_CALLCONV OP* Perl_newAVREF(pTHX_ OP* o)
#define PERL_ARGS_ASSERT_NEWAVREF \
assert(o)
+/* PERL_CALLCONV AV* newAV_alloc_x(pTHX_ SSize_t size)
+ __attribute__warn_unused_result__; */
+#define PERL_ARGS_ASSERT_NEWAV_ALLOC_X
+
+/* PERL_CALLCONV AV* newAV_alloc_xz(pTHX_ SSize_t size)
+ __attribute__warn_unused_result__; */
+#define PERL_ARGS_ASSERT_NEWAV_ALLOC_XZ
+
PERL_CALLCONV OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_NEWBINOP