aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-29 11:57:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-29 11:57:14 +0000
commit4f050367f1452f64ee89a1aea5754c5e87b70393 (patch)
tree684f70d3ecfe562d0a3c48d29c69309f7ac92748 /vm_eval.c
parent15e87e447379d35f424d5dca0dce8d7032fd2e9d (diff)
downloadruby-4f050367f1452f64ee89a1aea5754c5e87b70393.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 4ef4d6e582..264c0920a8 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -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 {