summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-08 14:27:57 -0700
committerKarl Williamson <public@khwilliamson.com>2013-02-08 14:44:24 -0700
commit127191935588596728c62621b37dcfbab94edc5c (patch)
treedb24ba578bf8a4bb46b2981ef325f2d16c925a90 /proto.h
parentbe3a7a5d0cbc1f6097d4470182c7b7e1d05d94c0 (diff)
downloadperl-127191935588596728c62621b37dcfbab94edc5c.tar.gz
Add av_tindex() synonym for av_top_index()
The latter is a somewhat less clumsy name. The old one is provided a a very clear name; the new one as a somewhat slangy version
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index e1575c77a0..18f46cca29 100644
--- a/proto.h
+++ b/proto.h
@@ -227,6 +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_tindex(pTHX_ AV *av)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1); */
+
PERL_STATIC_INLINE I32 S_av_top_index(pTHX_ AV *av)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);