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

ruby-changes:48858

From: nobu <ko1@a...>
Date: Sat, 2 Dec 2017 12:12:54 +0900 (JST)
Subject: [ruby-changes:48858] nobu:r60976 (trunk): enc-unicode.rb: for gperf 3.1

nobu	2017-12-02 12:12:50 +0900 (Sat, 02 Dec 2017)

  New Revision: 60976

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

  Log:
    enc-unicode.rb: for gperf 3.1
    
    * tool/enc-unicode.rb: support for gperf 3.1, which defines length
      arguments as `size_t` but a local variable as `unsigned int`.

  Modified files:
    trunk/tool/enc-unicode.rb
Index: tool/enc-unicode.rb
===================================================================
--- tool/enc-unicode.rb	(revision 60975)
+++ tool/enc-unicode.rb	(revision 60976)
@@ -539,6 +539,7 @@ if header https://github.com/ruby/ruby/blob/trunk/tool/enc-unicode.rb#L539
       f.each {|line|
         line.gsub!(/\(int\)\((?:long|size_t)\)&\(\(struct uniname2ctype_pool_t \*\)0\)->uniname2ctype_pool_(str\d+),\s+/,
                    'uniname2ctype_offset(\1), ')
+        line.sub!(/^(uniname2ctype_(hash|p) *\(.* )size_t /, '\1unsigned int ')
         puts line
       }
     }

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

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