ruby-changes:15068
From: akr <ko1@a...>
Date: Tue, 16 Mar 2010 04:10:51 +0900 (JST)
Subject: [ruby-changes:15068] Ruby:r26943 (trunk): * tool/transcode-tblgen.rb: more info in generating macro names.
akr 2010-03-16 04:10:29 +0900 (Tue, 16 Mar 2010) New Revision: 26943 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26943 Log: * tool/transcode-tblgen.rb: more info in generating macro names. Modified files: trunk/ChangeLog trunk/tool/transcode-tblgen.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 26942) +++ ChangeLog (revision 26943) @@ -1,3 +1,7 @@ +Tue Mar 16 04:05:13 2010 Tanaka Akira <akr@f...> + + * tool/transcode-tblgen.rb: more info in generating macro names. + Mon Mar 15 21:58:03 2010 Tanaka Akira <akr@f...> * tool/transcode-tblgen.rb: ActionMap#each_firstbyte inlined. Index: tool/transcode-tblgen.rb =================================================================== --- tool/transcode-tblgen.rb (revision 26942) +++ tool/transcode-tblgen.rb (revision 26943) @@ -486,7 +486,7 @@ else name_hint2 = nil if name_hint - name_hint2 = "#{name_hint}_#{'%02X' % byte_min}" + name_hint2 = "#{name_hint}_#{byte_min == byte_max ? '%02X' % byte_min : '%02Xto%02X' % [byte_min, byte_max]}" end v = "/*BYTE_LOOKUP*/" + rest.gennode(bytes_code, words_code, name_hint2) byte_min.upto(byte_max) {|byte| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/