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
This commit is contained in:
parent
d209b4c0a2
commit
8b180dd74e
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user