diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-02-07 11:43:02 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-02-08 14:44:24 -0700 |
commit | dab460cdc878907f9f3f36b96709f818ac937409 (patch) | |
tree | df2722f0718536486e11c6afadef2d508e3d67eb /proto.h | |
parent | 2dbb0a307f0954c1222fc47c920f695d0b1db80d (diff) | |
download | perl-dab460cdc878907f9f3f36b96709f818ac937409.tar.gz |
Change name 'av_top' to 'av_top_index'
In using the av_top() function created in a recent commit, I found
myself being confused, and thinking it meant the top element of the
array, whereas it really means the index of the top element of that
array. Since the new name has not appeared in a stable release, it can
be changed, without remorse, to include 'index' in it.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -227,10 +227,10 @@ PERL_CALLCONV SV** Perl_av_store(pTHX_ AV *av, I32 key, SV *val) #define PERL_ARGS_ASSERT_AV_STORE \ assert(av) -PERL_CALLCONV I32 Perl_av_top(pTHX_ AV *av) +PERL_CALLCONV I32 Perl_av_top_index(pTHX_ AV *av) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); -#define PERL_ARGS_ASSERT_AV_TOP \ +#define PERL_ARGS_ASSERT_AV_TOP_INDEX \ assert(av) PERL_CALLCONV void Perl_av_undef(pTHX_ AV *av) |