From 1d3d27b42d1371ba6242ec217ca803f107ceb9eb Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 6 May 2001 15:06:00 +0000 Subject: forgot some checkins. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 031dd4de05..54d4a72668 100644 --- a/eval.c +++ b/eval.c @@ -3929,7 +3929,7 @@ rb_rescue(b_proc, data1, r_proc, data2) VALUE rb_protect(proc, data, state) - VALUE (*proc)(); + VALUE (*proc) _((VALUE)); VALUE data; int *state; { @@ -5731,7 +5731,7 @@ static struct end_proc_data *end_procs, *ephemeral_end_procs; void rb_set_end_proc(func, data) - void (*func)(); + void (*func) _((VALUE)); VALUE data; { struct end_proc_data *link = ALLOC(struct end_proc_data); @@ -5762,6 +5762,8 @@ rb_mark_end_proc() } } +static void call_end_proc _((VALUE data)); + static void call_end_proc(data) VALUE data; @@ -5804,7 +5806,7 @@ rb_exec_end_proc() link = end_procs; while (link) { - rb_protect((VALUE(*)())link->func, link->data, &status); + rb_protect((VALUE(*)_((VALUE)))link->func, link->data, &status); if (status) { error_handle(status); } @@ -5813,7 +5815,7 @@ rb_exec_end_proc() while (ephemeral_end_procs) { link = ephemeral_end_procs; ephemeral_end_procs = link->next; - rb_protect((VALUE(*)())link->func, link->data, &status); + rb_protect((VALUE(*)_((VALUE)))link->func, link->data, &status); if (status) { error_handle(status); } -- cgit v1.2.3