ruby-changes:49553
From: yui-knk <ko1@a...>
Date: Mon, 8 Jan 2018 11:24:23 +0900 (JST)
Subject: [ruby-changes:49553] yui-knk:r61669 (trunk): parse.y: Make NULL_LOC to be internal
yui-knk 2018-01-08 11:24:18 +0900 (Mon, 08 Jan 2018) New Revision: 61669 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61669 Log: parse.y: Make NULL_LOC to be internal * parse.y (NULL_LOC): We will create NODEs only inside of parse.y, so make NULL_LOC to be internal. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61668) +++ parse.y (revision 61669) @@ -128,7 +128,7 @@ enum lex_state_e { https://github.com/ruby/ruby/blob/trunk/parse.y#L128 typedef VALUE stack_type; -rb_code_range_t NULL_LOC = { {0, -1}, {0, -1} }; +static rb_code_range_t NULL_LOC = { {0, -1}, {0, -1} }; # define SHOW_BITSTACK(stack, name) (yydebug ? rb_parser_show_bitstack(parser, stack, name, __LINE__) : (void)0) # define BITSTACK_PUSH(stack, n) (((stack) = ((stack)<<1)|((n)&1)), SHOW_BITSTACK(stack, #stack"(push)")) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/