mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@25030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2c34b66e24
commit
fe1ce93f52
17 changed files with 132 additions and 118 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue