зеркало из https://github.com/github/ruby.git
bare_instructions.rb: sort attributes [ci skip]
This enhances stability of the generated source code (namely insns_info.inc) across attribute insertion / deletion. It does not change the compiled binary at all; just a bit of readability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
437dd8815b
Коммит
08e47ab98a
|
@ -58,7 +58,9 @@ class RubyVM::BareInstructions
|
|||
end
|
||||
|
||||
def attributes
|
||||
return @attrs.values
|
||||
return @attrs \
|
||||
. sort_by {|k, _| k } \
|
||||
. map {|_, v| v }
|
||||
end
|
||||
|
||||
def width
|
||||
|
|
Загрузка…
Ссылка в новой задаче