diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-31 08:04:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-31 08:04:56 +0000 |
commit | 1c5cdc62cc34a92ae612beeb5fd9f12abaf5e6f6 (patch) | |
tree | 738357a2ae201dd8d07e490822d6ae0049821085 /include/ruby | |
parent | 58bec3e2cbfee9757fc48e8a5f7abf6dec5cc848 (diff) | |
download | ruby-1c5cdc62cc34a92ae612beeb5fd9f12abaf5e6f6.tar.gz |
array.c: new names of rb_ary_new family
* array.c (rb_ary_new_capa): add better names of rb_ary_new2.
* array.c (rb_ary_new_from_args): ditto for rb_ary_new3.
* array.c (rb_ary_new_from_values): ditto for rb_ary_new4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 81b93b8971..5987718e81 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -48,9 +48,9 @@ void rb_mem_clear(register VALUE*, register long); VALUE rb_assoc_new(VALUE, VALUE); VALUE rb_check_array_type(VALUE); 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_new_capa(long capa); +VALUE rb_ary_new_from_args(long n, ...); +VALUE rb_ary_new_from_values(long n, const VALUE *elts); VALUE rb_ary_tmp_new(long); void rb_ary_free(VALUE); void rb_ary_modify(VALUE); @@ -86,6 +86,9 @@ VALUE rb_ary_cmp(VALUE, VALUE); VALUE rb_ary_replace(VALUE copy, VALUE orig); VALUE rb_get_values_at(VALUE, long, int, VALUE*, VALUE(*)(VALUE,long)); VALUE rb_ary_resize(VALUE ary, long len); +#define rb_ary_new2 rb_ary_new_capa +#define rb_ary_new3 rb_ary_new_from_args +#define rb_ary_new4 rb_ary_new_from_values /* bignum.c */ VALUE rb_big_new(long, int); int rb_bigzero_p(VALUE x); |