ruby-changes:6842
From: nobu <ko1@a...>
Date: Mon, 4 Aug 2008 19:22:02 +0900 (JST)
Subject: [ruby-changes:6842] Ruby:r18358 (trunk): * array.c (rb_ary_tmp_new): added.
nobu 2008-08-04 19:21:46 +0900 (Mon, 04 Aug 2008) New Revision: 18358 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18358 Log: * array.c (rb_ary_tmp_new): added. Modified files: trunk/ChangeLog trunk/array.c trunk/include/ruby/intern.h Index: array.c =================================================================== --- array.c (revision 18357) +++ array.c (revision 18358) @@ -174,6 +174,12 @@ return ary; } +VALUE +rb_ary_tmp_new(long len) +{ + return ary_new(0, len); +} + void rb_ary_free(VALUE ary) { Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 18357) +++ include/ruby/intern.h (revision 18358) @@ -43,6 +43,7 @@ VALUE rb_ary_new2(long); VALUE rb_ary_new3(long,...); VALUE rb_ary_new4(long, const VALUE *); +VALUE rb_ary_tmp_new(long); void rb_ary_free(VALUE); VALUE rb_ary_freeze(VALUE); VALUE rb_ary_aref(int, VALUE*, VALUE); Index: ChangeLog =================================================================== --- ChangeLog (revision 18357) +++ ChangeLog (revision 18358) @@ -1,5 +1,7 @@ -Mon Aug 4 17:37:46 2008 Nobuyoshi Nakada <nobu@r...> +Mon Aug 4 19:21:43 2008 Nobuyoshi Nakada <nobu@r...> + * array.c (rb_ary_tmp_new): added. + * vm_eval.c (vm_call_super): fixed typo, and get rid of too large alloca. [ruby-core:17922] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/