diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-08 02:24:18 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-08 02:24:18 +0000 |
commit | 6e6a253928b8205775b3030e5d667f0ccf8adc08 (patch) | |
tree | 02439ed665bde3303c3d72e171ee7adb504ba165 | |
parent | 7fdbced2b705a25d1e65b39fd869a4c35e37b081 (diff) | |
download | ruby-6e6a253928b8205775b3030e5d667f0ccf8adc08.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -128,7 +128,7 @@ enum lex_state_e { 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)")) |