mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/matrix.rb: resolve 'ruby -w' warnings.
* lib/irb/locale.rb: resolve 'ruby -w' warnings. * lib/irb/multi-irb.rb: resolve 'ruby -w' warnings. * lib/irb/ruby-lex.rb: fix problem for "\\M-\\..." and "\\C-\\..." and resolve 'ruby -w' warnings. * lib/irb/ruby-token.rb: fix typo * lib/shell/command-processor.rb: resolve 'ruby -w' warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cf37626401
commit
cc13bb43bc
7 changed files with 27 additions and 13 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
Thu Jun 28 00:21:28 2001 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||
|
||||
* lib/matrix.rb: resolve 'ruby -w' warnings.
|
||||
|
||||
* lib/irb/locale.rb: resolve 'ruby -w' warnings.
|
||||
|
||||
* lib/irb/multi-irb.rb: resolve 'ruby -w' warnings.
|
||||
|
||||
* lib/irb/ruby-lex.rb: fix problem for "\\M-\\..." and "\\C-\\..."
|
||||
and resolve 'ruby -w' warnings.
|
||||
|
||||
* lib/irb/ruby-token.rb: fix typo
|
||||
|
||||
* lib/shell/command-processor.rb: resolve 'ruby -w' warnings.
|
||||
|
||||
Wed Jun 27 08:53:26 2001 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/pop.rb: new methods POP3.auth_only, POP3#auth_only
|
||||
|
|
|
@ -62,7 +62,7 @@ module IRB
|
|||
|
||||
def print(*opts)
|
||||
ary = opts.collect{|opt| String(opt)}
|
||||
super *ary
|
||||
super(*ary)
|
||||
end
|
||||
|
||||
def printf(*opts)
|
||||
|
@ -72,7 +72,7 @@ module IRB
|
|||
|
||||
def puts(*opts)
|
||||
ary = opts.collect{|opt| String(opts)}
|
||||
super *ary
|
||||
super(*ary)
|
||||
end
|
||||
|
||||
def require(file, priv = nil)
|
||||
|
|
|
@ -954,7 +954,7 @@ class RubyLex
|
|||
ungetc
|
||||
else
|
||||
if (ch = getc) == "\\" #"
|
||||
read_escape(chrs)
|
||||
read_escape
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -962,7 +962,7 @@ class RubyLex
|
|||
if ch == "C" and (ch = getc) != "-"
|
||||
ungetc
|
||||
elsif (ch = getc) == "\\" #"
|
||||
read_escape(chrs)
|
||||
read_escape
|
||||
end
|
||||
else
|
||||
# other characters
|
||||
|
|
|
@ -218,7 +218,7 @@ module RubyToken
|
|||
|
||||
[:TkBACKQUOTE, TkOp, "`"],
|
||||
|
||||
[:TkASSGIN, Token, "="],
|
||||
[:TkASSIGN, Token, "="],
|
||||
[:TkDOT, Token, "."],
|
||||
[:TkLPAREN, Token, "("], #(exp)
|
||||
[:TkLBRACK, Token, "["], #[arry]
|
||||
|
|
|
@ -219,7 +219,6 @@ class Matrix
|
|||
row[j] = values[j]
|
||||
row
|
||||
}
|
||||
self
|
||||
rows(rows, false)
|
||||
end
|
||||
|
||||
|
@ -897,7 +896,7 @@ class Vector
|
|||
|
||||
# ARITHMETIC
|
||||
|
||||
def *(x) "is matrix or number"
|
||||
def *(x)
|
||||
case x
|
||||
when Numeric
|
||||
els = @elements.collect{|e| e * x}
|
||||
|
|
|
@ -241,7 +241,7 @@ class Shell
|
|||
|
||||
def transact(&block)
|
||||
begin
|
||||
@shell.instance_eval &block
|
||||
@shell.instance_eval(&block)
|
||||
ensure
|
||||
check_point
|
||||
end
|
||||
|
@ -251,7 +251,7 @@ class Shell
|
|||
# internal commands
|
||||
#
|
||||
def out(dev = STDOUT, &block)
|
||||
dev.print transact &block
|
||||
dev.print transact(&block)
|
||||
end
|
||||
|
||||
def echo(*strings)
|
||||
|
|
Loading…
Reference in a new issue