diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-02-08 14:27:57 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-02-08 14:44:24 -0700 |
commit | 127191935588596728c62621b37dcfbab94edc5c (patch) | |
tree | db24ba578bf8a4bb46b2981ef325f2d16c925a90 /av.h | |
parent | be3a7a5d0cbc1f6097d4470182c7b7e1d05d94c0 (diff) | |
download | perl-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |