summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-27 15:21:47 -0700
committerKarl Williamson <public@khwilliamson.com>2013-01-19 22:53:04 -0700
commit36baafc9b54ecc5cdea82552276a70b5218958bb (patch)
treeb2f6e8c58190cd81605b11b9c2e6139fb53ee13b /proto.h
parent8fb629dbc35ef4d5ec17062231fd1a79dc5a0a75 (diff)
downloadperl-36baafc9b54ecc5cdea82552276a70b5218958bb.tar.gz
Add av_top() synonym for av_len()
av_len() is misleadingly named.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index feae8a2ecb..67eea1d909 100644
--- a/proto.h
+++ b/proto.h
@@ -227,6 +227,12 @@ 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)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT_AV_TOP \
+ assert(av)
+
PERL_CALLCONV void Perl_av_undef(pTHX_ AV *av)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_AV_UNDEF \