proc.c: constifiy
* proc.c (rb_proc_call_with_block): constifiy argv. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5812f34dfe
commit
d1ede0c12b
@ -407,7 +407,7 @@ VALUE rb_block_lambda(void);
|
|||||||
VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
|
VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
|
||||||
VALUE rb_obj_is_proc(VALUE);
|
VALUE rb_obj_is_proc(VALUE);
|
||||||
VALUE rb_proc_call(VALUE, VALUE);
|
VALUE rb_proc_call(VALUE, VALUE);
|
||||||
VALUE rb_proc_call_with_block(VALUE, int argc, VALUE *argv, VALUE);
|
VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE);
|
||||||
int rb_proc_arity(VALUE);
|
int rb_proc_arity(VALUE);
|
||||||
VALUE rb_proc_lambda_p(VALUE);
|
VALUE rb_proc_lambda_p(VALUE);
|
||||||
VALUE rb_binding_new(void);
|
VALUE rb_binding_new(void);
|
||||||
|
2
proc.c
2
proc.c
@ -601,7 +601,7 @@ rb_proc_call(VALUE self, VALUE args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_proc_call_with_block(VALUE self, int argc, VALUE *argv, VALUE pass_procval)
|
rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE pass_procval)
|
||||||
{
|
{
|
||||||
VALUE vret;
|
VALUE vret;
|
||||||
rb_proc_t *proc;
|
rb_proc_t *proc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user