summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * array.c (rb_ary_sample): RDoc update. a patch from Florianmatz2009-07-162-3/+10
| | | | | | Frank. [ruby-core:24347] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix SEGV of readline on FreeBSD. [ruby-core:21884]naruse2009-07-162-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c: adjusted indent.nobu2009-07-161-58/+58
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * method.h: properties.nobu2009-07-161-78/+78
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h, vm_core.h, variable.c: rename global_entry to rb_global_entry.ko12009-07-168-24/+26
| | | | | | | | * compile.c, insns.def, iseq.c, vm_insnhelper.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c: separate clearing cache entry code.ko12009-07-152-4/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (push_glob): re-fix GC problem.ko12009-07-152-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: add method.h.ko12009-07-152-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-07-16svn2009-07-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_free): free data body.ko12009-07-152-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * method.h, vm_core.h: add rb_method_entry_t. Remove nodes aroundko12009-07-1519-785/+882
| | | | | | | | | | | | | | | | | | | | | method management. This change affect some VM control stack structure. * vm.c, vm_insnhelper.c, vm_method.c, vm_eval.c: ditto. and make some refactoring. * insns.def, class.c, eval.c, proc.c, vm_dump.c : ditto. * vm_core.h, compile.c (iseq_specialized_instruction): remove VM_CALL_SEND_BIT. use another optimization tech for Kernel#send. * node.h: remove unused node types. * ext/objspace/objspace.c (count_nodes): ditto. * gc.c: add mark/free functions for method entry. * include/ruby/intern.h: remove decl of rb_define_notimplement_method_id(). nobody can use it because noex is not opend. * iseq.c (iseq_mark): fix to check ic_method is available. * iseq.c (rb_iseq_disasm): fix to use rb_method_get_iseq(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (push_glob): fix GC problem.ko12009-07-152-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/purelib.rb: translates a fake path to rubygems in $" intoyugui2009-07-153-6/+49
| | | | | | | | | | | | | | an alternative in $: so that Kernel.#require does not load more rubygems.rb. Resolves many failures in test/rubygems/*. * gem_prelude.rb (Gem.load_full_rubygems_library): supports case the rubygems to load is not in $(rubylibprefix). (Gem.path_to_full_rubygems_library): new method for the changes in purelib.rb and Gem.load_full_rubygems_library. (Gem.fake_rubygems_as_loaded): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (LIBPATHFLAG): path is already quoted in mkmf.rb.usa2009-07-152-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb: --with-{tcl,tk}-dir doesn't work.[ruby-dev:38782]nagai2009-07-142-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-07-15svn2009-07-141-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Set tempfile name with literal.naruse2009-07-142-2/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/nonblock: moved from ext/io/wait/lib.nobu2009-07-144-23/+120
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Check pos and strlen on Regexp#index(str, pos) [ruby-core:23660]naruse2009-07-142-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize): check if the descriptor can be accessednobu2009-07-143-5/+25
| | | | | | | in the specified open mode. [ruby-dev:38571] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: Long-term-callback support isn't stable yet.nagai2009-07-143-2/+8
| | | | | | | So, disable the feature and waiting for improvement in the future. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/menuspec.rb: commit miss on my last commitment.nagai2009-07-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Follow tests for changes of ENV's encoding.naruse2009-07-132-2/+8
| | | | | | | * test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of ENV is now locale encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): should return real object.naruse2009-07-132-9/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (yielder_yield_i): use rb_proc_new instead ofmame2009-07-134-9/+35
| | | | | | | | | | | | rb_iterate. [ruby-dev:38518] * README.EXT: rb_iterate is obsolete since 1.9; use rb_block_call instead. * README.EXT.ja: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-07-14svn2009-07-131-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_case.rb (TestCase#test_deoptimization):yugui2009-07-132-0/+16
| | | | | | test for [ruby-core:23190]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prime.rb (Prime#prime_division): now decomposesyugui2009-07-133-1/+18
| | | | | | | | negative integer into a decomposition with element [-1, 1]. * test/test_prime.rb: test for it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (pipe_open): handles leaked on win32 when an error occurs.usa2009-07-132-3/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (Kernel#define_singleton_method): rdoc. based on a patch byyugui2009-07-131-0/+26
| | | | | | | Marc-Andre Lafortune <ruby-core-mailing-list AT marc-andre.ca>. [ruby-core:23944]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile (Tempfile.open): rdoc. patch by Nobuhiro IMAI.yugui2009-07-131-1/+1
| | | | | | #1694 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): should not shadow outer variable not tonobu2009-07-132-1/+6
| | | | | | | return Qnil always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): copy instance variables to new regexp.naruse2009-07-132-2/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h, compile.c: declare struct iseq_inline_cache_entry.ko12009-07-138-27/+83
| | | | | | | | | | | | | | Inline cache (IC) entries are no longer GC managed object. IC entries are freed when ISeq is freed. * iseq.c: fix mark, free, memsize functions for above change. * insns.def: remove rb_gc_write_barrier(). * vm_insnhelper.c (vm_method_search): ditto. * tool/instruction.rb, template/insns_info.inc.tmpl (insn_iclen): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gitignore: synchronized with svn:ignore.yugui2009-07-132-62/+382
| | | | | | * spec/.gitignore: merged into /.gitignore git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ignores $(srcdir)/breakpoints.gdb.yugui2009-07-130-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tk: ignores generated ext/tk/config_listyugui2009-07-130-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def, vm_insnhelper.c (getinstancevariable):ko12009-07-136-37/+86
| | | | | | | | | | | | fix to use inline cache. * compile.c: fix to skip inline cache entry (IC). IC is added automatically by compiler. * insns.def, vm_insnhelper.h: fix IC positions. * iseq.c: increment minor_version of ISeq because of above change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk: eol-style.nobu2009-07-130-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb (PStore#on_windows): fixed typo.nobu2009-07-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb: New strategy for searching Tcl/Tk libraries.nagai2009-07-12228-1043/+7260
| | | | | | | | | | | | | | | | | | | | | | | | * ext/tk/*: Support new features of Tcl/Tk8.6b1 and minor bug fixes. ( [KNOWN BUG] Ruby/Tk on Ruby 1.9 will not work on Cygwin. ) * ext/tk/*: Unify sources between Ruby 1.8 & 1.9. Improve default_widget_set handling. * ext/tk/*: Multi-TkInterpreter (multi-tk.rb) works on Ruby 1.8 & 1.9. ( [KNOWN BUG] On Ruby 1.8, join to a long term Thread on Tk callbacks may freeze. On Ruby 1.9, cannot create a second master interpreter (creating slaves are OK); supported master interpreter is the default master interpreter only. ) * ext/tk/lib/tkextlib/*: Update supported versions of Tk extensions. Tcllib 1.8/Tklib 0.4.1 ==> Tcllib 1.11.1/Tklib 0.5 BWidgets 1.7 ==> BWidgets 1.8 TkTable 2.9 ==> TkTable 2.10 TkTreeCtrl 2005-12-02 ==> TkTreeCtrl 2.2.9 Tile 0.8.0/8.5.1 ==> Tile 0.8.3/8.6b1 IncrTcl 2005-02-14 ==> IncrTcl 2008-12-15 TclX 2005-02-07 ==> TclX 2008-12-15 Trofs 0.4.3 ==> Trofs 0.4.4 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-07-121-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_timespec): rounds subsecond toward zero.nobu2009-07-122-12/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-07-13svn2009-07-121-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ENV is now locale encoding.naruse2009-07-122-2/+8
| | | | | | | | * hash.c (env_str_new): use rb_locale_str_new instead of rb_tainted_str_new. rb_locale_str_new set string locale encoding and tainted. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: added some shortcuts.tadf2009-07-123-12/+72
| | | | | | | * rational.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_to_integer, rb_check_to_integer): return Bignumnobu2009-07-122-0/+7
| | | | | | | as-is. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: use k_exact_{zero,one}_p macro.tadf2009-07-123-16/+24
| | | | | | | * rational.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (fix_divide): added an entry to rational.tadf2009-07-124-1/+28
| | | | | | | | | * rational.c (rb_rational_reciprocal): added. * complex.c (f_reciprocal): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rand_init): use fixed buffer for small numbers.nobu2009-07-113-33/+38
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e