summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * string.c (tr_trans): should squeeze properly. [ruby-dev:34587]matz2008-05-074-44/+71
| | | | | | | | | | | | | * string.c (tr_trans): had a bug in treating multi-byte character replacement. * string.c (rb_str_delete_bang): need not to do anything for empty strings. * test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_delete): add test for empty receiver. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (bit_coerce): float should not be a valid operand ofmatz2008-05-073-8/+17
| | | | | | bitwise operations. [ruby-dev:34583] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_key_p): should always convert symbol to ID.matz2008-05-072-2/+9
| | | | | | [ruby-dev:34588] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (fix_divide): float division should floor() beforematz2008-05-072-1/+6
| | | | | | rounding into integer. [ruby-dev:34584] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options, ruby_set_argv): set encoding of rb_argvusa2008-05-072-5/+13
| | | | | | | | | after Init_prelude() because cannot load encoding extensions before it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (sym_to_i): remove obsolete method. preparation formatz2008-05-073-56/+9
| | | | | | | | | | symbol GC. * numeric.c (fix_to_sym): ditto. * numeric.c (fix_id2name): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_puts_ary): check recursion first. [ruby-dev:34580]nobu2008-05-072-3/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_eval_body): initialize retval. [ruby-dev:34576]nobu2008-05-072-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit (rp): removed RUBY_T_BLOCK.nobu2008-05-071-5/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_fdiv): flo.fdiv(NaN) should result NaN.matz2008-05-076-59/+44
| | | | | | | | | | | | | | * numeric.c (num_quo): renamed and moved from bignum.c. [ruby-dev:34582] * bignum.c (rb_big_fdiv): update RDoc description * rational.c (nurat_s_new_m): small refactoring. * bignum.c (rb_big2dbl): no need for forceful warning when converting to float. overflow is a nature of float values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog updatedmatz2008-05-061-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzreader_gets): may cause infinite loop.matz2008-05-063-3/+10
| | | | | | [ruby-reference-manual:762] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* File#lchmod test removed because the method is not exist.akr2008-05-061-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/io/nonblock/test_flush.rb: don't set Thread.abort_on_exception.akr2008-05-053-7/+24
| | | | | | | | * test/net/imap/test_imap.rb: ensure disconnecting imap to terminate receiver thread.. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (insn_operand_intern): should handle Qundef embedded inmatz2008-05-052-3/+13
| | | | | | operand. [ruby-core:16656] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): should call compile_cpath() formatz2008-05-054-5/+15
| | | | | | | | modules as well. [ruby-dev:34585] * insns.def (defineclass): add undef handling. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (defineclass): was using wrong variable. [ruby-dev:34592]matz2008-05-052-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fflush): IO#flush problem within threads. a patch frommatz2008-05-052-2/+7
| | | | | | <s.wanabe at gmail.com> in [ruby-dev:34595]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (defined_expr): protect some expression frommatz2008-05-052-1/+12
| | | | | | | | | segmentation fault. a patch from wanabe <s.wanabe at gmail.com> in [ruby-dev:34593]. * compile.c (defined_expr): git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_s_def): Struct.new(0) should not SEGV.matz2008-05-052-5/+15
| | | | | | | | | based on the patch from wanabe <s.wanabe at gmail.com> in [ruby-dev:34594]. * struct.c (make_struct): call to_str on name object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): wrap ruby_finalize_0 by SAVE_ROOT_JMPBUF toakr2008-05-052-1/+12
| | | | | | | avoid SEGV by at_exit { Fiber.new{}.resume } on IA64. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for IA64 Debian GNU/Linux Etch.akr2008-05-051-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_slice_bang): should adjust length before makingmatz2008-05-052-0/+8
| | | | | | sub-array. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_dup): should dupe corresponding information.matz2008-05-052-1/+6
| | | | | | [ruby-dev:34581] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (compile_cpath): use Qundef to denote cbase lookup.matz2008-05-055-26/+33
| | | | | | | | | | | * insns.def (defineclass): Qudef is passed for cbase. * insns.def (setconstant): ditto. * vm_insnhelper.c (vm_check_if_namespace): use rb_inspect() instead of rb_obj_as_string() for better description. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (set_heaps_increment): fix memory allocation strategy byakr2008-05-042-20/+26
| | | | | | | | | | | | | determining heaps_inc from heaps_used, not objects_delta. (struct rb_objspace): delta removed. change increment, length and used to long for LP64. (objects_delta): removed. (allocate_heaps): add next_heaps_length argument. (init_heap): renamed from add_heap. (garbage_collect): use heaps_increment in dont_gc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getoptlong.rb: use $stderr instead of $deferr.akr2008-05-042-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-05-041-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (obj2nsec): fix string argument.akr2008-05-043-1/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_obj_respond_to): check the result of respond_to? methodakr2008-05-043-1/+14
| | | | | | | by RTEST. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_line): return original string.akr2008-05-042-2/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-05-031-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (Test::Unit::Assertions#assert_normal_exit):akr2008-05-033-0/+46
| | | | | | | new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:34581].akr2008-05-031-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_timespec): raise TypeError for nil and other objectsakr2008-05-032-9/+20
| | | | | | | which has no divmod method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-05-021-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-05-021-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for Struct.new(0).akr2008-05-021-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (internal_read_func, internal_write_func): split fromnobu2008-05-022-12/+16
| | | | | | | internal_io_func. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_define_hooked_variable): guard *var from GC toakr2008-05-022-1/+13
| | | | | | | prevent collecting argf under RUBY_DEBUG=gc_stress. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_step): call to_int if step is not a numericmatz2008-05-022-0/+8
| | | | | | value. [ruby-dev:34575] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for [ruby-dev:34557] and [ruby-dev:34558].akr2008-05-021-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_step): do not forcefully convert steps intomatz2008-05-022-19/+10
| | | | | | integers. [ruby-dev:34571] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: updated.matz2008-05-021-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: move fontifying code from hook.matz2008-05-022-18/+17
| | | | | | [ruby-core:16636] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_step): step may be bignum.matz2008-05-022-1/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (Init_Regexp): remove MatchData#select. [ruby-dev:34563]matz2008-05-023-5/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: reordered.nobu2008-05-011-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Adding accidentally skipped ChangeLog entry.jeg22008-05-011-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_divide), numeric.c (fix_divide): check for resultnobu2008-05-013-11/+18
| | | | | | | domain. [ruby-dev:34559] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e