summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-07 11:43:02 -0700
committerKarl Williamson <public@khwilliamson.com>2013-02-08 14:44:24 -0700
commitdab460cdc878907f9f3f36b96709f818ac937409 (patch)
treedf2722f0718536486e11c6afadef2d508e3d67eb /proto.h
parent2dbb0a307f0954c1222fc47c920f695d0b1db80d (diff)
downloadperl-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index a2cf682ef8..e22277f91b 100644
--- a/proto.h
+++ b/proto.h
@@ -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)