summaryrefslogtreecommitdiff
path: root/tool/enc-unicode.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 17:54:14 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 17:54:14 +0000
commit06d483006c727c922b8a099e66b4a3dfd8788270 (patch)
treeddba6fa692fa49f9a212795da9b25b013c66cfa8 /tool/enc-unicode.rb
parentde08418fc65e1d1dfd759715df3f8945b32e1c33 (diff)
* Makefile.in: don't remove macros. now name2ctype uses macros.
* tool/enc-unicode.rb: add comment why it uses Hash#index. * enc/unicode/{name2ctype.kwd,name2ctype.src,name2ctype.h.blt}: update to follow the current name2ctype.h. FYI current Unicode version is 6.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/enc-unicode.rb')
-rwxr-xr-xtool/enc-unicode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb
index bce5789..7584f6e 100755
--- a/tool/enc-unicode.rb
+++ b/tool/enc-unicode.rb
@@ -231,7 +231,7 @@ $const_cache = {}
# the group
def make_const(prop, data, name)
puts "\n/* '#{prop}': #{name} */"
- if origprop = $const_cache.index(data)
+ if origprop = $const_cache.index(data) # don't use Hash#key because it is 1.9 feature
puts "#define CR_#{prop} CR_#{origprop}"
else
$const_cache[prop] = data