[前][次][番号順一覧][スレッド一覧]

ruby-changes:36152

From: nobu <ko1@a...>
Date: Sun, 2 Nov 2014 09:47:40 +0900 (JST)
Subject: [ruby-changes:36152] nobu:r48233 (trunk): tool/instruction.rb: remove trailing spaces

nobu	2014-11-02 09:47:25 +0900 (Sun, 02 Nov 2014)

  New Revision: 48233

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48233

  Log:
    tool/instruction.rb: remove trailing spaces

  Modified files:
    trunk/tool/instruction.rb
Index: tool/instruction.rb
===================================================================
--- tool/instruction.rb	(revision 48232)
+++ tool/instruction.rb	(revision 48233)
@@ -1000,7 +1000,7 @@ class RubyVM https://github.com/ruby/ruby/blob/trunk/tool/instruction.rb#L1000
         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 https://github.com/ruby/ruby/blob/trunk/tool/instruction.rb#L1033
       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 https://github.com/ruby/ruby/blob/trunk/tool/instruction.rb#L1161
           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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]