summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
* * ext/tk/tcltklib.c (get_obj_from_str): suppressed a warning.nobu2009-07-111-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io_m17n.rb (test_strip_bom): added.naruse2009-07-112-0/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_attempted_completion_function):nobu2009-07-102-6/+14
| | | | | | | | | | array length is long. * ext/readline/readline.c (readline_s_get_filename_quote_characters): missing type of self. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (limited_rand): expands to long before shift so thatnobu2009-07-102-2/+7
| | | | | | | the result does not overflow. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rand_init): got rid of buffer overflow.nobu2009-07-102-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_join_1): should recurse for element array.nobu2009-07-104-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c (io_strip_bom): ungetbyte third byte when UTF-16LE.naruse2009-07-102-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix condition of second byte of UTF-16LE/UTF-32LE.naruse2009-07-102-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: commit miss.nobu2009-07-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cosmetic changesnaruse2009-07-101-5/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb: checked rl_refresh_line in readline.kouji2009-07-104-0/+31
| | | | | | | | * ext/readline/readline.c (readline_s_refresh_line): add new method, a patch from Koichiro Ohba. see [ruby-list:45922]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb: checked rl_line_buffer and rl_point inkouji2009-07-105-38/+161
| | | | | | | | | | readline. * ext/readline/readline.c (readline_s_get_line_buffer): new method. (readline_s_get_point): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_join2): fixed typo.nobu2009-07-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (recursive_join): use obj to tell if recursion occurs.nobu2009-07-105-39/+33
| | | | | | | | | [ruby-core:24150] * enum.c (enum_join): reverted r23966. [ruby-core:24196] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add test for marshaling regexp.naruse2009-07-101-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): set encoding only if the encoding is not US-ASCII.naruse2009-07-102-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (struct MT): ruby already assumes int has 32bit atnobu2009-07-102-48/+75
| | | | | | | | | least, so no needs to use long. * random.c (rand_init): git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_obj_{untrust,untrusted,trust}): addednobu2009-07-102-0/+8
| | | | | | | prototypes. [ruby-dev:38756] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_search_superclass): checks for implicitnobu2009-07-103-7/+30
| | | | | | | argument passing before method search. [ruby-core:24244] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e