summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-05-27* eval_error.c (error_handle): SystemExit and SignalException throwsnobu
TAG_RAISE but not TAG_FATAL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* thread.c (rb_thread_execute_interrupts): delay interrupts duringnobu
raising exceptions. [ruby-dev:34855] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* numeric.c (num_div): should raise ZeroDivisionError.matz
* numeric.c (fix_divide): ditto. * test/ruby/test_numeric.rb (TestNumeric::test_divmod): avoid ZeroDivisionError in tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* numeric.c (num_fdiv): fallback to_f should always return floatmatz
result. should not use #quo that may return rational. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* numeric.c (check_int): use PRIxVALUE format specifier.matz
* numeric.c (check_uint, rb_num2fix, int_chr): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* array.c (rb_ary_slice_bang): Return an empty array instead ofknu
nil when pos is valid and len is adjusted from a valid value to zero; caught by RubySpec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* Makefile.in (MKPREP), common.mk, win32/Makefile.sub (prelude.c): getnobu
rid of depending PREP with nmake. * common.mk (encs): depends on libruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* ext/stringio/stringio.c (strio_each_char, Init_stringio): Addknu
StringIO#{each_char,chars}. (Init_stringio): Fix StringIO#bytes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* ext/stringio/stringio.c (strio_each_byte): Return self insteadknu
of nil as the rdoc says. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27Remove entries about what have already been backported to 1.8.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* enum.c (enum_to_a): Pass arguments through to #each().knu
(enum_sort): Follow the enum_to_a signature change. (enum_reverse_each): Add #reverse_each(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27remove garbageknu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* io.c (Init_IO): Define ARGF.{lines,bytes,chars}.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27Cosmetic.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27 * file.c (BUFCHECK): wrong condition. [ruby-core:16921]usa
* file.c (file_expand_buf): shouldn't use buflen for length of string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26* file.c (BUFCHECK): no resize if enough room.nobu
* file.c (file_expand_path): use BUFCHECK. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26* enumerator.c (struct enumerator, enumerator_init)knu
(enumerator_init_copy, enumerator_each): Eliminate iter. (enumerator_ptr): Do not hardcode the class name. (enumerator_with_index): Delay variable initialization after RETURN_ENUMERATOR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26 * file.c (file_expand_path): add more space for '/'.usa
* file.c (file_expand_path): should reset address of p after calling rb_str_resize(). [ruby-dev:34800] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26* util.c (ruby_strtod): clear errno at the top of our ownmatz
impelementation of strtod(3). [ruby-dev:34834] [ruby-dev:34839] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26* misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook ismatz
not available. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34853]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26 * file.c (ntfs_tail): filename which starts with '.' is valid.usa
* file.c (file_expand_path): cygwin symlink support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25* vm_dump.c (rb_vm_bugreport): rb_make_backtrace has no arguments.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25* test/ruby/envutil.rb (assert_normal_exit): signal descriptionakr
refined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25* hash.c (env_each_key, env_each_value, env_reject_bang)knu
(rb_env_clear, env_replace): Omit duplicated secure level check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25* hash.c (env_each_value): Do not call env_values() twice.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25* compile.c (iseq_compile): set local_table formame
ISEQ_TYPE_DEFINED_GUARD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25* compile.c (iseq_build_body): remove side effect frommame
VM::InstructionSequence.load. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25* vm_eval.c: set properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24* test/ruby/test_modules.rb (remove_json_mixins): change judgmentmame
condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24* test/ruby/test_modules.rb (test_ancestors, test_included_modules):mame
ignore json mixins. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24* vm_eval.c: added. Some codes are moved from "eval.c"ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24* eval_method.c: renamed from vm_method.c. "vm_method.c" is includedko1
by "vm.c". * vm_eval.c: added. Some codes are moved from "eval.c" * common.mk: fix for above changes. * compile.c: make a vm_eval(0) * eval.c, eval_error.c, eval_intern.h, eval_jump.c, proc.c, vm.c, id.c, id.h, vm_core.h, vm_dump.c, vm_evalbody.c, vm_insnhelper.c, blockinlining.c: fix for above changes. and do some refactoring. this changes improve rb_yield() performance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24* error.c (exc_equal): == operator should be transitional. matz
[ruby-dev:34808] * error.c (syserr_eqq): === should be able to handle delegated objects as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24* object.c (rb_cstr_to_dbl): should clear errno before callingmatz
strtod(3). [ruby-dev:34834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24* compile.c (iseq_set_exception_table, NODE_WHILE, NODE_NEXT): removemame
special handling that decrements sp in CATCH_TYPE_NEXT for NODE_WHILE. * vm.c (vm_eval_body), vm_insnhelper.c (vm_throw): remove unused code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24add a test for [ruby-dev:34679].akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24add a test for [ruby-dev:34828].akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24add a test for [ruby-dev:34808].akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23* transcode.c (rb_str_transcode): argc is 1, and argv is &to.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23fix a ML ref.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23* array.c (rb_ary_slice_bang): Be consistent with Array#slice()knu
and String#slice!(). Just return nil when a negative length or out of boundary index is given instead of raising an exception via internal functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23* enumerator.c (Init_Enumerator): Overrideknu
Enumerable::Enumerator#each_with_index with #with_index. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23* vm_dump.c (vm_stack_dump_raw): suppress warnings.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23* vm_core.h (rb_num_t): moved form vm.h.nobu
* tool/instruction.rb (RubyVM::Instruction#sp_increase_c_expr), tool/instruction.rb (RubyVM::VmBodyGenerator#make_header_operands): omit unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23* .gdbinit (rp): T_VALUES is no longer defined.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-22* iseq.c (rb_iseq_compile_with_option): get rid of segv.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-22svn:ignore: added rubyspeckazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-22trivial change.kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-22* svn:ignore: added GNUmakefile.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-22* insns.def (opt_gt|ge|lt|le): use values directly to compare.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e