ruby-changes:42006
From: nobu <ko1@a...>
Date: Thu, 10 Mar 2016 16:27:45 +0900 (JST)
Subject: [ruby-changes:42006] nobu:r54080 (trunk): node.c: no nd_compile_option unless set
nobu 2016-03-10 16:27:41 +0900 (Thu, 10 Mar 2016) New Revision: 54080 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54080 Log: node.c: no nd_compile_option unless set * node.c (dump_node): show nd_compile_option only when it is set. Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 54079) +++ node.c (revision 54080) @@ -865,11 +865,14 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L865 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"); - LAST_NODE; -#define nd_compile_option u3.value - F_OPTION(nd_compile_option, "compile_option"); + if (node->nd_compile_option) { + LAST_NODE; + F_OPTION(nd_compile_option, "compile_option"); + } break; case NODE_LAMBDA: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/