summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/asm_parse.rb6
-rwxr-xr-xtool/eval.rb2
-rwxr-xr-xtool/instruction.rb20
-rwxr-xr-xtool/mdoc2man.rb6
-rwxr-xr-xtool/strip-rdoc.rb2
-rwxr-xr-xtool/transcode-tblgen.rb2
6 files changed, 19 insertions, 19 deletions
diff --git a/tool/asm_parse.rb b/tool/asm_parse.rb
index f3d7f73c99..e39580c1a1 100755
--- a/tool/asm_parse.rb
+++ b/tool/asm_parse.rb
@@ -7,7 +7,7 @@ while line = ARGF.gets
puts line
size = 0
len = 0
-
+
while line = ARGF.gets
if /\[start\] (\w+)/ =~ line
puts "\t; # length: #{len}, size: #{size}"
@@ -29,8 +29,8 @@ while line = ARGF.gets
size += 1
end
end
-
-
+
+
if /__NEXT_INSN__/ !~ line && /\[end \] (\w+)/ =~ line
ename = $1
if name != ename
diff --git a/tool/eval.rb b/tool/eval.rb
index ced244a4da..18e645a314 100755
--- a/tool/eval.rb
+++ b/tool/eval.rb
@@ -86,7 +86,7 @@ def parse_result data
else
raise "not a data"
end
-
+
end
if /benchmark summary/ =~ line
flag = true
diff --git a/tool/instruction.rb b/tool/instruction.rb
index 4fd2127be2..9dc7604170 100755
--- a/tool/instruction.rb
+++ b/tool/instruction.rb
@@ -35,7 +35,7 @@ class RubyVM
@sc << sci
sci.set_sc
end
-
+
attr_reader :name, :opes, :pops, :rets
attr_reader :body, :comm
attr_reader :nextsc, :pushsc
@@ -45,11 +45,11 @@ class RubyVM
attr_reader :is_sc
attr_reader :tvars
attr_reader :sp_inc
-
+
def set_sc
@is_sc = true
end
-
+
def add_unif insns
@unifs << insns
end
@@ -84,7 +84,7 @@ class RubyVM
"return depth + #{rets.size - pops.size};"
end
end
-
+
def inspect
"#<Instruction:#{@name}>"
end
@@ -113,7 +113,7 @@ class RubyVM
attr_reader :vpath
attr_reader :destdir
-
+
%w[use_const verbose].each do |attr|
attr_reader attr
alias_method "#{attr}?", attr
@@ -455,7 +455,7 @@ class RubyVM
rv = rpvars[1]
"#define #{pv[1]} #{rv[1]}"
}.join("\n") +
- "\n" +
+ "\n" +
redef_vars.map{|v, type|
"#define #{v} #{v}_#{i}"
}.join("\n") + "\n" +
@@ -693,7 +693,7 @@ class RubyVM
}
}
end
-
+
def make_header_operands insn
comment " /* declare and get from iseq */"
@@ -718,7 +718,7 @@ class RubyVM
# ops.join
commit ops.reverse
end
-
+
def make_header_default_operands insn
vars = insn.defopes
@@ -907,7 +907,7 @@ class RubyVM
commit " ELABEL_PTR(#{insn.name}),\n"
}
end
-
+
ERB.new(vpath.read('template/vmtc.inc.tmpl')).result(binding)
end
end
@@ -1156,7 +1156,7 @@ class RubyVM
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"
diff --git a/tool/mdoc2man.rb b/tool/mdoc2man.rb
index 0922474b47..274f2d5d08 100755
--- a/tool/mdoc2man.rb
+++ b/tool/mdoc2man.rb
@@ -10,7 +10,7 @@
### Copyright (c) 2001 Mark D. Roth
### Copyright (c) 2002, 2003 Akinori MUSHA
### All rights reserved.
-###
+###
### Redistribution and use in source and binary forms, with or without
### modification, are permitted provided that the following conditions
### are met:
@@ -26,7 +26,7 @@
### 4. The University nor the names of their
### contributors may be used to endorse or promote products derived from
### this software without specific prior written permission.
-###
+###
### THIS SOFTWARE IS PROVIDED BY THE TRUSTEES AND CONTRIBUTORS ``AS IS'' AND
### ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
### IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -210,7 +210,7 @@ class Mdoc2Man
retval << 'and ' unless retval.empty?
retval << @refauthors.shift
- # title
+ # title
retval << ', \\fI' << @reftitle << '\\fP'
# issue
diff --git a/tool/strip-rdoc.rb b/tool/strip-rdoc.rb
index dc4c3dc5dc..449f9b71a8 100755
--- a/tool/strip-rdoc.rb
+++ b/tool/strip-rdoc.rb
@@ -1,7 +1,7 @@
#!ruby
source = ARGF.read
-source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment|
+source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment|
marker, comment = $1, $2
next "/**#{comment}*/" unless /^\s*\*\s?\-\-\s*$/ =~ comment
doxybody = nil
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 833fc219a8..dc1f6ea911 100755
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -397,7 +397,7 @@ class ActionMap
end
def inspect
- "\#<#{self.class}:" +
+ "\#<#{self.class}:" +
@tree.inspect +
">"
end