summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-02 23:37:08 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-03 01:18:39 (GMT)
commit4ea5c5610aeadecf78fdd2b7d6faad8574953620 (patch)
tree466d75d43f9d734a74affdbe1bce7e1d2e9e2e8e /enum.c
parent0bd1cd677f769ac6128989bf1d021753698fdaac (diff)
Predefine some IDs
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/enum.c b/enum.c
index c06e336..f97a2d1 100644
--- a/enum.c
+++ b/enum.c
@@ -21,8 +21,8 @@
VALUE rb_mEnumerable;
static ID id_next;
-static ID id_div;
+#define id_div idDiv
#define id_each idEach
#define id_eqq idEqq
#define id_cmp idCmp
@@ -4201,5 +4201,4 @@ Init_Enumerable(void)
rb_define_method(rb_mEnumerable, "uniq", enum_uniq, 0);
id_next = rb_intern("next");
- id_div = rb_intern("div");
}