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 | 649280108560f9946c4de1337ef1ce3064f0bc44 (patch) | |
tree | 3acad6ff491c37d49b706bbe7fa3b68358f7649d /array.c | |
parent | 7dfb872489930957e1091256ed4ee6b83e9b486a (diff) | |
download | ruby-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.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) { |