From b7e9656cdf568b619e00fa83f5dec46bcc824c84 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 16 Aug 2009 01:38:32 +0000 Subject: * vm.c (vm_backtrace_each, vm_backtrace_push), vm_eval.c (print_backtrace), vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now takes VALUE as file and method names. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 6d7c84f7b..8784b88d7 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1345,9 +1345,10 @@ rb_f_caller(int argc, VALUE *argv) } static int -print_backtrace(void *arg, const char *file, int line, const char *method) +print_backtrace(void *arg, VALUE file, int line, VALUE method) { - fprintf((FILE *)arg, "\tfrom %s:%d:in `%s'\n", file, line, method); + fprintf((FILE *)arg, "\tfrom %s:%d:in `%s'\n", + RSTRING_PTR(file), line, RSTRING_PTR(method)); return Qfalse; } -- cgit