From 96e278ca784659b109e086928cd69475023a99f1 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 21 Sep 2009 20:58:26 +0000 Subject: * 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 --- vm_eval.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vm_eval.c') 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); -- cgit