mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
enum.c: use predefined IDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
33202507fc
commit
c1124ff6b6
1 changed files with 2 additions and 4 deletions
6
enum.c
6
enum.c
|
@ -19,13 +19,13 @@ VALUE rb_mEnumerable;
|
|||
|
||||
static ID id_next;
|
||||
static ID id_div;
|
||||
static ID id_call;
|
||||
static ID id_size;
|
||||
|
||||
#define id_each idEach
|
||||
#define id_eqq idEqq
|
||||
#define id_cmp idCmp
|
||||
#define id_lshift idLTLT
|
||||
#define id_call idCall
|
||||
#define id_size idSize
|
||||
|
||||
VALUE
|
||||
rb_enum_values_pack(int argc, const VALUE *argv)
|
||||
|
@ -3970,7 +3970,5 @@ Init_Enumerable(void)
|
|||
rb_define_method(rb_mEnumerable, "uniq", enum_uniq, 0);
|
||||
|
||||
id_next = rb_intern("next");
|
||||
id_call = rb_intern("call");
|
||||
id_size = rb_intern("size");
|
||||
id_div = rb_intern("div");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue