[前][次][番号順一覧][スレッド一覧]

ruby-changes:12820

From: nobu <ko1@a...>
Date: Sun, 16 Aug 2009 09:48:22 +0900 (JST)
Subject: [ruby-changes:12820] Ruby:r24548 (trunk): * vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now

nobu	2009-08-16 09:47:40 +0900 (Sun, 16 Aug 2009)

  New Revision: 24548

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24548

  Log:
    * vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now
      takes VALUE as file and method names.

  Modified files:
    trunk/ChangeLog
    trunk/vm_dump.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24547)
+++ ChangeLog	(revision 24548)
@@ -1,3 +1,8 @@
+Sun Aug 16 09:47:29 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now
+	  takes VALUE as file and method names.
+
 Sun Aug 16 03:06:59 2009  Koichi Sasada  <ko1@a...>
 
 	* vm_insnhelper.c (opt_eq_func): fix optimization bug.  This issue
Index: vm_dump.c
===================================================================
--- vm_dump.c	(revision 24547)
+++ vm_dump.c	(revision 24548)
@@ -565,14 +565,14 @@
 }
 
 static int
-bugreport_backtrace(void *arg, const char *file, int line, const char *method)
+bugreport_backtrace(void *arg, VALUE file, int line, VALUE method)
 {
     if (!*(int *)arg) {
 	fprintf(stderr, "-- Ruby level backtrace information"
 		"-----------------------------------------\n");
 	*(int *)arg = 1;
     }
-    fprintf(stderr, "%s:%d:in `%s'\n", file, line, method);
+    fprintf(stderr, "%s:%d:in `%s'\n", RSTRING_PTR(file), line, RSTRING_PTR(method));
     return 0;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]