* test/readline/test_readline.rb (test_completion_proc_empty_result): rescue 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): fix compile error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c (ruby_mimmalloc): defined for objects need not rb_objspace,
  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
* gc.c: in fact, i686-linux doesn't need to define _XOPEN_SOURCE 600.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/readline/readline.c (readline_attempted_completion_function):
  use rb_memerror().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm.c (vm_exec): refix r34162; suppress warning and add description.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c (HEAP_OBJ_LIMIT): suppress narrowing down warning from gcc 4.2.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_enumerator.rb (test_nested_iteration): fix typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/dbm/dbm.c (Init_dbm): fix a build error on mswin32.
  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
fix a typo

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2012-01-11

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/readline/test_readline.rb (test_completion_proc_empty_result):
  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
* gc.c (ruby_mimmalloc): don't set allocated size to header.
  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
* string.c (rb_str_concat): set array element after definition
  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
* 2012-01-12

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/mkmf.rb: verbose-mode can use by RM, RMDIRS, etc.
  (e.g. make V=1 realclean)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* object.c: Added examples for Object#is_a? and Object#instance_of?
  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
* cont.c (cont_restore_0): prevent optimizing out `sp'. sp is used for
  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
* lib/mkmf.rb: fix r33904 and revert r33905.  initialize global
  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
* eval.c: Improve rdoc for Module.constants [issue #5887]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e