ruby-changes:53439
From: nobu <ko1@a...>
Date: Sat, 10 Nov 2018 21:04:23 +0900 (JST)
Subject: [ruby-changes:53439] nobu:r65655 (trunk): Constified ruby_sourcefile
nobu 2018-11-10 21:04:18 +0900 (Sat, 10 Nov 2018) New Revision: 65655 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65655 Log: Constified ruby_sourcefile which usually refers ruby_sourcefile_string and is not freed directly. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 65654) +++ parse.y (revision 65655) @@ -225,7 +225,7 @@ struct parser_params { https://github.com/ruby/ruby/blob/trunk/parse.y#L225 struct local_vars *lvtbl; int line_count; int ruby_sourceline; /* current line no. */ - char *ruby_sourcefile; /* current source file */ + const char *ruby_sourcefile; /* current source file */ VALUE ruby_sourcefile_string; rb_encoding *enc; token_info *token_info; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/