* gc.c: declare type_name() at the beggining of file.



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

* gc.c (heap_assign_slot): suppress implicit conversion warning.
  delta is not greater than sizeof(RVALUE).

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

* test/ruby/test_io.rb (TestIO#test_copy_stream): split huge test.

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

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

* encoding.c (rb_enc_code_to_mbclen): add new function which returns
  mbclen from codepoint like as rb_enc_codelen() but 0 for invalid
  char.
* include/ruby/encoding.h (rb_enc_code_to_mbclen): declaration and
  shortcut macro.


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

* string.c (enc_succ_char, enc_pred_char): consider wchar case.
  [ruby-core:56071] [Bug #8653]
* string.c (rb_str_succ): do not replace with invalid char.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c (ary_make_shared): make shared array shady.
  Making non-shady shared array causes SEGV (see rubyci).
  It seems a bug around shared array.



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

* safe.c (ruby_safe_level_4_warning): define for old extension
  libraries.  [Bug #8652]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c (rb_ary_resize): use simple memcpy because there are no new
  references.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c (rb_str_succ): add missing case NEIGHBOR_WRAPPED.
  r42078 caused buggy behavior like "\xFF".b -> "\x01\xFF".b

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
rename a() to b() and define a() for US-ASCII

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Update a comment for Toom3.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doc/regexp.rdoc: [DOC] Fix typo in example [Fixes GH-365]
  Patch by Juanito Fatas https://github.com/ruby/ruby/pull/365


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sample/*: whitespace patch by Sergio Campama [Fixes GH-364]
  https://github.com/ruby/ruby/pull/364


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: Document running a single test [Fixes GH-363]
  Patch by Avdi Grimm https://github.com/ruby/ruby/pull/363


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk (help): Fix environment variable name and argument.
  Actually it can also be a directory or any argument for
  test/unit runner. [Fixes GH-363]

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c (rb_hash_flatten): use NUM2INT to raise TypeError on 32bit
  platform. it's introduced by r42039

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c (proc_to_s): use PRIsVALUE to preserve the result encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c (bary_mul_toom3): New function based on bigmul1_toom3.
  (bary_mul_toom3_branch): Call bary_mul_toom3.
  (rb_big_mul_toom3): Ditto.
  (bigmul1_toom3): Removed.
  (big_real_len): Ditto.
  (big_split): Ditto.
  (big_split3): Ditto.



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