aboutsummaryrefslogtreecommitdiffstats
path: root/tool/enc-unicode.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-02 03:12:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-02 03:12:50 +0000
commit8b180dd74ef7604bc896275ce2a13a1d8c2c2565 (patch)
treedf5b6900b276bf5a7337dd741e6fda619bc84f25 /tool/enc-unicode.rb
parentd209b4c0a2df0e20c65791bfe4dbdaccb76744fc (diff)
downloadruby-8b180dd74ef7604bc896275ce2a13a1d8c2c2565.tar.gz
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`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/enc-unicode.rb')
-rwxr-xr-xtool/enc-unicode.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb
index d82f1dbdd1..222573b3a8 100755
--- a/tool/enc-unicode.rb
+++ b/tool/enc-unicode.rb
@@ -539,6 +539,7 @@ if header
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
}
}