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

ruby-changes:43472

From: nobu <ko1@a...>
Date: Thu, 30 Jun 2016 17:24:17 +0900 (JST)
Subject: [ruby-changes:43472] nobu:r55546 (trunk): case-folding.rb: define version numbers

nobu	2016-06-30 17:24:11 +0900 (Thu, 30 Jun 2016)

  New Revision: 55546

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

  Log:
    case-folding.rb: define version numbers
    
    * enc/unicode/case-folding.rb: define Unicode version numbers.

  Modified files:
    trunk/enc/unicode/case-folding.rb
    trunk/enc/unicode/casefold.h
Index: enc/unicode/case-folding.rb
===================================================================
--- enc/unicode/case-folding.rb	(revision 55545)
+++ enc/unicode/case-folding.rb	(revision 55546)
@@ -155,6 +155,12 @@ class CaseFolding https://github.com/ruby/ruby/blob/trunk/enc/unicode/case-folding.rb#L155
     dest.print("/* DO NOT EDIT THIS FILE. */\n")
     dest.print("/* Generated by enc/unicode/case-folding.rb */\n\n")
 
+    dest.print("#define ONIG_UNICODE_VERSION_STRING #{version.dump}\n")
+    %w[MAJOR MINOR TEENY].zip(version.scan(/\d+/)) do |n, v|
+      dest.print("#define ONIG_UNICODE_VERSION_#{n} #{v}\n")
+    end
+    dest.print("\n")
+
     # print folding data
 
     # CaseFold + CaseFold_Locale
Index: enc/unicode/casefold.h
===================================================================
--- enc/unicode/casefold.h	(revision 55545)
+++ enc/unicode/casefold.h	(revision 55546)
@@ -1,6 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/enc/unicode/casefold.h#L1
 /* DO NOT EDIT THIS FILE. */
 /* Generated by enc/unicode/case-folding.rb */
 
+#define ONIG_UNICODE_VERSION_STRING "8.0.0"
+#define ONIG_UNICODE_VERSION_MAJOR 8
+#define ONIG_UNICODE_VERSION_MINOR 0
+#define ONIG_UNICODE_VERSION_TEENY 0
+
 static const CaseFold_11_Type CaseFold_11_Table[] = {
 #define CaseFold (*(CaseFold_11_Type (*)[1319])(CaseFold_11_Table+0))
   {0x0041, {1|F|D, {0x0061}}},

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

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