mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
4d419a54f3
commit
b07e78fa32
3 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jul 6 17:16:37 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Mon Jul 6 16:42:10 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||||
|
|
||||||
* test/lib/memory_status.rb: removed redundant path.
|
* test/lib/memory_status.rb: removed redundant path.
|
||||||
|
|
1
method.h
1
method.h
|
@ -197,7 +197,6 @@ int rb_method_entry_arity(const rb_method_entry_t *me);
|
||||||
int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2);
|
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);
|
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_mod_method_location(VALUE mod, ID id);
|
||||||
VALUE rb_obj_method_location(VALUE obj, ID id);
|
VALUE rb_obj_method_location(VALUE obj, ID id);
|
||||||
|
|
||||||
|
|
6
proc.c
6
proc.c
|
@ -2247,8 +2247,8 @@ method_def_location(const rb_method_definition_t *def)
|
||||||
return iseq_location(method_def_iseq(def));
|
return iseq_location(method_def_iseq(def));
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
static VALUE
|
||||||
rb_method_entry_location(const rb_method_entry_t *me)
|
method_entry_location(const rb_method_entry_t *me)
|
||||||
{
|
{
|
||||||
if (!me) return Qnil;
|
if (!me) return Qnil;
|
||||||
return method_def_location(me->def);
|
return method_def_location(me->def);
|
||||||
|
@ -2258,7 +2258,7 @@ VALUE
|
||||||
rb_mod_method_location(VALUE mod, ID id)
|
rb_mod_method_location(VALUE mod, ID id)
|
||||||
{
|
{
|
||||||
const rb_method_entry_t *me = original_method_entry(mod, id);
|
const rb_method_entry_t *me = original_method_entry(mod, id);
|
||||||
return rb_method_entry_location(me);
|
return method_entry_location(me);
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue