diff options
author | 卜部昌平 <[email protected]> | 2019-08-26 14:42:08 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-08-27 15:52:26 +0900 |
commit | 3cae73133cfec7d5ec3f8058ec647d5163578003 (patch) | |
tree | 8ec4433a4b4bf1063424dc7e4be76afbc79255c0 /include/ruby/ruby.h | |
parent | b8fd2e83e7b18fe3c70fc342388b1cb054b22e42 (diff) |
rb_iterate now takes rb_block_call_func_t
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is
dangerous and should be extinct. This commit makes rb_iterate free
from ANYARGS.
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index cf065e974e..1f05dd4dc6 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1964,7 +1964,7 @@ VALUE rb_yield_splat(VALUE); VALUE rb_yield_block(VALUE, VALUE, int, const VALUE *, VALUE); /* rb_block_call_func */ int rb_block_given_p(void); void rb_need_block(void); -VALUE rb_iterate(VALUE(*)(VALUE),VALUE,VALUE(*)(ANYARGS),VALUE); +VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE); VALUE rb_block_call(VALUE,ID,int,const VALUE*,rb_block_call_func_t,VALUE); VALUE rb_rescue(VALUE(*)(ANYARGS),VALUE,VALUE(*)(ANYARGS),VALUE); VALUE rb_rescue2(VALUE(*)(ANYARGS),VALUE,VALUE(*)(ANYARGS),VALUE,...); |