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

ruby-changes:42946

From: duerst <ko1@a...>
Date: Mon, 16 May 2016 20:00:35 +0900 (JST)
Subject: [ruby-changes:42946] duerst:r55020 (trunk): * enc/unicode.h: Additional uses of ONIG_CASE_MAPPING compilation switch

duerst	2016-05-16 20:00:29 +0900 (Mon, 16 May 2016)

  New Revision: 55020

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

  Log:
    * enc/unicode.h: Additional uses of ONIG_CASE_MAPPING compilation switch

  Modified files:
    trunk/ChangeLog
    trunk/enc/unicode.c
Index: enc/unicode.c
===================================================================
--- enc/unicode.c	(revision 55019)
+++ enc/unicode.c	(revision 55020)
@@ -137,6 +137,7 @@ code3_equal(const OnigCodePoint *x, cons https://github.com/ruby/ruby/blob/trunk/enc/unicode.c#L137
   return 1;
 }
 
+#ifdef ONIG_CASE_MAPPING
 /* macros related to ONIGENC_CASE flags */
 /* defined here because not used in other files */
 #define ONIGENC_CASE_SPECIALS       (ONIGENC_CASE_TITLECASE|ONIGENC_CASE_IS_TITLECASE|ONIGENC_CASE_UP_SPECIAL|ONIGENC_CASE_DOWN_SPECIAL)
@@ -161,9 +162,11 @@ code3_equal(const OnigCodePoint *x, cons https://github.com/ruby/ruby/blob/trunk/enc/unicode.c#L162
 #define IT ONIGENC_CASE_IS_TITLECASE
 #define I(n) OnigSpecialIndexEncode(n)
 #define L(n) SpecialsLengthEncode(n)
+#endif   /* ONIG_CASE_MAPPING */
 
 #include "enc/unicode/casefold.h"
 
+#ifdef ONIG_CASE_MAPPING
 #undef U
 #undef D
 #undef F
@@ -173,6 +176,7 @@ code3_equal(const OnigCodePoint *x, cons https://github.com/ruby/ruby/blob/trunk/enc/unicode.c#L176
 #undef IT
 #undef I
 #undef L
+#endif   /* ONIG_CASE_MAPPING */
 
 #include "enc/unicode/name2ctype.h"
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55019)
+++ ChangeLog	(revision 55020)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon May 16 20:00:30 2016  Martin Duerst  <duerst@i...>
+
+	* enc/unicode.h: Additional uses of ONIG_CASE_MAPPING compilation switch
+
 Mon May 16 19:46:33 2016  Martin Duerst  <duerst@i...>
 
 	* include/ruby/oniguruma.h: Introducing ONIG_CASE_MAPPING compilation

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

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