mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
bcf9324e68
commit
b49106dfd7
3 changed files with 10 additions and 1 deletions
|
@ -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
|
* vm_eval.c (vm_call_super): fixed typo, and get rid of too large
|
||||||
alloca. [ruby-core:17922]
|
alloca. [ruby-core:17922]
|
||||||
|
|
6
array.c
6
array.c
|
@ -174,6 +174,12 @@ rb_ary_new4(long n, const VALUE *elts)
|
||||||
return ary;
|
return ary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VALUE
|
||||||
|
rb_ary_tmp_new(long len)
|
||||||
|
{
|
||||||
|
return ary_new(0, len);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_ary_free(VALUE ary)
|
rb_ary_free(VALUE ary)
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,6 +43,7 @@ VALUE rb_ary_new(void);
|
||||||
VALUE rb_ary_new2(long);
|
VALUE rb_ary_new2(long);
|
||||||
VALUE rb_ary_new3(long,...);
|
VALUE rb_ary_new3(long,...);
|
||||||
VALUE rb_ary_new4(long, const VALUE *);
|
VALUE rb_ary_new4(long, const VALUE *);
|
||||||
|
VALUE rb_ary_tmp_new(long);
|
||||||
void rb_ary_free(VALUE);
|
void rb_ary_free(VALUE);
|
||||||
VALUE rb_ary_freeze(VALUE);
|
VALUE rb_ary_freeze(VALUE);
|
||||||
VALUE rb_ary_aref(int, VALUE*, VALUE);
|
VALUE rb_ary_aref(int, VALUE*, VALUE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue