aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-11 12:30:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-11 12:30:48 +0000
commit1b03efee58ee4c825b278a7bcb4ac80e41e7c18a (patch)
tree816ef7c640e729eeb44447211cb3be2071ee86c6 /eval.c
parent32f264bfef9ef6eb96c791ee33ffad8d5e461578 (diff)
downloadruby-1b03efee58ee4c825b278a7bcb4ac80e41e7c18a.tar.gz
* array.c, enum.c, eval.c, util.c: safer function pointer usage.
fixed: [ruby-core:06143] * util.h (qsort): removed the definition incompatible to ANSI. fixed: [ruby-core:06147] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 47d968830b..d04180f11c 100644
--- a/eval.c
+++ b/eval.c
@@ -12943,9 +12943,7 @@ recursive_pop(void)
}
VALUE
-rb_exec_recursive(VALUE (*func) (/* ??? */), VALUE obj, VALUE arg)
- /* VALUE obj, VALUE arg, int flag */
-
+rb_exec_recursive(VALUE (*func)(VALUE, VALUE, int), VALUE obj, VALUE arg)
{
if (recursive_check(obj)) {
return (*func)(obj, arg, Qtrue);