This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_newAV() can become a mathom by making newAV() a wrapper around
[perl5.git] / av.h
diff --git a/av.h b/av.h
index 06ecc7a..b3f56ff 100644 (file)
--- a/av.h
+++ b/av.h
@@ -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