aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * compile.c (iseq_compile_each): fix thorw insn option of next.ko12007-08-162-3/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_set_arguments), insnhelper.ciko12007-08-164-7/+24
| | | | | | | | | | (vm_callee_setup_arg, vm_yield_setup_args): fix block parameter problems. [ruby-dev:31437], [ruby-dev:31440] * bootstraptest/test_block.rb: add a test of [ruby-dev:31440]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (ruby_iseq_disasm): fix to show arg_simple value.ko12007-08-162-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (throw): insert a RUBY_VM_CHECK_INTS(). [ruby-dev:31361]ko12007-08-163-3/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): fix next/redo stack consistency.ko12007-08-164-30/+132
| | | | | | | | | | [ruby-dev:31373] * bootstraptest/test_syntax.rb: add tests for above. * sample/test.rb: fix to use __FILE__ instead of $0 to know basedir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (BASERUBY): need AC_SUBST. [ruby-dev:31438]eban2007-08-162-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix "&" handling in block parameter.akr2007-08-161-6/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31437].akr2007-08-161-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/sentence.rb: Sentence class implementedakr2007-08-165-277/+482
| | | | | | | | | | | | | | based on sentgen.rb * test/ruby/sentgen.rb: removed. * test/ruby/test_assignment.rb: use sentence.rb. * test/ruby/test_yield.rb: block parameter passing emulator implemented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (BASERUBY): check if base ruby is runnable first.nobu2007-08-162-17/+23
| | | | | | | [ruby-core:11900] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (aix): enable shared by default.nobu2007-08-164-35/+47
| | | | | | | | | | * configure.in (aix): for 64bit-mode AIX. [ruby-dev:31401] + use CC for LDSHARED if non-gcc, + moved -G option from *LDFLAGS to LDSHARED, + set -brtl only in XLDFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update Dir.mktmpdir document.akr2007-08-161-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big_lshift): make shift offset long type.akr2007-08-162-10/+19
| | | | | | | | | | (big_rshift): ditto. (rb_big_lshift): ditto. (big_rshift): ditto. [ruby-dev:31434] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_readpartial): argf_forward needs argc and argv.nobu2007-08-152-4/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_m_yield): added. use this functionko12007-08-153-4/+15
| | | | | | | | for Fiber#yield instead of rb_fiber_yield. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to remove.akr2007-08-151-128/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tmpdir.rb (Dir.mktmpdir): new method. [ruby-dev:31416]akr2007-08-152-0/+65
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (os_live_obj): fix to skip T_VALUES.ko12007-08-153-0/+12
| | | | | | | | * sample/test.rb: add an ObjectSpace test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * inits.c (rb_call_inits): change initializing order.ko12007-08-152-1/+6
| | | | | | | | [ruby-dev:31420] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (ARGF_FORWARD): wrongly compares with current_file withmatz2007-08-152-5/+10
| | | | | | rb_stdout. should be rb_stdin. [ruby-cvs:20177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize, argf_each_line, argf_each_byte): suppressnobu2007-08-152-7/+6
| | | | | | | warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: remove "//" type comment.ko12007-08-152-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* TestRubyYieldGen#test_yield needs too long time.akr2007-08-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: fix rules around f_margs. "make test" passes all tests.ko12007-08-154-15/+34
| | | | | | | | * bootstraptest/test_block.rb: add some tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_delete_key): delete the entry without calling block.nobu2007-08-153-16/+57
| | | | | | | | | | * hash.c (rb_hash_shift): should consider iter_lev too. * hash.c (delete_if_i): use rb_hash_delete_key() so that the block isn't called twice. [ruby-core:11556] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_geteuid): fix strange cast. [ruby-dev:31417]ko12007-08-152-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_getc): should returnsmatz2007-08-153-75/+85
| | | | | | | | | | | | | | | one-character string. * ext/stringio/stringio.c: remove unnecessary prototypes. * ext/stringio/stringio.c (strio_getbyte): new method. * ext/stringio/stringio.c (strio_readbyte): new method. * ext/stringio/stringio.c (strio_ungetc): should take a string as an input. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (assert_check): don't call newtest.akr2007-08-142-1/+8
| | | | | | | | | (assert_equal): call newtest. (assert_match): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (assert_check): new method.akr2007-08-143-15/+41
| | | | | | | | | | | | (assert_match): new method. (assert_equal): use assert_check. (pretty): give failure description as an argument. * bootstraptest/test_exception.rb: use assert_match to describe the test for [ruby-dev:31407]. [ruby-dev:31412] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_close): always close via method.matz2007-08-142-53/+46
| | | | | | | | | | | | | | | * io.c (Init_IO): remove obsolete Kernel#getc. * io.c (argf_each_line): should use #each_line, not #each. * io.c (argf_each_line): simplified. * io.c (argf_getline): should handle non T_FILE object in ARGV. * io.c (argf_each_byte): each_byte should yield bytes not one-character strings. [ruby-dev:31374] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (Init_Proc), eval.c (Init_eval), eval_intern.h: moveko12007-08-148-8/+44
| | | | | | | | | | | | init place of exception_error. * inits.c: ditto. * eval.c (Init_eval): set exception_error#throwed_state as TAG_FATAL. [ruby-dev:31407] * bootstraptest/test_exception.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: change test order (test -> btest).ko12007-08-143-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: 0.1.8 -> 0.1.9.kou2007-08-134-8/+13
| | | | | | | | | | * test/rss/test_version.rb: followed the above change. * lib/rss/parser.rb: fixed a bug that handles unintended elements. Thanks to Takuo Yonezawa. [ruby-list:43841] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_clear_trace_func, rb_thread_stop_timer_thread):nobu2007-08-132-12/+26
| | | | | | | | | | | declarations for forward refernces. * eval.c (rb_longjmp, eval): use local variable. * eval.c (rb_longjmp): string object not to be optimized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: make ftp passive mode to avoid NAT problem.akr2007-08-132-0/+6
| | | | | | | [ruby-dev:31377] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_raise): check if target thread isko12007-08-123-2/+27
| | | | | | | | | thrown by another thread or not. [ruby-dev:31371] * bootstraptest/test_thread.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_peephole_optimize): fix peephole optimizationko12007-08-123-4/+16
| | | | | | | | | bug. [ruby-dev:31360] * bootstraptest/test_syntax.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* insnhelper.ci: missed at last commit.ko12007-08-121-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (debug_print_pre): fix to show control frame count.ko12007-08-126-146/+199
| | | | | | | | | | | | | | | | * insns.def (opt_call_c_function): fix operand type. * lib/vm/instruction.rb: ditto. * insnhelper.ci (vm_push_frame, vm_pop_frame): fix to show control stack status on if VMDEBUG == 2. * vm.h: add a comment about VMDEBUG. * iseq.c (find_prev_line_no): fix to skip bug report if line is not found. * lib/vm/instruction.rb: fix to use build_string() on source code generators. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/yasmdata.rb.tmpl: fix type and name.ko12007-08-123-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: reverted some wrongly erased "o" optionstadf2007-08-102-10/+15
| | | | | | | | (pointed out by nobu). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_start_func_2): not re-raise to main thread if it isnobu2007-08-103-5/+15
| | | | | | | joining the current thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_create_core): inherit the priority of creatingnobu2007-08-103-4/+6
| | | | | | | | thread. submitted at [ruby-core:11873] by David Flanagan <david AT davidflanagan.com>. [ruby-core:11876] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.ci (native_thread_apply_priority): set actuallynobu2007-08-102-0/+6
| | | | | | | applied prority. [ruby-core:11876] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_start_func_2): let abort_on_exception work.nobu2007-08-092-0/+22
| | | | | | | [ruby-core:11873] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (internal_id_gen): internal ID must be bigger thannobu2007-08-093-3/+9
| | | | | | | tLAST_TOKEN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt): check if rhs has value before assignment insteadnobu2007-08-092-50/+68
| | | | | | | | | inside node_assign_gen(). [ruby-dev:31293] * parse.y (call_bin_op_gen, call_uni_op_gen): split call_op_gen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update syntax (f_marg_list).akr2007-08-091-9/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_marg_list): renamed from f_marg_head.nobu2007-08-092-10/+17
| | | | | | | | * parse.y (f_margs): allow multiple mandatory arguments after a splat. [ruby-dev:31153] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_cycle): typo fixed. a patch from Kazuhiromatz2007-08-083-4/+9
| | | | | | NISHIYAMA <zn AT mbf.nifty.com>. [ruby-dev:31362] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e