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

ruby-changes:48232

From: nobu <ko1@a...>
Date: Sun, 22 Oct 2017 14:14:02 +0900 (JST)
Subject: [ruby-changes:48232] nobu:r60347 (trunk): remove NODE_DREGX_ONCE

nobu	2017-10-22 14:13:57 +0900 (Sun, 22 Oct 2017)

  New Revision: 60347

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

  Log:
    remove NODE_DREGX_ONCE
    
    * node.h (enum node_type): remove NODE_DREGX_ONCE which is not
      used anymore.

  Modified files:
    trunk/ext/objspace/objspace.c
    trunk/node.c
    trunk/node.h
Index: node.h
===================================================================
--- node.h	(revision 60346)
+++ node.h	(revision 60347)
@@ -150,8 +150,6 @@ enum node_type { https://github.com/ruby/ruby/blob/trunk/node.h#L150
 #define NODE_EVSTR       NODE_EVSTR
     NODE_DREGX,
 #define NODE_DREGX       NODE_DREGX
-    NODE_DREGX_ONCE,
-#define NODE_DREGX_ONCE  NODE_DREGX_ONCE
     NODE_ARGS,
 #define NODE_ARGS        NODE_ARGS
     NODE_ARGS_AUX,
Index: ext/objspace/objspace.c
===================================================================
--- ext/objspace/objspace.c	(revision 60346)
+++ ext/objspace/objspace.c	(revision 60347)
@@ -433,7 +433,6 @@ count_nodes(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L433
 		COUNT_NODE(NODE_DXSTR);
 		COUNT_NODE(NODE_EVSTR);
 		COUNT_NODE(NODE_DREGX);
-		COUNT_NODE(NODE_DREGX_ONCE);
 		COUNT_NODE(NODE_ARGS);
 		COUNT_NODE(NODE_ARGS_AUX);
 		COUNT_NODE(NODE_OPT_ARG);
Index: node.c
===================================================================
--- node.c	(revision 60346)
+++ node.c	(revision 60347)
@@ -714,11 +714,6 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L714
 	ANN("format: [nd_lit]");
 	ANN("example: /foo#{ bar }baz/");
 	goto dlit;
-      case NODE_DREGX_ONCE:
-	ANN("regexp literal with interpolation and once flag");
-	ANN("format: [nd_lit]");
-	ANN("example: /foo#{ bar }baz/o");
-	goto dlit;
       case NODE_DSYM:
 	ANN("symbol literal with interpolation");
 	ANN("format: [nd_lit]");
@@ -1111,7 +1106,6 @@ rb_gc_mark_node(NODE *obj) https://github.com/ruby/ruby/blob/trunk/node.c#L1106
       case NODE_DSTR:
       case NODE_DXSTR:
       case NODE_DREGX:
-      case NODE_DREGX_ONCE:
       case NODE_ENSURE:
       case NODE_CALL:
       case NODE_DEFS:

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

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