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

ruby-changes:40179

From: nobu <ko1@a...>
Date: Sat, 24 Oct 2015 07:41:11 +0900 (JST)
Subject: [ruby-changes:40179] nobu:r52260 (trunk): parse.y: canonical name

nobu	2015-10-24 07:41:06 +0900 (Sat, 24 Oct 2015)

  New Revision: 52260

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

  Log:
    parse.y: canonical name
    
    * parse.y (parser_magic_comment): intern canonical name.
      InstructionSequence.compile_options are case-sensitive while
      pragma names are case-insensitive.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 52259)
+++ parse.y	(revision 52260)
@@ -7074,7 +7074,7 @@ parser_magic_comment(struct parser_param https://github.com/ruby/ruby/blob/trunk/parse.y#L7074
 		    n = (*p->length)(parser, vbeg, n);
 		}
 		str_copy(val, vbeg, n);
-		(*p->func)(parser, s, RSTRING_PTR(val));
+		(*p->func)(parser, p->name, RSTRING_PTR(val));
 		break;
 	    }
 	} while (++p < magic_comments + numberof(magic_comments));

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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