ruby-changes:29193
From: nobu <ko1@a...>
Date: Wed, 12 Jun 2013 12:01:03 +0900 (JST)
Subject: [ruby-changes:29193] nobu:r41244 (trunk): parse.y: non-shady ruby_debug_lines
nobu 2013-06-12 12:00:22 +0900 (Wed, 12 Jun 2013) New Revision: 41244 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41244 Log: parse.y: non-shady ruby_debug_lines * parse.y (parser_set_encode): get rid of making ruby_debug_lines non-shady. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 41243) +++ parse.y (revision 41244) @@ -6562,10 +6562,10 @@ parser_set_encode(struct parser_params * https://github.com/ruby/ruby/blob/trunk/parse.y#L6562 parser->enc = enc; #ifndef RIPPER if (ruby_debug_lines) { - long i, n = RARRAY_LEN(ruby_debug_lines); - const VALUE *p = RARRAY_PTR(ruby_debug_lines); + VALUE lines = ruby_debug_lines; + long i, n = RARRAY_LEN(lines); for (i = 0; i < n; ++i) { - rb_enc_associate_index(*p, idx); + rb_enc_associate_index(RARRAY_AREF(lines, i), idx); } } #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/