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

ruby-changes:54012

From: duerst <ko1@a...>
Date: Thu, 6 Dec 2018 09:05:15 +0900 (JST)
Subject: [ruby-changes:54012] duerst:r66232 (trunk): remove obsolete data from unicode.c

duerst	2018-12-06 09:05:08 +0900 (Thu, 06 Dec 2018)

  New Revision: 66232

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

  Log:
    remove obsolete data from unicode.c
    
    * unicode.c: Remove the arrays onigenc_unicode_GCB_ranges_GAZ,
      onigenc_unicode_GCB_ranges_E_Base, and onigenc_unicode_GCB_ranges_Emoji,
      because they are not needed anymore for Unicode 11.0.0.
    
    * regparse.c: Remove external declarations for above arrays.

  Modified files:
    trunk/enc/unicode.c
    trunk/regparse.c
Index: enc/unicode.c
===================================================================
--- enc/unicode.c	(revision 66231)
+++ enc/unicode.c	(revision 66232)
@@ -793,32 +793,6 @@ SpecialsCopy: https://github.com/ruby/ruby/blob/trunk/enc/unicode.c#L793
   return (int )(to - to_start);
 }
 
-/* These GAZ/E_Base/Emoji tables are for extended grapheme cluster */
-/* TODO: generate these 3 tables from Unicode data */
-const OnigCodePoint
-onigenc_unicode_GCB_ranges_GAZ[] = {
-    0,
-};
-
-const OnigCodePoint
-onigenc_unicode_GCB_ranges_E_Base[] = {
-    5,
-    0x1F3F3, 0x1F3F3, /* WAVING WHITE FLAG */
-    0x1F441, 0x1F441, /* EYE */
-    0x1F46F, 0x1F46F, /* WOMAN WITH BUNNY EARS */
-    0x1F93C, 0x1F93C, /* WRESTLERS */
-    0x1F9DE, 0x1F9DF, /* GENIE, ZOMBIE */
-};
-
-const OnigCodePoint
-onigenc_unicode_GCB_ranges_Emoji[] = {
-    4,
-    0x2640, 0x2640, /* FEMALE SIGN */
-    0x2642, 0x2642, /* MALE SIGN */
-    0x2695, 0x2696, /* SCALES */
-    0x2708, 0x2708, /* AIRPLANE */
-};
-
 #if 0
 const char onigenc_unicode_version_string[] =
 #ifdef ONIG_UNICODE_VERSION_STRING
Index: regparse.c
===================================================================
--- regparse.c	(revision 66231)
+++ regparse.c	(revision 66232)
@@ -5718,10 +5718,6 @@ add_property_to_cc(CClassNode* cc, const https://github.com/ruby/ruby/blob/trunk/regparse.c#L5718
   return add_ctype_to_cc(cc, ctype, not, 0, env);
 }
 
-extern const OnigCodePoint onigenc_unicode_GCB_ranges_GAZ[];
-extern const OnigCodePoint onigenc_unicode_GCB_ranges_E_Base[];
-extern const OnigCodePoint onigenc_unicode_GCB_ranges_Emoji[];
-
 /*
  * helper methods for node_extended_grapheme_cluster (/\X/)
  */

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

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