зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
75319221a2
Коммит
0238f47fa7
6
range.c
6
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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче