aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * string.c (rb_str_upto): add optional argument to specifymatz2007-06-225-57/+51
| | | | | | | | | | exclusiveness. * range.c (range_step): use String#upto with optional argument. * range.c (range_each): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_to_s): revert the change from %p to %lx at YARVakr2007-06-222-1/+6
| | | | | | | | merge time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_to_s): show is_lambda.akr2007-06-222-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_sort): remove hash specific implementation.matz2007-06-212-42/+27
| | | | | | | | * hash.c (rb_hash_select): returns new hash, not assoc array. * hash.c (env_select): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern2): ID_JUNK test based on len, not by NUL.matz2007-06-212-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * yarvcore.c (rb_thread_mark): mark also thrown_errinfo.nobu2007-06-212-10/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern2): name may not be NUL-terminated.nobu2007-06-213-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_error.h (error_print): show full stacktrace onakr2007-06-192-1/+7
| | | | | | | non-SystemStackError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern2): use rb_intern2 to intern without trailingnobu2007-06-193-14/+17
| | | | | | | | | equal sign. * parse.y (rb_intern2, ripper_id2sym): fixed indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_ec.rb: set properties.nobu2007-06-190-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_load.c (load_ext, rb_require_safe): pass VALUE instead ofnobu2007-06-193-18/+24
| | | | | | | pointer. [ruby-Bugs-11659] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/{extconf.rb,ossl_ssl_session.c}:technorama2007-06-186-25/+317
| | | | | | | | | | | | | | | | | | Fix ruby-Bugs-11513. * ext/openssl/ossl_pkey_ec.c New methods EC::Point.[eql,make_affine!,invert!,on_curve?,infinity?] By default output the same key form as the openssl command. * ext/openssl/ossl_rand.c New method Random.status? * test/openssl/test_ec.rb New tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_load.c (rb_require_safe, ruby_init_ext): load with ruby levelnobu2007-06-184-7/+42
| | | | | | | | | | cfp. [ruby-core:10779] * eval_intern.h, vm.c (rb_vm_call_cfunc): new function to call a function with ruby level cfp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yycompile): disable trace while creating ruby_debug_lines.nobu2007-06-185-98/+107
| | | | | | | | | | | | [ruby-talk:253586] * thread.c (ruby_suppress_tracing): new function to call a function with suppressing trace. * lib/debug.rb, lib/tracer.rb: for YARV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): return EXIT_FAILURE if any exceptions occurednobu2007-06-182-0/+19
| | | | | | | in at_exit blocks. [ruby-core:11263] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (env_mark): fix to mark block.proc.ko12007-06-172-6/+14
| | | | | | | | * vm.c (th_make_proc_from_block): set created proc to block->proc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (vm_stack_dump_raw): hide VM stack trace.ko12007-06-172-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (sigsegv): clear gc_stress flag on SEGV.ko12007-06-172-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_global_entry, rb_f_untrace_var, rb_alias_variable,nobu2007-06-172-34/+51
| | | | | | | | | | rb_generic_ivar_table, generic_ivar_get, generic_ivar_set, generic_ivar_defined, generic_ivar_remove, rb_mark_generic_ivar, rb_free_generic_ivar, rb_copy_generic_ivar, rb_obj_instance_variables): suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_path2class): get rid of dangling pointer caused bynobu2007-06-173-7/+9
| | | | | | | optimized out value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2007-06-171-13/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_method_missing): avoid an warning "too many argumentsakr2007-06-172-1/+6
| | | | | | | for format string" on "./ruby -ve 'def m() super end; m'". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (garbage_collect): re-introduce ruby_current_node marking code.akr2007-06-162-0/+7
| | | | | | | [ruby-dev:31005] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typo.akr2007-06-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_sweep): re-introduce heap extension strategy change.akr2007-06-162-2/+17
| | | | | | | [ruby-dev:31005] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix trap's doc.akr2007-06-151-7/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit: new file to ease debugging using gdb.akr2007-06-152-0/+146
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (default_handler): func argument removed.akr2007-06-152-59/+78
| | | | | | | | | (trap_handler): support SYSTEM_DEFAULT. call default_handler internally. (sig_trap): don't call default_handler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (realclean): separate local and ext.nobu2007-06-153-4/+21
| | | | | | | * ext/extmk.rb: not remove unrelated directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref.akr2007-06-151-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * keywords: enclose C code in declaration section by %{ and %}.akr2007-06-153-42/+52
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap_handler): trap("SIGSEGV", "DEFAULT") may cause wrongakr2007-06-152-7/+13
| | | | | | | | trap error because SIG_DFL may be zero. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* re-introduce RUBY_GC_STRESS test removed by YARV.akr2007-06-151-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def(setconstant, toregexp): fix to mark object correctly.ko12007-06-152-2/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c: exchange semantics of Hash#each and Hash#each_pair.ko12007-06-154-7/+25
| | | | | | | | | | pointed out by [ruby-dev:30997]. * test/ruby/test_iterator.rb: ditto. * test/ruby/test_yield.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb: remove debug code (GC.stress=true).ko12007-06-152-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (th_yield_setup_args): |v| should work as |v,|.ko12007-06-158-34/+75
| | | | | | | | | | | | | | ex) def m;yield 1, 2; end; m{|v| p v} #=> 1 * parse.y: apply above change for "for" statement. * test/ruby/test_assignment.rb: ditto * test/ruby/test_basicinstructions.rb: ditto. * test/ruby/test_iterator.rb: ditto. * test/ruby/test_yield.rb: ditto. * compile.c (iseq_compile_each): fix debug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_finalize_1): rb_thread_t#errinfo should be clear withko12007-06-152-1/+9
| | | | | | | | Qnil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_cont_call): forbid cross fiber continuation call.ko12007-06-153-25/+17
| | | | | | | | * test/ruby/test_fiber.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: fix to show line information whether test succeeds.ko12007-06-153-5/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous change.akr2007-06-141-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_load.c (Init_load): delay allocating an array for rb_load_pathakr2007-06-149-9/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to avoid GC problem in very early stage. (RUBY_GC_STRESS causes GC in such stage.) * variable.c (rb_gc_mark_global_tbl): rb_global_tbl may be 0 in very early stage. * thread.c (thread_cleanup_func) [IA64]: clear register stack position. (thread_start_func_2) [IA64]: record the beginning of register stack using extra argument. (rb_gc_save_machine_context) [IA64]: record the end of register stack. * gc.c [IA64] (SET_STACK_END): record the end of register stack. (garbage_collect) [IA64]: use recorded register stack area for GC marking. (yarv_machine_stack_mark) [IA64]: GC mark from the register stack area. * yarvcore.c [IA64] (rb_gc_register_stack_start): defined. (Init_VM): store th->self on stack to fix GC problem. (Init_yarv) [IA64]: initialize the beginning of register stack. * yarvcore.h (struct rb_thread_struct) [IA64]: new members for register stack area. * thread_pthread.ci (thread_start_func_1) [IA64]: call thread_start_func_2 with the end of register stack. * cont.c (struct rb_context_struct) [IA64]: new members for register stack area. (cont_mark) [IA64]: GC mark from register stack area. (cont_free) [IA64]: free saved register stack. (cont_save_machine_stack) [IA64]: record the position and contents of the register stack. (cont_capture): store cont->self on stack to fix GC problem. (cont_restore_1) [IA64]: restore the register stack. [IA64] (register_stack_extend): new function. (cont_restore_0) [IA64]: call register_stack_extend instead of cont_restore_1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser): handle morenobu2007-06-142-1/+6
| | | | | | | extensions. [ruby-dev:30972] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2007-06-14eban2007-06-141-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb: documente updated.akr2007-06-142-2/+7
| | | | | | | suggested by NaHi. [ruby-dev:30966] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (garbage_collect): update IA64 register stack code.matz2007-06-132-22/+7
| | | | | | [ruby-dev:30971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (call_args): no allow splat after assocs. takesmatz2007-06-132-60/+7
| | | | | | | | consistency over compatibility. * parse.y (call_args2): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (darwin): prohibit loading extension libraries tonobu2007-06-123-5/+11
| | | | | | | miniruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* resurrection of improperly deleted ChangeLog entryshyouhei2007-06-121-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (Logging.quiet, Logging.message): added quiet flag andnobu2007-06-122-2/+10
| | | | | | use it. [ruby-core:10909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e