1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/node.h, parse.y, gc.c, iseq.c: remove NODE_CREF.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-06-27 16:23:49 +00:00
parent 4a7d47e41a
commit fd78c2193e
5 changed files with 4 additions and 6 deletions

View file

@ -1,3 +1,7 @@
Thu Jun 28 01:22:15 2007 Koichi Sasada <ko1@atdot.net>
* include/ruby/node.h, parse.y, gc.c, iseq.c: remove NODE_CREF.
Thu Jun 28 01:19:43 2007 Koichi Sasada <ko1@atdot.net> Thu Jun 28 01:19:43 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): fix popped backref and others. * compile.c (iseq_compile_each): fix popped backref and others.

1
gc.c
View file

@ -848,7 +848,6 @@ gc_mark_children(VALUE ptr, int lev)
case NODE_IF: /* 1,2,3 */ case NODE_IF: /* 1,2,3 */
case NODE_FOR: case NODE_FOR:
case NODE_ITER: case NODE_ITER:
case NODE_CREF:
case NODE_WHEN: case NODE_WHEN:
case NODE_MASGN: case NODE_MASGN:
case NODE_RESCUE: case NODE_RESCUE:

View file

@ -109,7 +109,6 @@ enum node_type {
NODE_SCLASS, NODE_SCLASS,
NODE_COLON2, NODE_COLON2,
NODE_COLON3, NODE_COLON3,
NODE_CREF,
NODE_DOT2, NODE_DOT2,
NODE_DOT3, NODE_DOT3,
NODE_FLIP2, NODE_FLIP2,
@ -338,7 +337,6 @@ typedef struct RNode {
#define NEW_MODULE(n,b) NEW_NODE(NODE_MODULE,n,NEW_SCOPE(0,b),0) #define NEW_MODULE(n,b) NEW_NODE(NODE_MODULE,n,NEW_SCOPE(0,b),0)
#define NEW_COLON2(c,i) NEW_NODE(NODE_COLON2,c,i,0) #define NEW_COLON2(c,i) NEW_NODE(NODE_COLON2,c,i,0)
#define NEW_COLON3(i) NEW_NODE(NODE_COLON3,0,i,0) #define NEW_COLON3(i) NEW_NODE(NODE_COLON3,0,i,0)
#define NEW_CREF(c) (NEW_NODE(NODE_CREF,0,0,c))
#define NEW_DOT2(b,e) NEW_NODE(NODE_DOT2,b,e,0) #define NEW_DOT2(b,e) NEW_NODE(NODE_DOT2,b,e,0)
#define NEW_DOT3(b,e) NEW_NODE(NODE_DOT3,b,e,0) #define NEW_DOT3(b,e) NEW_NODE(NODE_DOT3,b,e,0)
#define NEW_ATTRSET(a) NEW_NODE(NODE_ATTRSET,a,0,0) #define NEW_ATTRSET(a) NEW_NODE(NODE_ATTRSET,a,0,0)

2
iseq.c
View file

@ -1005,8 +1005,6 @@ end
return "NODE_COLON2"; return "NODE_COLON2";
case NODE_COLON3: case NODE_COLON3:
return "NODE_COLON3"; return "NODE_COLON3";
case NODE_CREF:
return "NODE_CREF";
case NODE_DOT2: case NODE_DOT2:
return "NODE_DOT2"; return "NODE_DOT2";
case NODE_DOT3: case NODE_DOT3:

View file

@ -7552,7 +7552,6 @@ void_expr_gen(struct parser_params *parser, NODE *node)
useless = "a variable"; useless = "a variable";
break; break;
case NODE_CONST: case NODE_CONST:
case NODE_CREF:
useless = "a constant"; useless = "a constant";
break; break;
case NODE_LIT: case NODE_LIT: