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.c | |
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.c')
-rw-r--r-- | av.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -355,25 +355,6 @@ Perl_av_store(pTHX_ register AV *av, I32 key, SV *val) } /* -=for apidoc newAV - -Creates a new AV. The reference count is set to 1. - -=cut -*/ - -AV * -Perl_newAV(pTHX) -{ - register AV * const av = (AV*)newSV_type(SVt_PVAV); - /* sv_upgrade does AvREAL_only() */ - AvALLOC(av) = 0; - AvARRAY(av) = NULL; - AvMAX(av) = AvFILLp(av) = -1; - return av; -} - -/* =for apidoc av_make Creates a new AV and populates it with a list of SVs. The SVs are copied |