summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-09-04 08:33:18 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-09-04 08:33:18 +0900
commitdc3c91dfdc25a63fef647464530f0ae4778a3687 (patch)
treef83794f59f4f164bc75afc16ecef952e212ec91f /src
parent27ac09be9dfb20c35c91e5bda112797bdb3d2cfa (diff)
downloadmruby-dc3c91dfdc25a63fef647464530f0ae4778a3687.tar.gz
mruby-dc3c91dfdc25a63fef647464530f0ae4778a3687.zip
rename a local variable current_node -> nodetype; ref #2583
Diffstat (limited to 'src')
-rw-r--r--src/parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse.y b/src/parse.y
index 242d5e60e..4cab4162a 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -5668,14 +5668,14 @@ void
mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
{
#ifdef ENABLE_STDIO
- int current_node;
+ int nodetype;
if (!tree) return;
again:
dump_prefix(tree, offset);
- current_node = (int)(intptr_t)tree->car;
+ nodetype = (int)(intptr_t)tree->car;
tree = tree->cdr;
- switch (current_node) {
+ switch (nodetype) {
case NODE_BEGIN:
printf("NODE_BEGIN:\n");
dump_recur(mrb, tree, offset+1);
@@ -6402,7 +6402,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break;
default:
- printf("node type: %d (0x%x)\n", current_node, (unsigned)current_node);
+ printf("node type: %d (0x%x)\n", nodetype, (unsigned)nodetype);
break;
}
#endif