diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | tool/transcode-tblgen.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Mar 16 04:05:13 2010 Tanaka Akira <[email protected]> + + * tool/transcode-tblgen.rb: more info in generating macro names. + Mon Mar 15 21:58:03 2010 Tanaka Akira <[email protected]> * tool/transcode-tblgen.rb: ActionMap#each_firstbyte inlined. diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb index 31c4ea0521..2636ed1a8f 100755 --- a/tool/transcode-tblgen.rb +++ b/tool/transcode-tblgen.rb @@ -486,7 +486,7 @@ End 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| |