summaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 20:58:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 20:58:26 +0000
commit96e278ca784659b109e086928cd69475023a99f1 (patch)
treedc68c377c5347844138e9aa22610ee815677a7a4 /vm_eval.c
parentdb369aa32b7ca3b9b44ca3139ee6a2ace473fc07 (diff)
downloadruby-96e278ca784659b109e086928cd69475023a99f1.tar.gz
ruby-96e278ca784659b109e086928cd69475023a99f1.tar.xz
ruby-96e278ca784659b109e086928cd69475023a99f1.zip
* compile.c, cont.c, gc.c, insns.def, iseq.c, iseq.h, process.c,
thread.c, vm.c, vm_core.h, vm_dump.c, vm_eval.c, vm_insnhelper.c, vm_method.c, template/insns_info.inc.tmpl, tool/instruction.rb: fixed types. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/vm_eval.c b/vm_eval.c
index c27c2a3b0..befe33adc 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1265,9 +1265,11 @@ rb_throw(const char *tag, VALUE val)
}
static VALUE
-catch_i(VALUE tag, VALUE data) {
+catch_i(VALUE tag, VALUE data)
+{
return rb_yield_0(1, &tag);
}
+
/*
* call-seq:
* catch([arg]) {|tag| block } => obj
@@ -1403,7 +1405,7 @@ print_backtrace(void *arg, VALUE file, int line, VALUE method)
{
fprintf((FILE *)arg, "\tfrom %s:%d:in `%s'\n",
RSTRING_PTR(file), line, RSTRING_PTR(method));
- return Qfalse;
+ return FALSE;
}
void
@@ -1437,7 +1439,7 @@ rb_thread_backtrace(VALUE thval)
return vm_backtrace(th, 0);
}
-VALUE
+int
rb_backtrace_each(rb_backtrace_iter_func *iter, void *arg)
{
return vm_backtrace_each(GET_THREAD(), -1, iter, arg);