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

ruby-changes:55865

From: Nobuyoshi <ko1@a...>
Date: Mon, 27 May 2019 13:59:30 +0900 (JST)
Subject: [ruby-changes:55865] Nobuyoshi Nakada: ea6e284d86 (trunk): parse.y: removed "parser_" prefix from tokadd_utf8

https://git.ruby-lang.org/ruby.git/commit/?id=ea6e284d86

From ea6e284d86ccbc2d1ed5637acd0940a12b58b672 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 27 May 2019 12:22:11 +0900
Subject: parse.y: removed "parser_" prefix from tokadd_utf8


diff --git a/parse.y b/parse.y
index f22b862..e5a0e39 100644
--- a/parse.y
+++ b/parse.y
@@ -6180,8 +6180,8 @@ tokadd_codepoint(struct parser_params *p, rb_encoding **encp, https://github.com/ruby/ruby/blob/trunk/parse.y#L6180
 
 /* return value is for ?\u3042 */
 static void
-parser_tokadd_utf8(struct parser_params *p, rb_encoding **encp,
-		   int string_literal, int symbol_literal, int regexp_literal)
+tokadd_utf8(struct parser_params *p, rb_encoding **encp,
+	    int string_literal, int symbol_literal, int regexp_literal)
 {
     /*
      * If string_literal is true, then we allow multiple codepoints
@@ -6567,9 +6567,9 @@ tokadd_string(struct parser_params *p, https://github.com/ruby/ruby/blob/trunk/parse.y#L6567
 		    tokadd(p, '\\');
 		    break;
 		}
-		parser_tokadd_utf8(p, enc, term,
-				   func & STR_FUNC_SYMBOL,
-				   func & STR_FUNC_REGEXP);
+		tokadd_utf8(p, enc, term,
+			    func & STR_FUNC_SYMBOL,
+			    func & STR_FUNC_REGEXP);
 		continue;
 
 	      default:
@@ -8063,7 +8063,7 @@ parse_qmark(struct parser_params *p, int space_seen) https://github.com/ruby/ruby/blob/trunk/parse.y#L8063
 	if (peek(p, 'u')) {
 	    nextc(p);
 	    enc = rb_utf8_encoding();
-	    parser_tokadd_utf8(p, &enc, -1, 0, 0);
+	    tokadd_utf8(p, &enc, -1, 0, 0);
 	}
 	else if (!lex_eol_p(p) && !(c = *p->lex.pcur, ISASCII(c))) {
 	    nextc(p);
-- 
cgit v0.10.2


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

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