rename a local variable current_node -> nodetype; ref #2583

parent 27ac09be
...@@ -5668,14 +5668,14 @@ void ...@@ -5668,14 +5668,14 @@ void
mrb_parser_dump(mrb_state *mrb, node *tree, int offset) mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
{ {
#ifdef ENABLE_STDIO #ifdef ENABLE_STDIO
int current_node; int nodetype;
if (!tree) return; if (!tree) return;
again: again:
dump_prefix(tree, offset); dump_prefix(tree, offset);
current_node = (int)(intptr_t)tree->car; nodetype = (int)(intptr_t)tree->car;
tree = tree->cdr; tree = tree->cdr;
switch (current_node) { switch (nodetype) {
case NODE_BEGIN: case NODE_BEGIN:
printf("NODE_BEGIN:\n"); printf("NODE_BEGIN:\n");
dump_recur(mrb, tree, offset+1); dump_recur(mrb, tree, offset+1);
...@@ -6402,7 +6402,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset) ...@@ -6402,7 +6402,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break; break;
default: default:
printf("node type: %d (0x%x)\n", current_node, (unsigned)current_node); printf("node type: %d (0x%x)\n", nodetype, (unsigned)nodetype);
break; break;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment