summaryrefslogtreecommitdiff
path: root/av.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 /av.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 'av.h')
-rw-r--r--av.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/av.h b/av.h
index 82b9919439..391ae36d74 100644
--- a/av.h
+++ b/av.h
@@ -49,6 +49,9 @@ Null AV pointer.
=for apidoc Am|int|AvFILL|AV* av
Same as C<av_top_index()>. Deprecated, use C<av_top_index()> instead.
+=for apidoc Am|int|av_tindex|AV* av
+Same as C<av_top_index()>.
+
=cut
*/
@@ -75,6 +78,7 @@ Same as C<av_top_index()>. Deprecated, use C<av_top_index()> instead.
#define AvFILL(av) ((SvRMAGICAL((const SV *) (av))) \
? mg_size(MUTABLE_SV(av)) : AvFILLp(av))
+#define av_tindex(av) av_top_index(av)
#define NEGATIVE_INDICES_VAR "NEGATIVE_INDICES"