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

ruby-changes:4394

From: ko1@a...
Date: Wed, 2 Apr 2008 06:54:40 +0900 (JST)
Subject: [ruby-changes:4394] matz - Ruby:r15885 (trunk): * .gdbinit (rp): supports rational and complex numbers. it's

matz	2008-04-02 06:54:16 +0900 (Wed, 02 Apr 2008)

  New Revision: 15885

  Modified files:
    trunk/.gdbinit
    trunk/ChangeLog

  Log:
    * .gdbinit (rp): supports rational and complex numbers.  it's
      cheating since it uses rb_p().

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/.gdbinit?r1=15885&r2=15884&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15885&r2=15884&diff_format=u

Index: .gdbinit
===================================================================
--- .gdbinit	(revision 15884)
+++ .gdbinit	(revision 15885)
@@ -143,6 +143,14 @@
           ((struct RBignum*)$arg0)->as.ary : \
           ((struct RBignum*)$arg0)->as.heap.digits)
   else
+  if ($flags & RUBY_T_MASK) == RUBY_T_RATIONAL
+    printf "T_RATIONAL: "
+    rb_p $arg0
+  else
+  if ($flags & RUBY_T_MASK) == RUBY_T_COMPLEX
+    printf "T_COMPLEX: "
+    rb_p $arg0
+  else
   if ($flags & RUBY_T_MASK) == RUBY_T_FILE
     printf "T_FILE: "
     print (struct RFile *)$arg0
@@ -220,6 +228,8 @@
   end
   end
   end
+  end
+  end
 end
 document rp
   Print a Ruby's VALUE.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15884)
+++ ChangeLog	(revision 15885)
@@ -1,3 +1,8 @@
+Wed Apr  2 06:52:31 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* .gdbinit (rp): supports rational and complex numbers.  it's
+	  cheating since it uses rb_p().
+
 Wed Apr  2 06:24:06 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* include/ruby/node.h: add new constants for rb_call()'s scope.

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

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