diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 11:03:37 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 11:03:37 +0000 |
commit | ec3a906bb63581adb3d1dab95fac645c9c8a053d (patch) | |
tree | dfb629ba03d6d0246120b0613ca8f94a455a6903 /node.c | |
parent | 22c8cc44a27cceebc48418b2b05e0a6e1638994b (diff) |
Refactoring out the direct accesses of NODE's u1, u2, and u3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -802,17 +802,17 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node) ANN("method alias statement"); ANN("format: alias [u1.node] [u2.node]"); ANN("example: alias bar foo"); - F_NODE(u1.node, "new name"); + F_NODE(nd_1st, "new name"); LAST_NODE; - F_NODE(u2.node, "old name"); + F_NODE(nd_2nd, "old name"); return; case NODE_VALIAS: ANN("global variable alias statement"); ANN("format: alias [u1.id](gvar) [u2.id](gvar)"); ANN("example: alias $y $x"); - F_ID(u1.id, "new name"); - F_ID(u2.id, "old name"); + F_ID(nd_alias, "new name"); + F_ID(nd_orig, "old name"); return; case NODE_UNDEF: @@ -820,7 +820,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node) ANN("format: undef [u2.node]"); ANN("example: undef foo"); LAST_NODE; - F_NODE(u2.node, "old name"); + F_NODE(nd_undef, "old name"); return; case NODE_CLASS: @@ -951,7 +951,6 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node) ANN("pre-execution"); ANN("format: BEGIN { [nd_head] }; [nd_body]"); ANN("example: bar; BEGIN { foo }"); -#define nd_compile_option u3.value F_NODE(nd_head, "prelude"); if (!node->nd_compile_option) LAST_NODE; F_NODE(nd_body, "body"); |