mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
node.c (dump_node): trivial refactoring
This commit is contained in:
parent
c400165afa
commit
5a7b4dba26
1 changed files with 1 additions and 3 deletions
4
node.c
4
node.c
|
@ -677,10 +677,8 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
|
||||||
ANN("format: $[nd_nth]");
|
ANN("format: $[nd_nth]");
|
||||||
ANN("example: $&, $`, $', $+");
|
ANN("example: $&, $`, $', $+");
|
||||||
F_CUSTOM1(nd_nth, "variable") {
|
F_CUSTOM1(nd_nth, "variable") {
|
||||||
char name[3];
|
char name[3] = "$ ";
|
||||||
name[0] = '$';
|
|
||||||
name[1] = (char)node->nd_nth;
|
name[1] = (char)node->nd_nth;
|
||||||
name[2] = '\0';
|
|
||||||
A(name);
|
A(name);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue