diff options
author | Richard Leach <richardleach@users.noreply.github.com> | 2021-04-19 21:27:03 +0100 |
---|---|---|
committer | Hugo van der Sanden <hv@crypt.org> | 2021-05-26 13:37:12 +0100 |
commit | 0b1c19ab1cbed9c221a41fca38580344778ce3a6 (patch) | |
tree | 57806b6c33ce1b88588f23a10c37fb3200ec4897 /proto.h | |
parent | 9940d7c95f83dcd73b4b62eba7c1671f22ca8bf3 (diff) | |
download | perl-0b1c19ab1cbed9c221a41fca38580344778ce3a6.tar.gz |
Add Perl_av_new_alloc() function and newAV_alloc_x/z() macros
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |