ruby-changes:47407
From: nobu <ko1@a...>
Date: Mon, 7 Aug 2017 12:45:39 +0900 (JST)
Subject: [ruby-changes:47407] nobu:r59523 (trunk): enum.c: use predefined IDs
nobu 2017-08-07 12:45:32 +0900 (Mon, 07 Aug 2017) New Revision: 59523 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59523 Log: enum.c: use predefined IDs Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 59522) +++ enum.c (revision 59523) @@ -19,13 +19,13 @@ VALUE rb_mEnumerable; https://github.com/ruby/ruby/blob/trunk/enum.c#L19 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) https://github.com/ruby/ruby/blob/trunk/enum.c#L3970 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"); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/