1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* insnhelper.ci (vm_yield_with_cfunc): call cfunc with

(argv[0], data, argc, argv) to pass all arguments.

* eval.c (loop_i): adapted to new calling convention.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-12-19 06:37:41 +00:00
parent 1de2b12597
commit f00338f430
3 changed files with 14 additions and 17 deletions

View file

@ -225,14 +225,9 @@ enumerator_allocate(VALUE klass)
}
static VALUE
enumerator_each_i(VALUE v, VALUE enum_obj, VALUE argc)
enumerator_each_i(VALUE v, VALUE enum_obj, int argc, VALUE *argv)
{
if (argc == 1) {
return rb_yield(v);
}
else {
return rb_yield_values2(argc, RARRAY_PTR(v));
}
return rb_yield_values2(argc, argv);
}
static VALUE