diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-20 19:49:50 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-20 19:49:50 +0000 |
commit | ac572bf4fde55cf563ae338dfe4e12b22ebc6d80 (patch) | |
tree | fa0c5697d540c2039ef5fdaeea4f6506ca28199b /av.h | |
parent | 82c0efa4e83781652347e2d8715e3fc7441c39d4 (diff) | |
download | perl-ac572bf4fde55cf563ae338dfe4e12b22ebc6d80.tar.gz |
Perl_newAV() can become a mathom by making newAV() a wrapper around
newSV_type() and tweaking Perl_sv_upgrade().
p4raw-id: //depot/perl@32675
Diffstat (limited to 'av.h')
-rw-r--r-- | av.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -116,6 +116,16 @@ Same as C<av_len()>. Deprecated, use C<av_len()> instead. #define NEGATIVE_INDICES_VAR "NEGATIVE_INDICES" /* +=for apidoc newAV + +Creates a new AV. The reference count is set to 1. + +=cut +*/ + +#define newAV() ((AV *)newSV_type(SVt_PVAV)) + +/* * Local variables: * c-indentation-style: bsd * c-basic-offset: 4 |