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 /cont.c | |
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 'cont.c')
-rw-r--r-- | cont.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1770,7 +1770,7 @@ rb_fiber_initialize(int argc, VALUE* argv, VALUE self) } VALUE -rb_fiber_new(VALUE (*func)(ANYARGS), VALUE obj) +rb_fiber_new(rb_block_call_func_t func, VALUE obj) { return fiber_initialize(fiber_alloc(rb_cFiber), rb_proc_new(func, obj), &shared_fiber_pool); } |