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

ruby-changes:51313

From: yui-knk <ko1@a...>
Date: Tue, 29 May 2018 10:59:05 +0900 (JST)
Subject: [ruby-changes:51313] yui-knk:r63519 (trunk): Unused macro and field

yui-knk	2018-05-29 10:58:57 +0900 (Tue, 29 May 2018)

  New Revision: 63519

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

  Log:
    Unused macro and field
    
    * node.h (nd_cnt, struct RNode): nd_cnt has been unused
      since r60239, and also cnt field.
    * .gdbinit (nd_cnt): ditto

  Modified files:
    trunk/.gdbinit
    trunk/node.h
Index: node.h
===================================================================
--- node.h	(revision 63518)
+++ node.h	(revision 63519)
@@ -262,7 +262,6 @@ typedef struct RNode { https://github.com/ruby/ruby/blob/trunk/node.h#L262
 	long state;
 	struct rb_global_entry *entry;
 	struct rb_args_info *args;
-	long cnt;
 	VALUE value;
     } u3;
     rb_code_location_t nd_loc;
@@ -324,7 +323,6 @@ typedef struct RNode { https://github.com/ruby/ruby/blob/trunk/node.h#L323
 #define nd_cval  u3.value
 
 #define nd_oid   u1.id
-#define nd_cnt   u3.cnt
 #define nd_tbl   u1.tbl
 
 #define nd_var   u1.node
Index: .gdbinit
===================================================================
--- .gdbinit	(revision 63518)
+++ .gdbinit	(revision 63519)
@@ -698,12 +698,6 @@ define nd_cval https://github.com/ruby/ruby/blob/trunk/.gdbinit#L698
   rp ($arg0).u3.value
 end
 
-
-define nd_cnt
-  printf "%su3.cnt%s: ", $color_highlite, $color_end
-  p ($arg0).u3.cnt
-end
-
 define nd_tbl
   printf "%su1.tbl%s: ", $color_highlite, $color_end
   p ($arg0).u1.tbl

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

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