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

ruby-changes:36154

From: ko1 <ko1@a...>
Date: Mon, 3 Nov 2014 02:35:09 +0900 (JST)
Subject: [ruby-changes:36154] ko1:r48235 (trunk): * gc.c (obj_info): show T_STRING more details.

ko1	2014-11-03 02:34:51 +0900 (Mon, 03 Nov 2014)

  New Revision: 48235

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

  Log:
    * gc.c (obj_info): show T_STRING more details.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48234)
+++ ChangeLog	(revision 48235)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Nov  3 02:33:43 2014  Koichi Sasada  <ko1@a...>
+
+	* gc.c (obj_info): show T_STRING more details.
+
 Sun Nov  2 01:30:32 2014  Tanaka Akira  <akr@f...>
 
 	* test/openssl/test_ssl.rb: Don't ignore errors on listener threads,
Index: gc.c
===================================================================
--- gc.c	(revision 48234)
+++ gc.c	(revision 48235)
@@ -8388,6 +8388,10 @@ obj_info(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L8388
 		 C(ARY_SHARED_P(obj), "S"),
 		 (int)RARRAY_LEN(obj));
 	break;
+      case T_STRING: {
+	  snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s %s", buff, RSTRING_PTR(obj));
+	  break;
+      }
       case T_CLASS: {
 	  VALUE class_path = rb_class_path_cached(obj);
 	  if (!NIL_P(class_path)) {

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

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