ruby-changes:26036
From: naruse <ko1@a...>
Date: Sat, 1 Dec 2012 04:10:47 +0900 (JST)
Subject: [ruby-changes:26036] naruse:r38093 (trunk): * parse.y (parser.utf8): remove unused property.
naruse 2012-12-01 04:10:17 +0900 (Sat, 01 Dec 2012) New Revision: 38093 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38093 Log: * parse.y (parser.utf8): remove unused property. * parse.y (UTF8_ENC): remove unused macro. * parse.y (parser_tokadd_utf8): use rb_utf8_encoding() directly. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 38092) +++ ChangeLog (revision 38093) @@ -1,3 +1,11 @@ +Sat Dec 1 04:07:57 2012 NARUSE, Yui <naruse@r...> + + * parse.y (parser.utf8): remove unused property. + + * parse.y (UTF8_ENC): remove unused macro. + + * parse.y (parser_tokadd_utf8): use rb_utf8_encoding() directly. + Sat Dec 1 03:49:45 2012 KOSAKI Motohiro <kosaki.motohiro@g...> * lib/sync.rb (Sync_m#sync_synchronize): add Thread.async_interrupt_timing Index: parse.y =================================================================== --- parse.y (revision 38092) +++ parse.y (revision 38093) @@ -267,7 +267,6 @@ char *parser_ruby_sourcefile; /* current source file */ int parser_ruby_sourceline; /* current line no. */ rb_encoding *enc; - rb_encoding *utf8; int parser_yydebug; @@ -296,8 +295,6 @@ #endif }; -#define UTF8_ENC() (parser->utf8 ? parser->utf8 : \ - (parser->utf8 = rb_utf8_encoding())) #define STR_NEW(p,n) rb_enc_str_new((p),(n),parser->enc) #define STR_NEW0() rb_enc_str_new(0,0,parser->enc) #define STR_NEW2(p) rb_enc_str_new((p),strlen(p),parser->enc) @@ -5687,7 +5684,7 @@ tokcopy((int)numlen); } else if (codepoint >= 0x80) { - *encp = UTF8_ENC(); + *encp = rb_utf8_encoding(); if (string_literal) tokaddmbc(codepoint, *encp); } else if (string_literal) { @@ -5714,7 +5711,7 @@ tokcopy(4); } else if (codepoint >= 0x80) { - *encp = UTF8_ENC(); + *encp = rb_utf8_encoding(); if (string_literal) tokaddmbc(codepoint, *encp); } else if (string_literal) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/