aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * error.c (exc_equal): clear rb_thread_t::errinfo when ignorenagachika2012-01-143-1/+28
| | | | | | an exception under rb_protect(). [ruby-core:41979] [Bug #5865] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_enc_vsprintf): relaxed the restriction. since thenobu2012-01-142-2/+9
| | | | | | | | implementation deeply depends on plain char, so wchar_t based encodings are not supported. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (exc_equal): ignore exceptions during implicitnobu2012-01-143-0/+28
| | | | | | conversion. [ruby-core:41979] [Bug #5865] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "* error.c (exc_equal): try implicit conversion for delegator."naruse2012-01-133-16/+1
| | | | | | | | | This reverts commit r34291 because it breaks objects whose "exception" method doesn't allow no argument like XMLRPC::FaultException class. To reproduce: `RuntimeError.new == XMLRPC::FaultException`. [ruby-core:41979] [Bug #5865] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-01-14svn2012-01-131-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_read): Fix formatting of open_args comment. Reporteddrbrain2012-01-132-12/+21
| | | | | | | by Adam Prescott. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_enc_vsprintf): can be used for ASCII compatiblenobu2012-01-132-1/+12
| | | | | | | encodings only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_mutex_unlock_th): simplified.nobu2012-01-132-16/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_barrier_waiting): fix potential overflows.nobu2012-01-132-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (load_unlock): update loading table at once.nobu2012-01-132-9/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (exc_equal): try implicit conversion for delegator.nobu2012-01-133-1/+16
| | | | | | | [ruby-core:41979] [Bug #5865] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Forgot to commit the test part.knu2012-01-131-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb (Shellwords#shellescape): shellescape() nowknu2012-01-123-2/+24
| | | | | | | | | | stringifies the given object using to_s. * lib/shellwords.rb (Shellwords#shelljoin): shelljoin() accepts non-string objects in the given array, each of which is stringified using to_s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: Fix rdoc markups.knu2012-01-122-17/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb (Shellwords#shellsplit): Fix a bug whereknu2012-01-123-1/+16
| | | | | | | consecutive backslashes in double quotes are all removed except the one at the tail. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Do not define _WIN32_WINNT multiple timesluislavena2012-01-122-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-01-13svn2012-01-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: Improve rdoc for Module.constants [issue #5887]marcandre2012-01-121-5/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: fix r33904 and revert r33905. initialize globalnobu2012-01-122-76/+72
| | | | | | | | variables with init_mkmf before initializing constants. [ruby-dev:45124] [Bug #5879] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (cont_restore_0): prevent optimizing out `sp'. sp is used fornaruse2012-01-122-5/+14
| | | | | | | | | | | reserving a memory space with ALLOCA_N for restoring machine stack stored in cont->machine_stack, but clang optimized out it (and maybe #5851 is also caused by this). This affected TestContinuation#test_check_localvars. * cont.c (cont_restore_1): revert workaround introduced in r32201. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c: Added examples for Object#is_a? and Object#instance_of?ayumin2012-01-112-4/+21
| | | | | | patcheed from Manoj Kumar. [Bug #5880] [ruby-core:42057] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: verbose-mode can use by RM, RMDIRS, etc.kazu2012-01-112-13/+18
| | | | | | (e.g. make V=1 realclean) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-01-12svn2012-01-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_concat): set array element after definitionngoto2012-01-112-1/+8
| | | | | | | | to fix compile error with Fujitsu C Compiler 5.6 on Solaris 10 on Sparc. [Bug #5878] [ruby-dev:45123] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (ruby_mimmalloc): don't set allocated size to header.nagachika2012-01-112-3/+15
| | | | | | | | | | ruby_mimmalloc() doesn't increment allocated_size/allocations and decrement them in ruby_xfree() cause inconsistency. * gc.c (ruby_xfree): don't decrement allocated_size/allocations if allocated size record is 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline.rb (test_completion_proc_empty_result):nagachika2012-01-112-3/+16
| | | | | | ensure clearance of Readline's line_buffer after the test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-01-11svn2012-01-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2012-01-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (Init_dbm): fix a build error on mswin32.shirosaki2012-01-102-2/+8
| | | | | | | use `extern __declspec(dllimport)` for dll link with VC. [ruby-core:41996] [Bug #5869] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enumerator.rb (test_nested_iteration): fix typo.nobu2012-01-102-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (HEAP_OBJ_LIMIT): suppress narrowing down warning from gcc 4.2.nobu2012-01-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_exec): refix r34162; suppress warning and add description.naruse2012-01-102-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_attempted_completion_function):naruse2012-01-102-1/+6
| | | | | | use rb_memerror(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: in fact, i686-linux doesn't need to define _XOPEN_SOURCE 600.naruse2012-01-102-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (ruby_mimmalloc): defined for objects need not rb_objspace,naruse2012-01-106-6/+42
| | | | | | | | | | | | | | | | | but should return pointer suitable for ruby_xfree; main vm and main thread. patched by Sokolov Yura. https://github.com/ruby/ruby/pull/79 * internal.h: ditto. * vm.c (Init_BareVM): use ruby_mimmalloc. * ext/dl/cfunc.c: #include <ruby/util.h>. * ext/syslog/syslog.c: use xfree because it is allocated by ruby_strdup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_attempted_completion_function): fix ↵kazu2012-01-102-1/+6
| | | | | | compile error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline.rb (test_completion_proc_empty_result): rescue ↵nobu2012-01-101-3/+3
| | | | | | NoMemoryError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_attempted_completion_function):nobu2012-01-103-14/+31
| | | | | | | empty completion result does not mean memory error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_autoclose_true_closed_by_finalizer,nagachika2012-01-092-10/+39
| | | | | | | test_autoclose_true_closed_by_finalizer): skip if IO objects are not recycled yet. [ruby-dev:45098] [Bug #5850] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile#_close): clear @tempfile and @data[1] evennagachika2012-01-092-4/+14
| | | | | | | | when an exception is raised at @tempfile.close. [ruby-dev:45113] * lib/tempfile.rb (Tempfile#unlink): fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-01-10svn2012-01-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (run_finalizer): clear rb_thread_t::errinfo when ignorenagachika2012-01-092-0/+8
| | | | | | an exception under rb_protect(). [ruby-dev:45113] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix a typo.nagachika2012-01-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_attempted_completion_function):nagachika2012-01-092-4/+9
| | | | | | fix typos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c : don't embed struct heaps_slot to a heap block because itnari2012-01-092-13/+36
| | | | | | | can causes copy-on-write of memory page on heap block when its free_next is rewirted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/pathname.c (path_entries): add document suggested byakr2012-01-092-0/+24
| | | | | | | the thread [ruby-core:41959] [Bug #5859]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (family_addrinfo): don't require protocolakr2012-01-092-1/+10
| | | | | | | | equality. For example, protocol 0 and IPPROTO_TCP is not problem for TCP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (family_addrinfo): return the givenakr2012-01-093-0/+27
| | | | | | | | | addrinfo object. Patch by Ippei Obayashi. [ruby-dev:45095] [Bug #5845] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb (TestZlibGzipWriter#test_writer_wrap): setusa2012-01-092-0/+6
| | | | | | | binmode explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: free_slots is changed Singly linked list. clearnari2012-01-092-15/+12
| | | | | | free_slots before sweep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e