summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-01 22:39:14 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-01 22:39:14 (GMT)
commit0238f47fa7fa9dd83f129fe72a890767f0582443 (patch)
tree4ac1e677c8fee1d726a73611dce0e7d3cf6bacbf /range.c
parent75319221a256459ef979806a14dbb7725d9667a6 (diff)
range.c: predefined IDs
* range.c (id_cmp, id_succ): use predefined IDs in id.def. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/range.c b/range.c
index 6d3c365..d44f322 100644
--- a/range.c
+++ b/range.c
@@ -18,7 +18,9 @@
#include <math.h>
VALUE rb_cRange;
-static ID id_cmp, id_succ, id_beg, id_end, id_excl, id_integer_p, id_div;
+static ID id_beg, id_end, id_excl, id_integer_p, id_div;
+#define id_cmp idCmp
+#define id_succ idSucc
#define RANGE_BEG(r) (RSTRUCT(r)->as.ary[0])
#define RANGE_END(r) (RSTRUCT(r)->as.ary[1])
@@ -1330,8 +1332,6 @@ Init_Range(void)
#undef rb_intern
#define rb_intern(str) rb_intern_const(str)
- id_cmp = rb_intern("<=>");
- id_succ = rb_intern("succ");
id_beg = rb_intern("begin");
id_end = rb_intern("end");
id_excl = rb_intern("excl");