summaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-04 10:21:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-04 10:21:46 +0000
commit649280108560f9946c4de1337ef1ce3064f0bc44 (patch)
tree3acad6ff491c37d49b706bbe7fa3b68358f7649d /array.c
parent7dfb872489930957e1091256ed4ee6b83e9b486a (diff)
downloadruby-649280108560f9946c4de1337ef1ce3064f0bc44.tar.gz
ruby-649280108560f9946c4de1337ef1ce3064f0bc44.tar.xz
ruby-649280108560f9946c4de1337ef1ce3064f0bc44.zip
* array.c (rb_ary_tmp_new): added.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/array.c b/array.c
index 2d5b5ace3..0335b67b7 100644
--- a/array.c
+++ b/array.c
@@ -174,6 +174,12 @@ rb_ary_new4(long n, const VALUE *elts)
return ary;
}
+VALUE
+rb_ary_tmp_new(long len)
+{
+ return ary_new(0, len);
+}
+
void
rb_ary_free(VALUE ary)
{