summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-07 03:45:32 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-07 03:45:32 (GMT)
commitc1124ff6b631ff4bed8366dd24129c39982a9ad1 (patch)
tree0bd8f5d06bb60458305c42b8781f31db114d34c0 /enum.c
parent33202507fc4079ec4a7a7f3d4fefbe0ae6910fd3 (diff)
enum.c: use predefined IDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/enum.c b/enum.c
index d9b9943..a1b85f6 100644
--- a/enum.c
+++ b/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");
}