ko1
3aa45744ab
* bootstraptest/runner.rb: set default directory to
...
'/tmp/bootstraptest.tmpwd' and add --dir option.
fix to output driver and target information.
* common.mk: fix to run btest on BASERUBY and
add OPTS to pass option ("make btest OPTS=...").
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 06:52:59 +00:00
akr
1fb587ddec
* enum.c (enum_minmax): fix SEGV by [].minmax.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-23 18:10:59 +00:00
matz
3f2fe37200
* enum.c (enum_minmax): new method to get the minimum and maximum
...
values from the enumerable at once.
* enum.c (enum_minmax_by): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-23 15:05:05 +00:00
akr
fe377d3b8e
update document to follow MatchData#inspect implementation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-23 08:34:21 +00:00
akr
18ee945174
* re.c (match_inspect): MatchData#inspect implemented.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-23 08:26:08 +00:00
matz
fdf213b71a
* hash.c (rb_hash_assoc): new method.
...
* hash.c (rb_hash_rassoc): ditto.
* hash.c (rb_hash_flatten): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-22 16:26:07 +00:00
matz
115410ecde
* string.c (rb_str_upto): add optional argument to specify
...
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
2007-06-22 16:23:16 +00:00
akr
f11a6f2d65
* proc.c (proc_to_s): revert the change from %p to %lx at YARV
...
merge time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-22 10:56:43 +00:00
akr
e2bc064096
* proc.c (proc_to_s): show is_lambda.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-22 10:34:19 +00:00
matz
0bc84af1f9
* hash.c (rb_hash_sort): remove hash specific implementation.
...
* 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
2007-06-21 14:50:14 +00:00
matz
967cca2f8d
* parse.y (rb_intern2): ID_JUNK test based on len, not by NUL.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-21 14:16:00 +00:00
nobu
5a164c1891
* yarvcore.c (rb_thread_mark): mark also thrown_errinfo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-21 10:40:50 +00:00
nobu
3fc180ebeb
* parse.y (rb_intern2): name may not be NUL-terminated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-21 08:12:14 +00:00
akr
f8e1e5389f
* eval_error.h (error_print): show full stacktrace on
...
non-SystemStackError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-19 23:27:47 +00:00
nobu
9a7a11564c
* parse.y (rb_intern2): use rb_intern2 to intern without trailing
...
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
2007-06-19 19:43:59 +00:00
nobu
362c3c0e5d
* test/openssl/test_ec.rb: set properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-19 15:26:26 +00:00
nobu
f91ec98d43
* eval_load.c (load_ext, rb_require_safe): pass VALUE instead of
...
pointer. [ruby-Bugs-11659]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-19 01:53:31 +00:00
technorama
9fa80b19a6
* ext/openssl/{extconf.rb,ossl_ssl_session.c}:
...
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
2007-06-18 08:56:21 +00:00
nobu
1c03862049
* eval_load.c (rb_require_safe, ruby_init_ext): load with ruby level
...
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
2007-06-18 08:02:30 +00:00
nobu
942a54302d
* parse.y (yycompile): disable trace while creating ruby_debug_lines.
...
[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
2007-06-18 07:55:45 +00:00
nobu
31345380ac
* eval.c (ruby_cleanup): return EXIT_FAILURE if any exceptions occured
...
in at_exit blocks. [ruby-core:11263]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-18 04:52:59 +00:00
ko1
8adc4541ff
* vm.c (env_mark): fix to mark block.proc.
...
* 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
2007-06-17 17:50:56 +00:00
ko1
d220634bb7
* vm_dump.c (vm_stack_dump_raw): hide VM stack trace.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 17:47:35 +00:00
ko1
4471bf2356
* signal.c (sigsegv): clear gc_stress flag on SEGV.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 17:46:25 +00:00
nobu
c72ecb25ad
* variable.c (rb_global_entry, rb_f_untrace_var, rb_alias_variable,
...
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
2007-06-17 16:12:32 +00:00
nobu
3dc070e90e
* variable.c (rb_path2class): get rid of dangling pointer caused by
...
optimized out value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 15:56:36 +00:00
akr
7e48040b3a
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 02:30:13 +00:00
akr
a03d4a0635
* eval.c (rb_method_missing): avoid an warning "too many arguments
...
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
2007-06-17 02:12:14 +00:00
akr
ccbdd90865
* gc.c (garbage_collect): re-introduce ruby_current_node marking code.
...
[ruby-dev:31005]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-16 13:45:30 +00:00
akr
38f9878b59
fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-16 13:30:58 +00:00
akr
c4d2965fb6
* gc.c (gc_sweep): re-introduce heap extension strategy change.
...
[ruby-dev:31005]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-16 12:39:35 +00:00
akr
8092d0bd87
fix trap's doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 14:33:59 +00:00
akr
afa74d6cae
* .gdbinit: new file to ease debugging using gdb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 13:59:45 +00:00
akr
787f96eb97
* signal.c (default_handler): func argument removed.
...
(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
2007-06-15 13:38:32 +00:00
nobu
a96b6f0604
* common.mk (realclean): separate local and ext.
...
* ext/extmk.rb: not remove unrelated directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 13:31:54 +00:00
akr
868e180cef
add ML ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 12:14:21 +00:00
akr
a30fe695e6
* keywords: enclose C code in declaration section by %{ and %}.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 11:50:45 +00:00
akr
cebc9bb19d
* signal.c (trap_handler): trap("SIGSEGV", "DEFAULT") may cause wrong
...
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
2007-06-15 09:58:10 +00:00
akr
e3dd9a78db
re-introduce RUBY_GC_STRESS test removed by YARV.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 08:38:58 +00:00
ko1
5cbefb96b9
* insns.def(setconstant, toregexp): fix to mark object correctly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 06:55:36 +00:00
ko1
afb1901848
* hash.c: exchange semantics of Hash#each and Hash#each_pair.
...
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
2007-06-15 04:25:07 +00:00
ko1
7307d38c4f
* test/ruby/test_iterator.rb: remove debug code (GC.stress=true).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:37:49 +00:00
ko1
7567fbf080
* vm.c (th_yield_setup_args): |v| should work as |v,|.
...
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
2007-06-15 03:27:33 +00:00
ko1
70df6311af
* eval.c (ruby_finalize_1): rb_thread_t#errinfo should be clear with
...
Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:22:51 +00:00
ko1
31ac946975
* cont.c (rb_cont_call): forbid cross fiber continuation call.
...
* test/ruby/test_fiber.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:20:13 +00:00
ko1
f84c8cb190
* sample/test.rb: fix to show line information whether test succeeds.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:18:12 +00:00
akr
d3be3d7102
fix previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 08:37:13 +00:00
akr
3cd5af52e9
* eval_load.c (Init_load): delay allocating an array for rb_load_path
...
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
2007-06-14 08:35:20 +00:00
nobu
0dc3a071d3
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser): handle more
...
extensions. [ruby-dev:30972]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 08:08:13 +00:00
eban
e948c70e06
* 2007-06-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 06:38:07 +00:00