diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-29 11:57:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-29 11:57:14 +0000 |
commit | c463366dfd75056885028a95e8e2fc6e135d9194 (patch) | |
tree | 684f70d3ecfe562d0a3c48d29c69309f7ac92748 /vm_eval.c | |
parent | 26de0b131e57952d29664de4453e2f04ec3df2bc (diff) |
rb_funcallv
* *.c: rename rb_funcall2 to rb_funcallv, except for extensions
which are/will be/may be gems. [Fix GH-1406]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -853,7 +853,7 @@ rb_funcallv(VALUE recv, ID mid, int argc, const VALUE *argv) /*! * Calls a method. * - * Same as rb_funcall2 but this function can call only public methods. + * Same as rb_funcallv but this function can call only public methods. * \param recv receiver of the method * \param mid an ID that represents the name of the method * \param argc the number of arguments @@ -1543,7 +1543,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level) rb_set_safe_level_force(level); if ((state = TH_EXEC_TAG()) == 0) { if (!RB_TYPE_P(cmd, T_STRING)) { - val = rb_funcall2(cmd, idCall, RARRAY_LENINT(arg), + val = rb_funcallv(cmd, idCall, RARRAY_LENINT(arg), RARRAY_CONST_PTR(arg)); } else { |