diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-06 15:06:00 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-06 15:06:00 +0000 |
commit | 7cac8a63655ad829b915144f447681cb6b25cbe8 (patch) | |
tree | 8d7e184fd63610124717df8dec31e719901965ad /eval.c | |
parent | 34b2868fef4ea1159f0441cab4c30738e101eec7 (diff) | |
download | ruby-7cac8a63655ad829b915144f447681cb6b25cbe8.tar.gz ruby-7cac8a63655ad829b915144f447681cb6b25cbe8.tar.xz ruby-7cac8a63655ad829b915144f447681cb6b25cbe8.zip |
forgot some checkins.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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); } |