summaryrefslogtreecommitdiff
path: root/tool/instruction.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-02 00:47:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-02 00:47:25 +0000
commit862c62b4e2bd713c987c7d30046bfa5cec630b20 (patch)
tree1f6ffe4e09913c7191c02263602e1d48e21868dd /tool/instruction.rb
parente6aac32abfafcbf9e3dd639694d5016bbaf4fd0d (diff)
tool/instruction.rb: remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/instruction.rb')
-rwxr-xr-xtool/instruction.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/instruction.rb b/tool/instruction.rb
index 78037f9..5ef6e66 100755
--- a/tool/instruction.rb
+++ b/tool/instruction.rb
@@ -1000,7 +1000,7 @@ class RubyVM
ot = opes.map{|type, var|
TYPE_CHARS.fetch(op2typesig(type))
}
- operands_info << "\"#{ot.join}\"" << ", \n"
+ operands_info << "\"#{ot.join}\"" << ",\n"
num = opes.size + 1
operands_num_info << " #{num},\n"
@@ -1033,7 +1033,7 @@ class RubyVM
i=0
insns = build_string do
@insns.each{|insn|
- commit " %-30s = %d,\n" % ["BIN(#{insn.name})", i]
+ commit " %-30s = %d," % ["BIN(#{insn.name})", i]
i+=1
}
end
@@ -1161,14 +1161,14 @@ class RubyVM
uni_insn, uni_insns = *unif
uni_insns = uni_insns[1..-1]
unif_insns_each << "static const int UNIFIED_#{insn.name}_#{i}[] = {" +
- " BIN(#{uni_insn.name}), #{uni_insns.size + 2}, \n " +
+ " BIN(#{uni_insn.name}), #{uni_insns.size + 2},\n " +
uni_insns.map{|e| "BIN(#{e.name})"}.join(", ") + "};\n"
}
else
end
if size > 0
- unif_insns << "static const int *const UNIFIED_#{insn.name}[] = {(int *)#{size+1}, \n"
+ unif_insns << "static const int *const UNIFIED_#{insn.name}[] = {(int *)#{size+1},\n"
unif_insns << (0...size).map{|e| " UNIFIED_#{insn.name}_#{e}"}.join(",\n") + "};\n"
unif_insns_data << " UNIFIED_#{insn.name}"
else