diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:11:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:11:17 +0000 |
commit | 2317b5da2ae2bab490c91773dad27115d3342bea (patch) | |
tree | bcee4f074ee8932693f483f7e63722b42b488009 /vm.c | |
parent | 6d803d4391a27708903bbd12fb6fdb3e865c3a8e (diff) | |
download | ruby-2317b5da2ae2bab490c91773dad27115d3342bea.tar.gz |
rename a function.
* vm.c (rb_thread_method_id_and_class): rename to
rb_ec_frame_method_id_and_class() and accepts `ec` instead of `th`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -341,7 +341,7 @@ ruby_th_dtrace_setup(rb_thread_t *th, VALUE klass, ID id, enum ruby_value_type type; if (!klass) { if (!th) th = GET_THREAD(); - if (!rb_thread_method_id_and_class(th, &id, 0, &klass) || !klass) + if (!rb_ec_frame_method_id_and_class(th->ec, &id, 0, &klass) || !klass) return FALSE; } if (RB_TYPE_P(klass, T_ICLASS)) { @@ -2064,15 +2064,15 @@ rb_vm_control_frame_id_and_class(const rb_control_frame_t *cfp, ID *idp, ID *cal } int -rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, ID *called_idp, VALUE *klassp) +rb_ec_frame_method_id_and_class(const rb_execution_context_t *ec, ID *idp, ID *called_idp, VALUE *klassp) { - return rb_vm_control_frame_id_and_class(th->ec->cfp, idp, called_idp, klassp); + return rb_vm_control_frame_id_and_class(ec->cfp, idp, called_idp, klassp); } int rb_frame_method_id_and_class(ID *idp, VALUE *klassp) { - return rb_thread_method_id_and_class(GET_THREAD(), idp, 0, klassp); + return rb_ec_frame_method_id_and_class(GET_EC(), idp, 0, klassp); } VALUE |