summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-29 06:16:01 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-29 06:16:01 +0000
commit864bc4f18beb189c07a22e605810bb8d6eef5645 (patch)
tree239972797f1d798d6adb75a150fbfbd453d5751f /eval.c
parent88abd791f522c7097141753c3480a456340215f8 (diff)
* intern.h (rb_protect_inspect): follow the change of array.c.
* eval.c (rb_exec_end_proc): follow the change of rb_protect(). * eval.c (method_proc, umethod_proc, rb_catch): cast the first parameter of rb_iterate() to avoid VC++ warning. * range.c (range_step): ditto. * ext/sdbm/init.c (fsdbm_update, fsdbm_replace): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/eval.c b/eval.c
index 5fb2213c75..e9cf463d9f 100644
--- a/eval.c
+++ b/eval.c
@@ -5967,7 +5967,7 @@ rb_exec_end_proc()
save = 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);
}
@@ -5975,7 +5975,7 @@ rb_exec_end_proc()
}
link = end_procs;
while (link != save) {
- rb_protect((VALUE(*)())link->func, link->data, &status);
+ rb_protect((VALUE(*)_((VALUE)))link->func, link->data, &status);
if (status) {
error_handle(status);
}
@@ -6948,14 +6948,14 @@ static VALUE
method_proc(method)
VALUE method;
{
- return rb_iterate(mproc, 0, bmcall, method);
+ return rb_iterate((VALUE(*)_((VALUE)))mproc, 0, bmcall, method);
}
static VALUE
umethod_proc(method)
VALUE method;
{
- return rb_iterate(mproc, 0, umcall, method);
+ return rb_iterate((VALUE(*)_((VALUE)))mproc, 0, umcall, method);
}
static VALUE
@@ -9074,7 +9074,7 @@ rb_catch(tag, proc, data)
VALUE (*proc)();
VALUE data;
{
- return rb_iterate(catch_i, rb_intern(tag), proc, data);
+ return rb_iterate((VALUE(*)_((VALUE)))catch_i, rb_intern(tag), proc, data);
}
static VALUE