summaryrefslogtreecommitdiff
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
commitb49106dfd76d9db5cf34f795f8c89639f40e9b2f (patch)
tree3acad6ff491c37d49b706bbe7fa3b68358f7649d /array.c
parentbcf9324e68d062efcfbeb126fbb318a5433c6ba4 (diff)
* array.c (rb_ary_tmp_new): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 2d5b5ace39..0335b67b72 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)
{