зеркало из https://github.com/github/ruby.git
* array.c (rb_ary_tmp_new): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bcf9324e68
Коммит
b49106dfd7
|
@ -1,4 +1,6 @@
|
|||
Mon Aug 4 17:37:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Mon Aug 4 19:21:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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]
|
||||
|
|
6
array.c
6
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)
|
||||
{
|
||||
|
|
|
@ -43,6 +43,7 @@ VALUE rb_ary_new(void);
|
|||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче