ruby-changes:34607
From: nobu <ko1@a...>
Date: Fri, 4 Jul 2014 15:10:46 +0900 (JST)
Subject: [ruby-changes:34607] nobu:r46688 (trunk): parse.y: pack op_tbl
nobu 2014-07-04 15:10:37 +0900 (Fri, 04 Jul 2014) New Revision: 46688 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46688 Log: parse.y: pack op_tbl * parse.y (op_tbl): pack limited size strings. gcc/clang warn if initializer-string for char array is too long, but no option to err it now. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 46687) +++ parse.y (revision 46688) @@ -10119,8 +10119,8 @@ rb_parser_while_loop(VALUE vparser, NODE https://github.com/ruby/ruby/blob/trunk/parse.y#L10119 } static const struct { - ID token; - const char *name; + unsigned short token; + const char name[3], term; } op_tbl[] = { {tDOT2, ".."}, {tDOT3, "..."}, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/