diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-04 10:21:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-04 10:21:46 +0000 |
commit | b49106dfd76d9db5cf34f795f8c89639f40e9b2f (patch) | |
tree | 3acad6ff491c37d49b706bbe7fa3b68358f7649d /array.c | |
parent | bcf9324e68d062efcfbeb126fbb318a5433c6ba4 (diff) | |
download | ruby-b49106dfd76d9db5cf34f795f8c89639f40e9b2f.tar.gz |
* 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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |