* vm.c (vm_backtrace_each): now takes an iterator function.

* vm_core.h (rb_make_backtrace, rb_backtrace_each): added
  prototypes.

* vm_dump.c (rb_vm_bugreport), vm_eval.c (rb_backtrace): gets rid
  of allocating objects.

* vm_eval.c (rb_backtrace_each): new function which iterates over
  each backtrace info.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-02-01 22:36:15 +00:00
parent 1c4e92c185
commit a7b5c603b4
6 changed files with 76 additions and 57 deletions

1
eval.c
View file

@ -330,7 +330,6 @@ rb_frozen_class_p(VALUE klass)
}
NORETURN(static void rb_longjmp(int, VALUE));
VALUE rb_make_backtrace(void);
static void
rb_longjmp(int tag, VALUE mesg)