aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* insns.def: avoid type-punned pointer castnobu2014-06-202-3/+3
| | | | | | | * insns.def (once), vm_insnhelper.c (vm_once_exec): turn the parameter into a VALUE to get rid of type-punned pointer cast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_regexp.rb: split test_oncenobu2014-06-201-3/+6
| | | | | | | * test/ruby/test_regexp.rb (test_once): split for each cases than separating by comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_regexp.rb: assert prefixnobu2014-06-201-2/+4
| | | | | | | * test/ruby/test_regexp.rb: rename and prefix `assert_` to show caller method names in backtrace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gmake.mk: for lovenobu2014-06-201-3/+11
| | | | | | * defs/gmake.mk: add dependencies for love. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Don't erase for verbose mode.akr2014-06-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_optimization.rb: redefine separatelynobu2014-06-201-29/+34
| | | | | | | * test/ruby/test_optimization.rb (assert_redefine_method): redefine optimized methods in separate processes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_settracefunc.rb: rewrite tests withko12014-06-192-99/+48
| | | | | | | | | | assert_consistent_call_return(). assert_consistent_call_return() is also modified to check consistency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (rb_iseq_compile_node): put start label of block afterko12014-06-193-1/+60
| | | | | | | | | | | | trace (b_call). [Bug #9964] * test/ruby/test_settracefunc.rb: add a test. added assert_consistent_call_return() method check call/return consistency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-06-20svn2014-06-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_catch_protect): fix same problem of [Bug #9961].ko12014-06-192-2/+9
| | | | | | | | * vm_eval.c (rb_iterate): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: fix dependenciesnobu2014-06-192-19/+20
| | | | | | | * common.mk, defs/gmake.mk: fix install and uninstall dependencies with parallel make. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (rb_vm_rewind_cfp): add new function to rewind specified cfpko12014-06-196-14/+90
| | | | | | | | | | | | | | | with invoking RUBY_EVENT_C_RETURN. [Bug #9961] * vm_core.h: ditto. * eval.c (rb_protect): use it. * eval.c (rb_rescue2): ditto. * vm_eval.c (rb_iterate): ditto. * test/ruby/test_settracefunc.rb: add a test. * vm_core.h (rb_name_err_mesg_new): git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (invoke_block_from_c): move call/return event timing forko12014-06-194-15/+51
| | | | | | | | | | | | bmethod. It can invoke inconsistent call event if this call raises argument error. [Bug #9959] * vm_insnhelper.c (vm_call_bmethod_body): ditto. * test/ruby/test_settracefunc.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h: add VM_FRAME_MAGIC_RESCUE to recognize normal block orko12014-06-195-7/+65
| | | | | | | | | | | | | | rescue clause. * vm.c (vm_exec): use VM_FRAME_MAGIC_RESCUE on at rescue/ensure. * test/ruby/test_settracefunc.rb: should not invoke b_return at rescue clause. [Bug #9957] * vm_dump.c (control_frame_dump): check VM_FRAME_MAGIC_RESCUE. * vm_dump.c (vm_stack_dump_each): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-06-19svn2014-06-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c: Implement Method#currynobu2014-06-194-1/+101
| | | | | | | * proc.c (rb_method_curry): Implement Method#curry, which delegates to to_proc.curry. [ruby-core:62212] [Feature #9783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-06-18svn2014-06-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* constify parametersnobu2014-06-1823-131/+134
| | | | | | | | * include/ruby/intern.h: constify `argv` parameters. * include/ruby/ruby.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2014-06-170-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (gets, readline): read lines without LF properly.shugo2014-06-173-4/+54
| | | | | | | | [ruby-core:63205] [Bug #9949] * test/net/ftp/test_buffered_socket.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: pass unknown optionsnobu2014-06-173-4/+30
| | | | | | | | * eval.c (extract_raise_opts): pass unknown options to the exception, so that exception class can receive a hash argument. [ruby-core:63203] [Feature #8257] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (obj_memsize_of): memsize_of(T_ZOMBIE) returns 0, not a rb_bug.ko12014-06-172-1/+8
| | | | | | | | | ObjectSpace.count_objects_size() uses memsize_of(T_ZOMBIE). This bug introduced at r46348. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: extract date at build timenobu2014-06-162-4/+2
| | | | | | | * Makefile.in, configure.in (Makefile): extract RUBY_RELEASE_DATE from version.h at each build time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-06-17svn2014-06-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* runner.rb: instance variablenobu2014-06-161-2/+2
| | | | | | | * test/runner.rb (before_setup, after_teardown): use an instance variable instead of a class variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: failure message should be passed as an argument.ko12014-06-162-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: capture TracePoint stat before setup and compareko12014-06-162-6/+13
| | | | | | | | it after teardown. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/uri/test_generic.rb: fix wrong arguments for test case.hsbt2014-06-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/date/test_date_arith.rb: remove unused block argument.hsbt2014-06-161-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/date/test_date_strptime.rb: remove useless variable.hsbt2014-06-161-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: no copy of interned stringsnobu2014-06-161-5/+5
| | | | | | | * string.c (sym_succ, sym_cmp, sym_casecmp, sym_match, sym_aref): not need to make copy of interned strings, use directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_method.c: no RTEST on mere flagnobu2014-06-161-1/+1
| | | | | | | * vm_method.c (basic_obj_respond_to): `priv` is not a VALUE but a mere flag, so cannot call RTEST() on it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* process.c: use UTF-8nobu2014-06-163-0/+21
| | | | | | | * process.c (open): use UTF-8 version function to support non-ascii path properly. [ruby-core:63185] [Bug #9946] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-06-16svn2014-06-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* process.c: variable as macro argumentnobu2014-06-161-1/+2
| | | | | | | * process.c (run_exec_open): use a local variable to get rid of RARRAY_AREF() is evaluated multiple times by RSTRING_PTR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_method.c: separate ID selectionnobu2014-06-151-5/+9
| | | | | | | * vm_method.c (rb_method_entry_make): separate selection of IDs to be private from condition of method to be defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_file_exhaustive.rb: fix expected valuenobu2014-06-151-1/+1
| | | | | | | * test/ruby/test_file_exhaustive.rb (test_expand_path_memsize): correct expected value, count terminator byte. [Bug #9934] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_file_exhaustive.rb: fix assertionnobu2014-06-151-1/+1
| | | | | | | | * test/ruby/test_file_exhaustive.rb (test_expand_path_memsize): wrong expected value, considering a prefix (drive letter or UNC) on DOSISH platforms. [Bug #9934] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* process.c: use RB_TYPE_Pnobu2014-06-151-1/+1
| | | | | | | * process.c (check_exec_redirect): use RB_TYPE_P instead of single comparison of TYPE(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* runner.rb: use class variablenobu2014-06-141-3/+4
| | | | | | | * test/runner.rb (after_teardown): turn zombie traces hash into a class variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* runner.rb: check incrementnobu2014-06-141-1/+3
| | | | | | | * test/runner.rb (after_teardown): check increment of active trace events. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-06-15svn2014-06-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* runner.rb: include event namenobu2014-06-141-1/+1
| | | | | | | * test/runner.rb (after_teardown): include active trace event name in the failure message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Restore date field.akr2014-06-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a typo.akr2014-06-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: non-recursive rcombinate0nobu2014-06-143-14/+30
| | | | | | | * array.c (rcombinate0): remove recursion, by looping with indexes stored in `p`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: non-recursive rpermute0nobu2014-06-143-14/+28
| | | | | | | * array.c (rpermute0): remove recursion, by looping with indexes stored in `p`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: non-recursive permute0nobu2014-06-143-19/+40
| | | | | | | * array.c (permute0): remove recursion, by looping with indexes stored in `p`. [ruby-core:63103] [Bug #9932] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: combinate0nobu2014-06-141-17/+23
| | | | | | * array.c (combinate0): extract. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: fix wrong capanobu2014-06-142-2/+10
| | | | | | | | * string.c (rb_str_resize): update capa only when buffer get reallocated. http://d.hatena.ne.jp/nagachika/20140613/ruby_trunk_changes_46413_46420#r46413 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e