diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-08-26 15:35:28 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-08-27 15:52:26 +0900 |
commit | bc3e7924bc66d3ef77b219c72f3e59cc154550a3 (patch) | |
tree | 44aed5a94d9d16dee2af0f92ed4653d6e2deb198 /include | |
parent | af5e2566405e4808a6d0a29c5b7d305d6fc0aada (diff) | |
download | ruby-bc3e7924bc66d3ef77b219c72f3e59cc154550a3.tar.gz |
rb_proc_new / rb_fiber_new now free from ANYARGS
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is
dangerous and should be extinct. This commit deletes ANYARGS from
rb_proc_new / rb_fiber_new, and applies RB_BLOCK_CALL_FUNC_ARGLIST
wherever necessary.
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/intern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 0aaeb82fb6..f3d3c29fbc 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -238,7 +238,7 @@ VALUE rb_singleton_class(VALUE); int rb_cmpint(VALUE, VALUE, VALUE); NORETURN(void rb_cmperr(VALUE, VALUE)); /* cont.c */ -VALUE rb_fiber_new(VALUE (*)(ANYARGS), VALUE); +VALUE rb_fiber_new(rb_block_call_func_t, VALUE); VALUE rb_fiber_resume(VALUE fib, int argc, const VALUE *argv); VALUE rb_fiber_yield(int argc, const VALUE *argv); VALUE rb_fiber_current(void); @@ -446,7 +446,7 @@ void rb_obj_call_init(VALUE, int, const VALUE*); VALUE rb_class_new_instance(int, const VALUE*, VALUE); VALUE rb_block_proc(void); VALUE rb_block_lambda(void); -VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE); +VALUE rb_proc_new(rb_block_call_func_t, VALUE); VALUE rb_obj_is_proc(VALUE); VALUE rb_proc_call(VALUE, VALUE); VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE); |