aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * string.c (rb_str_each_char_size): performance implement byglass2013-07-222-10/+6
| | | | | | using rb_str_length(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix commit missnobu2013-07-221-0/+14
| | | | | | * ext/win32/lib/win32/importer.rb: miss to add at r41936. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_eval.c: Check_TypedStructnobu2013-07-224-9/+11
| | | | | | | * vm_eval.c (eval_string_with_cref): check by Check_TypedStruct instead of rb_obj_is_kind_of. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2013-07-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_resize_capa): use RARRAY_RAWPTR() becauseko12013-07-222-2/+7
| | | | | | | | this code creates no new references. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_memfill): added.ko12013-07-222-8/+23
| | | | | | | | | | | * array.c (rb_ary_initialize): use ary_memfill(). * array.c (rb_ary_fill): ditto. * array.c (rb_ary_slice_bang): use RARRAY_RAWPTR() because this code creates no new references. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_slot_sweep): need to add empty RVALUE as freeobj.ko12013-07-222-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_eval.c: use file argumentnobu2013-07-223-1/+12
| | | | | | | | * vm_eval.c (eval_string_with_cref): use the given file name unless eval even if scope is given. additional fix for [Bug #8436]. based on the patch by srawlins at [ruby-core:56099] [Bug #8662]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* readline.c: $SAFEnobu2013-07-221-1/+5
| | | | | | | * ext/readline/readline.c (readline_s_delete_text): $SAFE=4 is obsolete. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (Init_readline): addedkouji2013-07-224-2/+84
| | | | | | | | | Readline.delete_text. [ruby-dev:45789] [Feature #6626] * ext/readline/extconf.rb: check for rl_delete_text() in Readline library. Thanks, Nobuyoshi Nakada, for the patch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* date_parse.c: missing wdaynobu2013-07-213-1/+14
| | | | | | | * ext/date/date_parse.c (rfc2822_cb): check if wday is given, since it can be omitted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* opttest.rb: adust stylesnobu2013-07-211-15/+55
| | | | | | | | * sample/optparse/opttest.rb: adjust indent and block stypes. use do/end wholly, put spaces around operators, and deep indent in parentheses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-07-22svn2013-07-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_sq_fast): Refine expressions.akr2013-07-212-4/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_mul): Use simple multiplication if yl is small.akr2013-07-212-8/+36
| | | | | | | | | | (rb_cstr_to_inum): Invoke bigsq instead of bigmul0. (bigsq): Re-implemented. (bigmul0): Invoke bigsq if two arguments are identical. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_mul_toom3): New function based on bigmul1_toom3.akr2013-07-212-242/+416
| | | | | | | | | | | | | (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
* * proc.c (proc_to_s): use PRIsVALUE to preserve the result encoding.ktsj2013-07-202-3/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_flatten): use NUM2INT to raise TypeError on 32bitnaruse2013-07-203-1/+15
| | | | | | platform. it's introduced by r42039 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-07-21svn2013-07-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (help): Fix environment variable name and argument.eregon2013-07-202-1/+7
| | | | | | | 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
* * common.mk: Document running a single test [Fixes GH-363]zzak2013-07-202-1/+6
| | | | | | | 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
* * sample/*: whitespace patch by Sergio Campama [Fixes GH-364]zzak2013-07-2025-311/+316
| | | | | | | https://github.com/ruby/ruby/pull/364 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/regexp.rdoc: [DOC] Fix typo in example [Fixes GH-365]zzak2013-07-202-1/+6
| | | | | | | 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
* Update a comment for Toom3.akr2013-07-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rename a() to b() and define a() for US-ASCIInaruse2013-07-201-49/+50
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_succ): add missing case NEIGHBOR_WRAPPED.naruse2013-07-203-1/+18
| | | | | | 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
* * array.c (rb_ary_resize): use simple memcpy because there are no newko12013-07-202-2/+6
| | | | | | | | references. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* safe.c: ruby_safe_level_4_warningnobu2013-07-202-0/+12
| | | | | | | * 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 (ary_make_shared): make shared array shady.ko12013-07-202-2/+8
| | | | | | | | | 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
* string.c: wchar succnobu2013-07-203-7/+64
| | | | | | | | | * 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
* encoding.c: add rb_enc_code_to_mbclennobu2013-07-203-0/+19
| | | | | | | | | | | * 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
* * 2013-07-20svn2013-07-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: split test_copy_streamnobu2013-07-201-72/+158
| | | | | | * 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
* gc.c: suppress warningnobu2013-07-191-1/+1
| | | | | | | * 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
* * gc.c: declare type_name() at the beggining of file.ko12013-07-192-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: reduce shady operations.ko12013-07-192-22/+48
| | | | | | | | | | | | | | | | | * array.c (rb_ary_modify, ary_make_partial, rb_ary_splice, rb_ary_replace, rb_ary_eql, rb_ary_compact_bang): use RARRAY_RAWPTR() instead of RARRAY_PTR(). * array.c (rb_ary_shift): use RARRAY_PTR_USE() without WB because there are not new relations. * array.c (ary_ensure_room_for_unshift): ditto. * array.c (rb_ary_sort_bang): ditto. * array.c (rb_ary_delete_at): ditto. * array.c (rb_ary_reverse_m): use RARRAY_RAWPTR() because there are not new relations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: reduce shade operations.ko12013-07-192-21/+33
| | | | | | | | | | | * array.c (rb_ary_modify): use RARRAY_RAWPTR(). * array.c (ary_make_substitution, rb_ary_s_create, ary_make_partial, rb_ary_splice, rb_ary_resize, rb_ary_rotate_m, rb_ary_times): use ary_memcpy(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_mem_clear): added. This operation doesn't need WBko12013-07-192-15/+33
| | | | | | | | | | | | because this operation creates a reference to Qnil. * array.c (ary_make_shared, rb_ary_store, rb_ary_shift_m, rb_ary_splice, rb_ary_resize, rb_ary_fill): use ary_mem_clear() instead of rb_mem_clear(). * array.c (ary_make_shared): use RARRAY_RAWPTR() instead of RARRAY_PTR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warnings.akr2013-07-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warnings.akr2013-07-191-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: fix commit miss.ko12013-07-192-1/+6
| | | | | | | | RGENGC_UNPROTECT_LOGGING should be 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_resurrect): use RARRAY_RAWPTR() because there is noko12013-07-192-6/+10
| | | | | | | | | writing. * array.c (rb_ary_new_from_values): use ary_memcpy(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_memcpy): add a function to copy VALUEs into aryko12013-07-192-13/+55
| | | | | | | | | | with write barrier. If ary is promoted, use write barrier correctly. * array.c (rb_ary_cat, rb_ary_unshift_m, rb_ary_dup, rb_ary_sort_bang, rb_ary_replace, rb_ary_plus): use ary_memcpy(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_store): use RARRAY_PTR_USE() intead of RARRAY_PTR().ko12013-07-192-1/+8
| | | | | | | | Clearing memory space doesn't need WBs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_ensure_room_for_push): use RARRAY_RAWPTR() instead ofko12013-07-192-7/+16
| | | | | | | | | | RARRAY_PTR. In this code, there are no "write" operation. * array.c (rb_ary_equal): ditto. * array.c (recursive_equal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c, internal.h (rb_gc_writebarrier_remember_promoted): add a newko12013-07-193-0/+14
| | | | | | | | | function to remember an specified object. This api is only experimental (strongly depend on WB/rgengc strategy). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_unprotect_logging): use (void *) for first parameterko12013-07-192-5/+11
| | | | | | | | because VALUE is not defined before including ruby/ruby.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/pathname.c (path_inspect): use PRIsVALUE to preservektsj2013-07-192-1/+6
| | | | | | the result encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb: Default search_versions are set 8.5 and 8.4 only. At ↵nagai2013-07-191-2/+5
| | | | | | | | | present, Tcl/Tk8.6 is not supported. * ext/tk/extconf.rb: Fix typo. [ruby-core:56084] [Bug #8656] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c: [DOC] add docs for :encoding option.ktsj2013-07-191-3/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e