зеркало из https://github.com/github/ruby.git
* tool/transcode-tblgen.rb: more info in generating macro names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2ce0d5db96
Коммит
e3a231d3d0
|
@ -1,3 +1,7 @@
|
|||
Tue Mar 16 04:05:13 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* tool/transcode-tblgen.rb: more info in generating macro names.
|
||||
|
||||
Mon Mar 15 21:58:03 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* tool/transcode-tblgen.rb: ActionMap#each_firstbyte inlined.
|
||||
|
|
|
@ -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|
|
||||
|
|
Загрузка…
Ссылка в новой задаче