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

ruby-changes:33202

From: nari <ko1@a...>
Date: Fri, 7 Mar 2014 14:53:17 +0900 (JST)
Subject: [ruby-changes:33202] nari:r45281 (trunk): * parse.y (ENC_SINGLE): Unused macro removed.

nari	2014-03-07 14:53:11 +0900 (Fri, 07 Mar 2014)

  New Revision: 45281

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

  Log:
    * parse.y (ENC_SINGLE): Unused macro removed.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45280)
+++ ChangeLog	(revision 45281)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Mar  7 14:48:17 2014  Narihiro Nakamura  <authornari@g...>
+
+	* parse.y (ENC_SINGLE): Unused macro removed.
+
 Fri Mar  7 12:06:19 2014  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* test/openssl/test_ssl.rb: Reuse TLS default options from
Index: parse.y
===================================================================
--- parse.y	(revision 45280)
+++ parse.y	(revision 45281)
@@ -301,8 +301,7 @@ struct parser_params { https://github.com/ruby/ruby/blob/trunk/parse.y#L301
 #define STR_NEW0() rb_enc_str_new(0,0,current_enc)
 #define STR_NEW2(p) rb_enc_str_new((p),strlen(p),current_enc)
 #define STR_NEW3(p,n,e,func) parser_str_new((p),(n),(e),(func),current_enc)
-#define ENC_SINGLE(cr) ((cr)==ENC_CODERANGE_7BIT)
-#define TOK_INTERN(mb) rb_intern3(tok(), toklen(), current_enc)
+#define TOK_INTERN() rb_intern3(tok(), toklen(), current_enc)
 
 static int parser_yyerror(struct parser_params*, const char*);
 #define yyerror(msg) parser_yyerror(parser, (msg))
@@ -8150,7 +8149,7 @@ parser_yylex(struct parser_params *parse https://github.com/ruby/ruby/blob/trunk/parse.y#L8149
 		if (IS_LABEL_SUFFIX(0)) {
 		    lex_state = EXPR_BEG;
 		    nextc();
-		    set_yylval_name(TOK_INTERN(!ENC_SINGLE(mb)));
+		    set_yylval_name(TOK_INTERN());
 		    return tLABEL;
 		}
 	    }
@@ -8208,7 +8207,7 @@ parser_yylex(struct parser_params *parse https://github.com/ruby/ruby/blob/trunk/parse.y#L8207
 	    }
 	}
         {
-            ID ident = TOK_INTERN(!ENC_SINGLE(mb));
+            ID ident = TOK_INTERN();
 
             set_yylval_name(ident);
             if (!IS_lex_state_for(last_state, EXPR_DOT|EXPR_FNAME) &&

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

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