diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-10 07:27:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-10 07:27:40 +0000 |
commit | 72b3e226fc59fa533883dc9e83e2b64659aa0579 (patch) | |
tree | 20b3c4a9484214f70c6c3e2a38ed12d151e277b2 /node.c | |
parent | 46ac76b6edf7d480ccd791e3391bedf437c671e8 (diff) | |
download | bundler-72b3e226fc59fa533883dc9e83e2b64659aa0579.tar.gz |
node.c: stringize before expansion
* node.c (F_NODE, F_OPTION): stringize member names defined as
macros before expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -38,8 +38,8 @@ } while (0) #define COMPOUND_FIELD1(name, ann, block) \ - COMPOUND_FIELD(FIELD_NAME_LEN(#name, ann), \ - FIELD_NAME_DESC(#name, ann), \ + COMPOUND_FIELD(FIELD_NAME_LEN(name, ann), \ + FIELD_NAME_DESC(name, ann), \ block) #define FIELD_NAME_DESC(name, ann) name " (" ann ")" @@ -62,9 +62,9 @@ #define F_MSG(name, ann, desc) SIMPLE_FIELD1(#name, ann) A(desc) #define F_NODE(name, ann) \ - COMPOUND_FIELD1(name, ann, dump_node(buf, indent, comment, node->name)) + COMPOUND_FIELD1(#name, ann, dump_node(buf, indent, comment, node->name)) #define F_OPTION(name, ann) \ - COMPOUND_FIELD1(name, ann, dump_option(buf, indent, node->name)) + COMPOUND_FIELD1(#name, ann, dump_option(buf, indent, node->name)) #define ANN(ann) \ if (comment) { \ |