diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-06 08:35:22 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-06 08:35:22 +0000 |
commit | b07e78fa32f842629bc058430dea89ae9fa820bd (patch) | |
tree | fca0b3bb633aa59f5f3c7f46438f4a705be60c5e /proc.c | |
parent | 4d419a54f38a7c6a7b8eed9ab522efff4d858749 (diff) | |
download | ruby-b07e78fa32f842629bc058430dea89ae9fa820bd.tar.gz |
* method.h, proc.c (rb_method_entry_location): make it static
and remoev prefix `rb_' because it is used only in proc.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2247,8 +2247,8 @@ method_def_location(const rb_method_definition_t *def) 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 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 |