mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
rb_rescue / rb_rescue2 now free from ANYARGS
After 5e86b005c0
, I now think ANYARGS is
dangerous and should be extinct. This commit deletes ANYARGS from
rb_rescue / rb_rescue2, which revealed many arity / type mismatches.
This commit is contained in:
parent
3cae73133c
commit
5c7c2d9951
8 changed files with 20 additions and 18 deletions
6
enum.c
6
enum.c
|
@ -2723,14 +2723,16 @@ zip_ary(RB_BLOCK_CALL_FUNC_ARGLIST(val, memoval))
|
|||
}
|
||||
|
||||
static VALUE
|
||||
call_next(VALUE *v)
|
||||
call_next(VALUE w)
|
||||
{
|
||||
VALUE *v = (VALUE *)w;
|
||||
return v[0] = rb_funcallv(v[1], id_next, 0, 0);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
call_stop(VALUE *v)
|
||||
call_stop(VALUE w, VALUE _)
|
||||
{
|
||||
VALUE *v = (VALUE *)w;
|
||||
return v[0] = Qundef;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue