aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 08:02:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 08:02:51 +0000
commit58553ca18487083d8a7f72068545e75788e1c8bc (patch)
tree71d6302087f732d1aae088ef54159a9f5df4b2fb /vm_eval.c
parent7566c49068869c222385ffb26bf91b666b3390b1 (diff)
downloadruby-58553ca18487083d8a7f72068545e75788e1c8bc.tar.gz
ruby/ruby.h, enum.c, vm_eval.c: constify argv
* include/ruby/ruby.h (RB_BLOCK_CALL_FUNC_ARGLIST): constify argv. * enum.c (rb_enum_values_pack): ditto. * vm_eval.c (rb_block_call, rb_check_block_call): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 6c248e4eb8..2dcbd451c6 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1122,7 +1122,7 @@ struct iter_method_arg {
VALUE obj;
ID mid;
int argc;
- VALUE *argv;
+ const VALUE *argv;
};
static VALUE
@@ -1135,7 +1135,7 @@ iterate_method(VALUE obj)
}
VALUE
-rb_block_call(VALUE obj, ID mid, int argc, VALUE * argv,
+rb_block_call(VALUE obj, ID mid, int argc, const VALUE * argv,
VALUE (*bl_proc) (ANYARGS), VALUE data2)
{
struct iter_method_arg arg;
@@ -1157,7 +1157,7 @@ iterate_check_method(VALUE obj)
}
VALUE
-rb_check_block_call(VALUE obj, ID mid, int argc, VALUE * argv,
+rb_check_block_call(VALUE obj, ID mid, int argc, const VALUE *argv,
VALUE (*bl_proc) (ANYARGS), VALUE data2)
{
struct iter_method_arg arg;