From 5c7c2d9951f2512ca10ea38fecc48d8ac67502e6 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Mon, 26 Aug 2019 14:51:00 +0900 Subject: rb_rescue / rb_rescue2 now free from ANYARGS After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, 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. --- eval.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 01e4fa6e42..b06e87f33f 100644 --- a/eval.c +++ b/eval.c @@ -931,8 +931,8 @@ rb_need_block(void) * \ingroup exception */ VALUE -rb_rescue2(VALUE (* b_proc) (ANYARGS), VALUE data1, - VALUE (* r_proc) (ANYARGS), VALUE data2, ...) +rb_rescue2(VALUE (* b_proc) (VALUE), VALUE data1, + VALUE (* r_proc) (VALUE, VALUE), VALUE data2, ...) { enum ruby_tag_type state; rb_execution_context_t * volatile ec = GET_EC(); @@ -1003,8 +1003,8 @@ rb_rescue2(VALUE (* b_proc) (ANYARGS), VALUE data1, * \ingroup exception */ VALUE -rb_rescue(VALUE (* b_proc)(ANYARGS), VALUE data1, - VALUE (* r_proc)(ANYARGS), VALUE data2) +rb_rescue(VALUE (* b_proc)(VALUE), VALUE data1, + VALUE (* r_proc)(VALUE, VALUE), VALUE data2) { return rb_rescue2(b_proc, data1, r_proc, data2, rb_eStandardError, (VALUE)0); -- cgit v1.2.3