mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
2 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ VALUE rb_block_lambda(void);
|
|||
VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
|
||||
VALUE rb_obj_is_proc(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);
|
||||
VALUE rb_proc_lambda_p(VALUE);
|
||||
VALUE rb_binding_new(void);
|
||||
|
|
2
proc.c
2
proc.c
|
@ -601,7 +601,7 @@ rb_proc_call(VALUE self, VALUE args)
|
|||
}
|
||||
|
||||
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;
|
||||
rb_proc_t *proc;
|
||||
|
|
Loading…
Add table
Reference in a new issue