Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* 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
  • Loading branch information...
commit 06d483006c727c922b8a099e66b4a3dfd8788270 1 parent de08418
@nurse nurse authored
View
10 ChangeLog
@@ -1,3 +1,13 @@
+Thu Jun 14 02:53:30 2012 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * 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.
+
Thu Jun 14 00:16:59 2012 Akinori MUSHA <knu@iDaemons.org>
* lib/net/http/responses.rb, lib/webrick/httpstatus.rb: Add HTTP
View
2  Makefile.in
@@ -294,7 +294,7 @@ enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd
trap '$(RM) $@-1.h $@-2.h' 0 && \
set -x; \
sed '/^#ifdef USE_UNICODE_PROPERTIES/,/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-1.h && \
- sed -e '/^#ifdef USE_UNICODE_PROPERTIES/,/^#endif/{' -e '/^#/d' -e '}' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-2.h && \
+ sed '/^#ifdef USE_UNICODE_PROPERTIES/d;/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-2.h && \
diff -DUSE_UNICODE_PROPERTIES $@-1.h $@-2.h > $@.tmp || :; \
$(MV) $@.tmp $@ && \
$(CP) $? $(?:.kwd=.src) && \
View
40,230 enc/unicode/name2ctype.h.blt
22,545 additions, 17,685 deletions not shown
View
36,987 enc/unicode/name2ctype.kwd
20,497 additions, 16,490 deletions not shown
View
36,987 enc/unicode/name2ctype.src
20,497 additions, 16,490 deletions not shown
View
2  tool/enc-unicode.rb
@@ -231,7 +231,7 @@ def parse_block(data)
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.