aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* st.c: remove equality checksnobu2014-07-062-12/+3
| | | | | | | * st.c (st_update): remove equality checks, callers should ensure the equality, otherwise the behavior is undefined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* st.c: re-calc hash_val before addingnobu2014-07-061-0/+2
| | | | | | | | * st.c (st_update): re-calculate hash_val before adding if key was changed, otherwise cannot access the newly added element if it has different hash value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* st.c: update the key too if changednobu2014-07-061-0/+18
| | | | | | | * st.c (st_update): fix a bug that the key was not updated even if it was changed by the callback function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c, ext/pathname/pathname.c: [DOC] correct position of method rdoc.ktsj2014-07-062-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (is_dying_object): fix missed condition.ko12014-07-062-4/+10
| | | | | | | | * gc.c (is_live_object): move frequent path first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: rename is_dead_object() to is_dying_object().ko12014-07-062-7/+38
| | | | | | | | | | | | This function is not opposite against is_live_object() because is_dying_object() does *not* check object type. * gc.c (is_dying_object): change condition. * gc.c (is_live_object): use T_NONE instead of 0. * gc.c (rb_objspace_dying_object_p): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* split tool/fake.rbnobu2014-07-062-32/+38
| | | | | | * tool/fake.rb: split from template/fake.rb.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_gc_register_mark_object): change data structure.ko12014-07-063-2/+21
| | | | | | | | | | From single array, to array of arrays. Each array only has 1024 entries. * vm.c (Init_vm_objects): change default capa from 1 to 128. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fake.rb.in: override File::ALT_SEPARATORnobu2014-07-061-3/+4
| | | | | | | * template/fake.rb.in (File::ALT_SEPARATOR): override ALT_SEPARATOR if different, not only a backslash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkconstants.rb: remove empty commentsnobu2014-07-061-3/+5
| | | | | | | | * ext/etc/mkconstants.rb: remove empty comments, defaut_proc isn't called by accessing nil-assigned elements, and the same content is useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc/stats/normal.rb: fix last_widthnobu2014-07-061-1/+1
| | | | | | | * lib/rdoc/stats/normal.rb (print_file): reset @last_width to the last line size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc/stats/normal.rb: IO.console_sizenobu2014-07-061-1/+3
| | | | | | | * lib/rdoc/stats/normal.rb (print_file): use IO.console_size to follow window resize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc/stats/normal.rb: clear previous outputnobu2014-07-061-3/+4
| | | | | | | * lib/rdoc/stats/normal.rb (print_file): clear previous output instead of filling the line, not to leave extra spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-07-06svn2014-07-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: ignore clean-runnable errorsnobu2014-07-051-3/+3
| | | | | | | * common.mk (clean-runnable): get rid of errors running again after clean-runnable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: remove sizes.onobu2014-07-051-2/+0
| | | | | | * common.mk (sizes.o): remove stale target. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: empty by distcleannobu2014-07-053-5/+8
| | | | | | | | | | * common.mk (clean-runnable): remove files made by mkrunnable. * common.mk (clean-extout): remove archir too. * common.mk (clean-ext): remove timestamp directory git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/rbconfig/sizeof: distcleannobu2014-07-051-0/+1
| | | | | | * ext/rbconfig/sizeof/extconf.rb: clean sizes.c at distclean. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/etc: distcleannobu2014-07-051-0/+2
| | | | | | * ext/etc/extconf.rb: clean constdefs.h at distclean. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c: [DOC] mention about prepended modules.ktsj2014-07-051-4/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo [ci skip]kazu2014-07-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/irb/locale.rb: fix typonobu2014-07-042-1/+6
| | | | | | | * lib/irb/locale.rb (IRB::Locale#modifier): fix wrong attr_reader `modifieer` => `modifier` from irb locale. [fix GH-656] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: move DEFAULT_PRELUDESnobu2014-07-043-3/+1
| | | | | | | * common.mk (DEFAULT_PRELUDES): no longer configurable since r43278, move from Makefile.in and win32/Makefile.sub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-07-05svn2014-07-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: fix castsnobu2014-07-041-7/+7
| | | | | | | | | * parse.y (reg_named_capture_assign_gen): remove needless cast. * parse.y (must_be_dynamic_symbol, intern_cstr_without_pindown): get rid of type-punning cast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: rename symbols::sym_id to symbols::str_id.ko12014-07-042-18/+28
| | | | | | | | | | | This table is not {Symbol => ID} table, but {String => ID} table. * parse.y (lookup_sym_id): also rename lookup_sym_id() to lookup_str_id() because key is not Symbol, but String. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (must_be_dynamic_symbol): fix missed-condition.ko12014-07-042-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_pin_dynamic_symbol): should be `static' function.ko12014-07-042-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (must_be_dynamic_symbol): refactoring.ko12014-07-042-8/+23
| | | | | | | | | | | * add `inline'. * use UNLIKELY(). * check only DYNAMIC_SYM_P(), otherwise it is a bug. * lookup_id_str() is not needed in second condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/unit.rb: newline after messagenobu2014-07-041-1/+1
| | | | | | | * test/lib/test/unit.rb (deal): print a newline after an error message for unknown command not to overwritten by next messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: remove global_symbols.op_symnobu2014-07-041-22/+5
| | | | | | | * parse.y (global_symbols): remove op_sym, cache by fstring instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: use rb_fstring_newnobu2014-07-041-6/+5
| | | | | | | * parse.y (rb_id2str): use rb_fstring_new() instead of rb_fstring() with a new string instance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: rb_fstring_new assumes US-ASCIInobu2014-07-041-3/+4
| | | | | | | * string.c (rb_fstring_new): make US-ASCII string. another function may be used for non-ASCII strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: pack op_tblnobu2014-07-041-2/+2
| | | | | | | | * parse.y (op_tbl): pack limited size strings. gcc/clang warn if initializer-string for char array is too long, but no option to err it now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile_prelude.rb: remove commentsnobu2014-07-041-0/+1
| | | | | | | * tool/compile_prelude.rb (translate): remove comments which are not used in compiled sources. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: fix typo [ci skip]nobu2014-07-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: remove unused codeko12014-07-042-39/+5
| | | | | | | | srounded by `#if ENABLE_SELECTOR_NAMESPACE' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem_package.rb: avoid tempfile leaks using Tempfile#close!hsbt2014-07-044-6/+24
| | | | | | | * test/rubygems/test_gem_request_set.rb: ditto. * test/rubygems/test_gem_request_set_gem_dependency_api.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "test/rdoc: avoid tempfile leaks"hsbt2014-07-043-6/+6
| | | | | | | | | This reverts commit r46145. Tempfile.create is only available Ruby 2.1 or higher. rubygems need to support Ruby 1.9 and 2.0 series. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/htp/response.rb (Net::Inflater#inflate_adapter):naruse2014-07-032-0/+10
| | | | | | prevent automatic encoding conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http/response.rb (Net::HTTP.each_response_header):naruse2014-07-032-1/+12
| | | | | | | raise first exception even if inflate_body_io.finish raises error. when begin block raises error, finish usually raises error too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI::Generic#query=): remove validation, justnaruse2014-07-033-79/+47
| | | | | | | | | | | | | | | | escape. [Feature #2542] * lib/uri/generic.rb (URI::Generic#fragment=): ditto. * lib/uri/generic.rb (URI::Generic#check_query): removed. * lib/uri/generic.rb (URI::Generic#set_query): ditto. * lib/uri/generic.rb (URI::Generic#check_fragment): ditto. * lib/uri/generic.rb (URI::Generic#set_fragment): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-07-04svn2014-07-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change default not tot create useless objectnaruse2014-07-031-1/+1
| | | | | | initheader = initheader ? initheader.dup : {} git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a part of speech [ci skip]kazu2014-07-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix static-linked-extnobu2014-07-036-7/+26
| | | | | | | | | | * configure.in (--with-static-linked-ext): fix for extensions to be linked statically. * Makefile.in, common.mk: use ENCSTATIC for enc directory. * ext/extmk.rb: supply dependencies of statically linked extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-07-03svn2014-07-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extmk.rb: GNU make -C optionnobu2014-07-033-3/+15
| | | | | | * ext/extmk.rb: use -C option for GNU make instead of shell. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Init functions don't need ID cachesnobu2014-07-039-13/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c: use rb_check_aritynobu2014-07-021-8/+12
| | | | | | | | * hash.c (rb_hash_initialize, rb_hash_fetch_m, rb_hash_default): use rb_check_arity over rb_scan_args. (env_fetch): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e