diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-01 13:04:35 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-01 13:04:35 +0000 |
| commit | 1ecd98811fb708f215e592087f36811210554132 (patch) | |
| tree | 8e3ffba4898afc1d4b9f82162d46157d0cf0a93f /lib | |
| parent | c90fa199ce2953404a0a44c52297cbe862ccbf62 (diff) | |
| download | ruby-1ecd98811fb708f215e592087f36811210554132.tar.gz ruby-1ecd98811fb708f215e592087f36811210554132.tar.xz ruby-1ecd98811fb708f215e592087f36811210554132.zip | |
* eval.c (rb_call_super): should call method_missing if super is
called from Kernel method.
* eval.c (exec_under): frame during eval should preserve external
information.
* configure.in: use proper option for Sun linker. A patch from
Shinya Kuwamura <kuwa@labs.fujitsu.com>. [ruby-dev:27603]
* numeric.c (fix_rshift): RDoc fix. [ruby-core:6351]
* util.h (strtod): add #undef for platforms defines strtod()
macro. [ruby-dev:27563]
* ext/etc/etc.c: document update from mathew <meta@pobox.com>.
[ruby-core:06473]
* ext/fcntl/fcntl.c: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/matrix.rb | 12 | ||||
| -rw-r--r-- | lib/pstore.rb | 2 | ||||
| -rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 1 |
3 files changed, 8 insertions, 7 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index 8058addb9..f22e09af0 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -602,7 +602,7 @@ class Matrix for i in 0 .. size next if i == k - q = a[i][k] / akk + q = a[i][k].quo(akk) a[i][k] = 0 (k + 1).upto(size) do @@ -617,11 +617,11 @@ class Matrix (k + 1).upto(size) do |j| - a[k][j] /= akk + a[k][j] = a[k][j].quo(akk) end 0.upto(size) do |j| - @rows[k][j] /= akk + @rows[k][j] = @rows[k][j].quo(akk) end end self @@ -692,7 +692,7 @@ class Matrix end (k + 1).upto(size) do |i| - q = a[i][k] / akk + q = a[i][k].quo(akk) (k + 1).upto(size) do |j| a[i][j] -= a[k][j] * q @@ -758,7 +758,7 @@ class Matrix end (k + 1).upto(a_row_size - 1) do |i| - q = a[i][k] / akk + q = a[i][k].quo(akk) (k + 1).upto(a_column_size - 1) do |j| a[i][j] -= a[k][j] * q @@ -925,7 +925,7 @@ class Matrix self * _M.inverse else x, y = other.coerce(self) - x / y + x.quo(y) end end diff --git a/lib/pstore.rb b/lib/pstore.rb index 3f60b593f..a691ce611 100644 --- a/lib/pstore.rb +++ b/lib/pstore.rb @@ -1,7 +1,7 @@ # = PStore -- Transactional File Storage for Ruby Objects # # pstore.rb - -# by unknown +# originally by matz # documentation by Kev Jackson and James Edward Gray II # # See PStore for documentation. diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 41686aaaa..dfca7d807 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -436,6 +436,7 @@ class RubyLex def_exception(:SyntaxError, "%s") include RubyToken + include IRB attr_reader :continue attr_reader :lex_state |
