diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-19 09:27:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-19 09:27:49 +0000 |
commit | 884efe7c5ecfe5bf0621008b7a535729b4c07b97 (patch) | |
tree | 0380cb0e4887dd83e1047c42285c3eb6e3ae9856 /gc.c | |
parent | d22fc7c4d8849c86774b049bd6ef02005187c671 (diff) |
* node.h (nd_cpath): nested class/module declaration.
[EXPREIMENTAL]
* eval.c (rb_eval): ditto.
* gc.c (rb_gc_mark_children): ditto.
* parse.y (cpath): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -648,6 +648,7 @@ rb_gc_mark_children(ptr) case NODE_MASGN: case NODE_RESCUE: case NODE_RESBODY: + case NODE_CLASS: rb_gc_mark((VALUE)obj->as.node.u2.node); /* fall through */ case NODE_BLOCK: /* 1,3 */ @@ -684,6 +685,7 @@ rb_gc_mark_children(ptr) case NODE_MATCH3: case NODE_OP_ASGN_OR: case NODE_OP_ASGN_AND: + case NODE_MODULE: rb_gc_mark((VALUE)obj->as.node.u1.node); /* fall through */ case NODE_METHOD: /* 2 */ @@ -696,7 +698,6 @@ rb_gc_mark_children(ptr) case NODE_CDECL: case NODE_CVDECL: case NODE_CVASGN: - case NODE_MODULE: case NODE_COLON3: case NODE_OPT_N: case NODE_EVSTR: @@ -719,7 +720,6 @@ rb_gc_mark_children(ptr) break; case NODE_SCOPE: /* 2,3 */ - case NODE_CLASS: case NODE_BLOCK_PASS: rb_gc_mark((VALUE)obj->as.node.u3.node); rb_gc_mark((VALUE)obj->as.node.u2.node); |