[前][次][番号順一覧][スレッド一覧]

ruby-changes:49558

From: nobu <ko1@a...>
Date: Mon, 8 Jan 2018 14:17:13 +0900 (JST)
Subject: [ruby-changes:49558] nobu:r61674 (trunk): parse.y: constified NULL_LOC

nobu	2018-01-08 14:17:08 +0900 (Mon, 08 Jan 2018)

  New Revision: 61674

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61674

  Log:
    parse.y: constified NULL_LOC

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 61673)
+++ parse.y	(revision 61674)
@@ -128,7 +128,7 @@ enum lex_state_e { https://github.com/ruby/ruby/blob/trunk/parse.y#L128
 
 typedef VALUE stack_type;
 
-static rb_code_range_t NULL_LOC = { {0, -1}, {0, -1} };
+static const 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/

[前][次][番号順一覧][スレッド一覧]