ruby-changes:39078
From: ko1 <ko1@a...>
Date: Mon, 6 Jul 2015 17:35:53 +0900 (JST)
Subject: [ruby-changes:39078] ko1:r51159 (trunk): * method.h, proc.c (rb_method_entry_location): make it static
ko1 2015-07-06 17:35:22 +0900 (Mon, 06 Jul 2015) New Revision: 51159 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51159 Log: * method.h, proc.c (rb_method_entry_location): make it static and remoev prefix `rb_' because it is used only in proc.c. Modified files: trunk/ChangeLog trunk/method.h trunk/proc.c Index: method.h =================================================================== --- method.h (revision 51158) +++ method.h (revision 51159) @@ -197,7 +197,6 @@ int rb_method_entry_arity(const rb_metho https://github.com/ruby/ruby/blob/trunk/method.h#L197 int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2); st_index_t rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me); -VALUE rb_method_entry_location(const rb_method_entry_t *me); VALUE rb_mod_method_location(VALUE mod, ID id); VALUE rb_obj_method_location(VALUE obj, ID id); Index: ChangeLog =================================================================== --- ChangeLog (revision 51158) +++ ChangeLog (revision 51159) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jul 6 17:16:37 2015 Koichi Sasada <ko1@a...> + + * method.h, proc.c (rb_method_entry_location): make it static + and remoev prefix `rb_' because it is used only in proc.c. + Mon Jul 6 16:42:10 2015 SHIBATA Hiroshi <hsbt@r...> * test/lib/memory_status.rb: removed redundant path. Index: proc.c =================================================================== --- proc.c (revision 51158) +++ proc.c (revision 51159) @@ -2247,8 +2247,8 @@ method_def_location(const rb_method_defi https://github.com/ruby/ruby/blob/trunk/proc.c#L2247 return iseq_location(method_def_iseq(def)); } -VALUE -rb_method_entry_location(const rb_method_entry_t *me) +static VALUE +method_entry_location(const rb_method_entry_t *me) { if (!me) return Qnil; return method_def_location(me->def); @@ -2258,7 +2258,7 @@ VALUE https://github.com/ruby/ruby/blob/trunk/proc.c#L2258 rb_mod_method_location(VALUE mod, ID id) { const rb_method_entry_t *me = original_method_entry(mod, id); - return rb_method_entry_location(me); + return method_entry_location(me); } VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/