tool: fixed shadowing variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
36bc8c0b28
commit
ecedebab2c
@ -67,6 +67,6 @@ class Checksum
|
|||||||
def self.update(argv)
|
def self.update(argv)
|
||||||
k = new(VPath.new)
|
k = new(VPath.new)
|
||||||
k.source, k.target, *argv = k.def_options.parse(*argv)
|
k.source, k.target, *argv = k.def_options.parse(*argv)
|
||||||
k.update {|k| yield(k, *argv)}
|
k.update {|_| yield(_, *argv)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -590,7 +590,7 @@ install?(:local, :comm, :man) do
|
|||||||
STDIN.reopen(f)
|
STDIN.reopen(f)
|
||||||
begin
|
begin
|
||||||
destfile << suffix
|
destfile << suffix
|
||||||
IO.popen(compress) {|f| f.read}
|
IO.popen(compress, &:read)
|
||||||
ensure
|
ensure
|
||||||
STDIN.reopen(stdin)
|
STDIN.reopen(stdin)
|
||||||
stdin.close
|
stdin.close
|
||||||
|
@ -145,7 +145,7 @@ class ActionMap
|
|||||||
else
|
else
|
||||||
b = $1.to_i(16)
|
b = $1.to_i(16)
|
||||||
e = $2.to_i(16)
|
e = $2.to_i(16)
|
||||||
b.upto(e) {|c| set[c] = true }
|
b.upto(e) {|_| set[_] = true }
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
i = nil
|
i = nil
|
||||||
@ -297,10 +297,10 @@ class ActionMap
|
|||||||
raise ArgumentError, "ambiguous pattern: #{prefix}" if min.length != prefix.length
|
raise ArgumentError, "ambiguous pattern: #{prefix}" if min.length != prefix.length
|
||||||
h[action] = true
|
h[action] = true
|
||||||
end
|
end
|
||||||
region_rects.each {|min, max, action|
|
for min, _, action in region_rects
|
||||||
raise ArgumentError, "ambiguous pattern: #{prefix}" if !min.empty?
|
raise ArgumentError, "ambiguous pattern: #{prefix}" if !min.empty?
|
||||||
h[action] = true
|
h[action] = true
|
||||||
}
|
end
|
||||||
tree = Action.new(block.call(prefix, h.keys))
|
tree = Action.new(block.call(prefix, h.keys))
|
||||||
h.clear
|
h.clear
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user