nobu
c6c5771e50
* ext/zlib/extconf.rb: bccwin32 is win32 too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-22 23:39:32 +00:00
seki
5c4c320c81
fix ERB::DefMethod bug
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-22 16:29:47 +00:00
uema2
a16fc220ca
* ruby.c: don't call VirtualQuery in ruby_init_loadpath()
...
on mswince.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-22 11:58:08 +00:00
nobu
aede0cf378
* marshal.c (save_mantissa, load_mantissa): for interoperability
...
should count cut-down bit from topmost.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-22 10:08:57 +00:00
eban
b4945ec141
2003-04-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-22 08:47:21 +00:00
matz
f550e69efc
* parse.y (arg_ambiguous): hopefully better message.
...
* lib/cgi.rb (CGI::QueryExtension::initialize_query): to_ary
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-22 08:18:19 +00:00
akr
808e9289e6
* lib/resolv.rb (Resolv::DNS::Resource#hash): use XOR to accumulate
...
hash value.
* lib/tsort.rb (TSort#each_strongly_connected_component): don't use
block argument.
(each_strongly_connected_component_from): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-21 21:14:08 +00:00
nobu
3939629ddf
* marshal.c: one more digit for decimal point. [ruby-talk:69808]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-21 13:02:08 +00:00
nobu
71e0bb92d1
* numeric.c (flo_is_finite_p): use finite() if available.
...
* win32/win32.h (isinf, isnan): define as macro.
[ruby-win32:00533]
* bcc32/Makefile.sub, win32/Makefile.sub: no longer use
missing/isinf.c, missing/isnan.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-21 12:26:08 +00:00
nobu
3819849ac1
* bignum.c (rb_cstr_to_inum): unnecessarily long buffer was used
...
for radix 9. [ruby-dev:20057]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-21 09:36:31 +00:00
nobu
05ebd131cf
* parse.y (block_append, value_expr0, assign_in_cond,
...
warn_unless_e_option, warning_unless_e_option, range_op,
cond0): adjust line number in warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-21 08:44:38 +00:00
matz
7e1d69f231
* gc.c (rb_gc): use rb_gc_mark_maybe() to mark registered C
...
addresses. C variables may not hold valid reference to Ruby
objects. [ruby-core:00975]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-21 08:17:18 +00:00
eban
472672dfe6
* sample/test.rb: avoid the MSVCRT *printf problem(float).
...
[ruby-dev:20037]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-20 15:52:56 +00:00
nobu
3f0eab216f
* marshal.c (w_float): append least mantissa bits to get rid
...
of roundoff problem. [ruby-talk:69518]
* marshal.c (r_object0): load least mantissa bits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-20 15:11:20 +00:00
eban
b7e6fc019c
* win32/win32.c (NtInitialize): set the floating-point control word
...
on bcc32.
* win32/win32.h, bcc32/Makefile.sub: use missing/isinf.c, should not
use _finite() because it returns 0 if NaN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-20 14:35:41 +00:00
aamine
4b0276d818
modify typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-20 14:14:03 +00:00
eban
c43dc6596d
2003-04-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-19 18:20:26 +00:00
eban
534c5a2910
* parse.y (void_expr0): node might become NULL after calling remove_begin().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-19 18:17:59 +00:00
eban
f7b5d33620
2003-04-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-19 13:02:59 +00:00
knu
ef3c974c89
* ext/Setup*: Add zlib and remove bogus and obsolete entries.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-19 12:55:59 +00:00
matz
6987b0806e
* struct.c (rb_struct_eql): should compare values with "eql?".
...
* range.c (range_check): <=> returns nil for invalid values;
should check.
* regex.c (re_compile_pattern): should not set RE_OPTIMIZE_ANCHOR,
if anychar_repeat is enclosed by parentheses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-18 18:05:11 +00:00
eban
18cdaa6828
2003-04-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-18 07:22:46 +00:00
usa
8836a1d265
* error.c (rb_raise): workaround for some implementation of
...
vsnprintf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-18 06:27:53 +00:00
nobu
6940597692
* util.c (ruby_strtod): improved conversion accuracy.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17 16:49:23 +00:00
shigek
57c6f017a0
Bug in negative.exp(n) reported by Hitoshi Miyazaki fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17 14:00:42 +00:00
usa
e07677d308
* ext/dbm/dbm.c (each_pair): add prototype to avoid VC++ warnings.
...
* ext/readline/readline.c (Init_readline): follow readline 4.2
prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17 05:41:27 +00:00
nobu
457e29ad14
2003-04-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17 05:24:11 +00:00
nobu
ecdf51dfc4
* parse.y (cond0): warn only range literals whose both side are
...
literals. [ruby-core:00964]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17 05:22:40 +00:00
eban
05654dddc4
* ext/readline/readline.c: add the defined operator for bcc32.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17 02:14:23 +00:00
nobu
4cec316bbc
* misc/ruby-mode.el (ruby-special-char-p): should test at the
...
point if no argument. fixed by Michael Scholz
<scholz-micha@gmx.de>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-15 15:14:15 +00:00
aamine
cd74de7314
* lib/net/fileutils.rb: rm_r should raise Errno::ENOENT if file not exist. [ruby-core:958] Thanks Johan Holmberg.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-15 10:28:04 +00:00
nobu
93db1877cf
(ruby-bugs:PR#758)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-15 10:22:03 +00:00
nobu
df61e2aad6
* struct.c (rb_struct_hash): new methods Struct#hash, Struct#eql?.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-15 10:12:25 +00:00
eban
d79a04f0d4
2003-04-15
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-15 08:02:09 +00:00
nobu
fae5cc75fa
* numeric.c (rb_fix2str): buffer was insufficient.
...
(ruby-bugs-ja:PR#431)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-15 07:05:15 +00:00
nobu
7a332f23ce
* file.c (file_expand_path): root must follow buf when
...
reallocated. [ruby-talk:69339], [ruby-dev:20025]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-14 10:46:00 +00:00
matz
f34f20ebc5
* rubyio.h (struct OpenFile): add error raise flag to finalizer.
...
* io.c (Init_IO): define $/, $-0, and $\ as string-only
variables.
* string.c (rb_str_split_m): does not generate empty string if
there's no match in the receiver.
* io.c (fptr_finalize): should raise error on EBADF for readable
IOs as well.
* file.c (rb_stat): use rb_check_convert_type() to retrieve IO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-14 09:04:43 +00:00
nobu
0b4c9491ec
2003-04-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-14 06:57:37 +00:00
nobu
3f4472433d
* bignum.c (rb_cstr_to_inum, rb_big2str): allow 2-36 as radix.
...
* numeric.c (rb_fix2str): ditto.
* string.c (rb_str_to_i): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-14 06:54:27 +00:00
eban
d39d90f86a
* lib/mkmf.rb (try_func): remove COMMON_HEADERS at first for performance.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-12 18:24:55 +00:00
nobu
f79b715829
* misc/ruby-mode.el (ruby-forward-sexp): missed argument for forward-word.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-12 12:03:26 +00:00
nobu
6cdf714126
* misc/ruby-mode.el (ruby-beginning-of-arg): substitute
...
ruby-backward-arg.
* misc/ruby-mode.el (ruby-calculate-indent): fixed wrong
indentation in brace block and parentheses.
* misc/ruby-mode.el (ruby-forward-sexp, ruby-backward-sexp):
support special char literal, and negative arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-12 11:59:45 +00:00
nobu
6e4a83c0a3
* win32/win32.c (rb_w32_stat): check arguments. [ruby-dev:20007]
...
[ruby-win32:535]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-11 10:02:37 +00:00
nobu
fd0fdbe908
* sample/test.rb: NaN comparison test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-11 06:56:13 +00:00
nobu
76d7e7d54c
* numeric.c (coerce_rescue): prevent inspected String from GC.
...
* numeric.c (flo_eq, rb_dbl_cmp, flo_gt, flo_ge, flo_lt, flo_le,
flo_eql): correct NaN comparison. (ruby-bugs:PR#744)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-11 06:37:48 +00:00
matz
a700bcfafa
* file.c (rb_stat): dereference using StringValuePtr().
...
* file.c (rb_file_s_stat): use rb_stat(). [ruby-dev:20007]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-11 05:49:34 +00:00
eban
1fab5e27c3
2003-04-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-11 03:21:08 +00:00
nobu
4347eb8a7f
* lib/benchmark.rb (Benchmark::bm): get rid of warning.
...
[ruby-talk:69124]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-11 01:51:14 +00:00
nobu
0b984f51a1
* io.c (set_stdin): assigned value must respond to "read" and
...
"getc".
* io.c (set_outfile): assigned value must respond to "write".
(ruby-bugs-ja:PR#425)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-10 17:41:40 +00:00
aamine
95eb316d44
* lib/net/pop.rb: Exception line was accidentaly removed. [ruby-dev:19989]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-10 12:15:33 +00:00