diff options
author | Karl Williamson <khw@cpan.org> | 2020-09-29 00:48:19 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-09-29 01:08:31 -0600 |
commit | bd5fa06648085e8c17efd55abeb6424aeeb1018e (patch) | |
tree | c6ea50a258097374dbc112ca0569e3be98d4f6b1 /proto.h | |
parent | e17dadf36f7b4348e59076240c880d0c78b33fa9 (diff) | |
download | perl-bd5fa06648085e8c17efd55abeb6424aeeb1018e.tar.gz |
Remove Perl_av_top_index
I created this in 87306e0674dfe3af29804b4641347cd5ac9b0521, thinking it
was needed to preserve backward compatibility if someone were using this
instead of the macro. But it turned out that there never was such a
function, it was inlined, and the name was S_av_top_index, so there is
no reason to create a new function that no one has ever been able to
call. So just remove it, and let all accesses go through the macro
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -291,10 +291,9 @@ PERL_CALLCONV SV** Perl_av_store(pTHX_ AV *av, SSize_t key, SV *val); __attribute__warn_unused_result__; */ #define PERL_ARGS_ASSERT_AV_TINDEX -PERL_CALLCONV SSize_t Perl_av_top_index(pTHX_ AV *av) - __attribute__warn_unused_result__; -#define PERL_ARGS_ASSERT_AV_TOP_INDEX \ - assert(av) +/* PERL_CALLCONV SSize_t av_top_index(pTHX_ AV *av) + __attribute__warn_unused_result__; */ +#define PERL_ARGS_ASSERT_AV_TOP_INDEX PERL_CALLCONV void Perl_av_undef(pTHX_ AV *av); #define PERL_ARGS_ASSERT_AV_UNDEF \ |