aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * io.c (rb_io_readlines, rb_io_each_line): limit must not be zero.nobu2010-11-043-0/+29
| | | | | | a patch from Tomoyuki Chikanaga at [ruby-dev:42538]. #4024 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ext/ripper/ripper.c): RUBY needs to be set.nobu2010-11-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-11-05svn2010-11-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/extconf.rb: fixing ffi library location on windows.tenderlove2010-11-042-1/+6
| | | | | | Thanks Usa! [ruby-core:32930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_newobj): force garbage_collect() if GC.stress == true.ko12010-11-042-17/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: missed to write a last ChangeLog.ko12010-11-041-0/+8
| | | | | | | | | * gc.c (gc_finalize_deferred): removed. * gc.c (rb_gc_finalize_deferred): Do not invoke a free_unused_heaps(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (run_final): do not need argument obj.ko12010-11-041-9/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (run_final): do not need argument obj.ko12010-11-042-6/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (before_gc_sweep): fix commit miss.ko12010-11-042-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (after_gc_sweep, before_gc_sweep):ko12010-11-042-5/+10
| | | | | | | | invoke rb_sweep_method_entry() as soon as possilbe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (after_gc_sweep, slot_sweep): finalizers should be invokedko12010-11-042-8/+10
| | | | | | | | as soon as possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (--with-valgrind): Now this option is default on.shyouhei2010-11-042-0/+8
| | | | | | | | You can still explicitly disable this feature by specifying --without-valgrind. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (fiber_t_alloc): raise an error when fiber is going to bemame2010-11-032-0/+9
| | | | | | initialized twice. [ruby-dev:42524] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-11-04svn2010-11-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_resume): raise an "double resume" error when rootmame2010-11-033-1/+14
| | | | | | fiber is going to be resumed. [ruby-dev:42523] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (INSTRUBY): run via $(SUDO) if given.nobu2010-11-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex#identify_string): use charclass.nobu2010-11-031-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (OpenStruct#delete_field): also undefinenobu2010-11-033-1/+21
| | | | | | accessor methods. [ruby-core:33010] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_cr_str_buf_cat): concatenation of validnobu2010-11-033-1/+20
| | | | | | | encoding string and invalid encoding string should result invalid encoding. [ruby-core:33027] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c, vm.c, vm_core.h: remove USE_VALUE_CACHE option.ko12010-11-034-78/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex#identify_string): parse multiplematz2010-11-022-1/+6
| | | | | | regex options. a patch from Heesob Park in [ruby-core:32988]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_clear_cache_by_class): just return if the class hasakr2010-11-022-0/+8
| | | | | | | no method. reported by Eric Wong. [ruby-core:32689] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/visitor.rb (initialize): push accessortenderlove2010-11-023-9/+11
| | | | | | methods to subclass that actually uses them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-11-03svn2010-11-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/visitor.rb (accept): switch totenderlove2010-11-022-10/+16
| | | | | | a dispatch cache rather than case / when statement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: fix a typo.kou2010-11-022-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix bug#3990, rake/test_tasksarton2010-11-022-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-11-02svn2010-11-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: win64 is just same with win32 about socket.usa2010-11-012-1/+6
| | | | | | | notice: but wince is not same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * main.c: <stdlib.h> is needed, to introduce the getenv(3)shyouhei2010-11-012-0/+15
| | | | | | | | | | | | | | prototype declaration. Without it a C compiler shall infer the getenv type as "int getenv(...);", but this is totally wrong, especially when your machine's sizeof(int) and sizeof(char*) differs. On such environment a return value of getenv(3), which is in fact a char*, might first casted into a int (loses data here), and then casted back to char* by automatic integral promotion fo fit to the prototype of ruby_set_debug_option(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-11-01svn2010-10-311-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (finalizer_table, objspace->final.table):ko12010-10-312-42/+43
| | | | | | | | | | | Create finalizer_table at Init_heap(). Remove all null checks of finalizer_table. * gc.c (mark_tbl): skip if no table entries. * gc.c (slot_swee): remove useless need_call_final check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_objspace_free): finalizers should be called separatelynobu2010-10-312-1/+5
| | | | | | from freeing objspace. [ruby-dev:42479] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): free current VM and its objspace evennobu2010-10-312-14/+20
| | | | | | when exiting by SystemExit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (new_child_iseq): adjust argument types.nobu2010-10-315-13/+27
| | | | | | | | | | | * iseq.c (prepare_iseq_build, rb_iseq_new), (rb_iseq_new_with_bopt_and_opt, rb_iseq_new_with_opt), (rb_iseq_new_with_bopt): ditto. * compile.c (iseq_set_exception_table): suppress warnings. * insns.def (putspecialobject, defined): ditto. * iseq.c (iseq_load): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-10-31svn2010-10-311-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h: some refactoring.ko12010-10-316-72/+110
| | | | | | | | | | | | | | | | | | | | - move decl. of rb_compile_option_struct to iseq.h. - define enum iseq_type. - define enum vm_special_object_type. * compile.c: some refactoring. - apply above changes. - (struct iseq_link_element): change value of type. - remove unused decl. - fix comment. - rename iseq_build_body and iseq_build_exception to iseq_build_from_ary_body and iseq_build_from_ary_exception. * iseq.h: define enum catch_type and enum defined_type. * insns.def: apply above changes. * iseq.c: define ISEQ_MAJOR_VERSION and ISEQ_MINOR_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encoding.rb: untabify.kou2010-10-302-46/+49
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ./: add *.pc to svn:ignore.kou2010-10-300-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encoding.rb: use Ruby native encoding mechnism. [ruby-dev:42464]kou2010-10-3028-489/+126
| | | | | | | | | | | | | | | | * lib/rexml/encodings/: remove. * lib/rexml/document.rb, lib/rexml/formatters/default.rb, lib/rexml/output.rb, lib/rexml/parseexception.rb, lib/rexml/parsers/baseparser.rb, lib/rexml/source.rb, lib/rexml/xmldecl.rb: use Ruby's native Encoding object. * test/rexml/, test/rss/: follow the above encoding chagnes. * NEWS: add REXML's incompatible change about encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): get rid of overflow/underflow as possible.nobu2010-10-303-14/+41
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): fix indent.nobu2010-10-301-14/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ruby_pc): erase runtime-defined variables andnobu2010-10-303-4/+29
| | | | | | | | | | | check if generated pc file is valid. * template/ruby.pc.in (DEFFILE): need for mingw. * template/ruby.pc.in (LIBRUBY): fix the order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* property.nobu2010-10-300-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (ruby_pc): ignore missing variables.nobu2010-10-303-2/+13
| | | | | | | * template/ruby.pc.in: add missing variables for mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c: Make BasicObject.new accept no parameter.marcandre2010-10-302-3/+8
| | | | | | Revert of r26135 [ruby-core:27080], as per [ruby-core:32952]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c: use constants in id.h.nobu2010-10-303-7/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fiddle/test_closure.rb (test_memsize): test for r29635.nobu2010-10-301-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/closure.c (fiddle_closure): embed cif not referencenobu2010-10-302-5/+8
| | | | | | | so that the content surely get initialized. [ruby-dev:42480] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* property.nobu2010-10-291-52/+52
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e