nobu
cf46a2fce6
* parse.y (dsym): return non-null NODE even if yyerror(). based on a
...
patch from from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31085]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-29 02:23:13 +00:00
matz
baaa30ec03
* parse.y (assoc_list): odd number check only for NODE_ARRAY.
...
[ruby-dev:31082]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 14:33:45 +00:00
akr
dea470cca4
debug environment variable refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 14:22:30 +00:00
ko1
480c602bdc
* win32/Makefile.sub: define FUNC_FASTCALL macro.
...
* vm.h: fix to use FUNC_FASTCALL macro.
TODO: add FUNC_FASTCALL macro by configure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 13:31:08 +00:00
akr
c4a0a17df1
refine previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 11:41:25 +00:00
ko1
b73d7a44aa
* compile.c: fix to remove -Wall warnings on gcc.
...
* compile.c (make_name_with_str): removed. use rb_sprintf() instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 10:41:39 +00:00
akr
8253094f39
* bignum.c (rb_big_hash): fix hash area.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 09:59:47 +00:00
nobu
a0aa5f977e
* ext/stringio/stringio.c (strio_getline): local variable to be
...
initialized. [ruby-dev:31077]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 06:00:09 +00:00
usa
14010ce4a3
* gc.c (rb_obj_id): use SIGNED_VALUE instead of long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-28 02:32:25 +00:00
ko1
fd58a0836f
* common.mk (run.gdb): fix to load $(srcdir)/.gdbinit
...
* vm.c (rb_vm_set_finish_env): add a cast.
* vm.h: support __fastcall for MSVC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 20:03:53 +00:00
ko1
c1849cf094
* bootstraptest/runner.rb: fix to untouch $:.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 17:14:10 +00:00
ko1
c1ac175af5
* compile.c (setup_args): change parameter type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 17:13:13 +00:00
usa
8e11ff411a
* parse.y (rb_intern2): unconstify cast.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 17:05:03 +00:00
akr
d9987aa704
* parse.y (rb_intern2): don't allocate a string object at first.
...
[ruby-dev:31064]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 16:45:56 +00:00
ko1
caa535286d
* bootstraptest/runner.rb: fix to show file name.
...
* bootstraptest/test_*.rb: add bootstarp tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 16:26:31 +00:00
ko1
fd78c2193e
* include/ruby/node.h, parse.y, gc.c, iseq.c: remove NODE_CREF.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 16:23:49 +00:00
ko1
4a7d47e41a
* compile.c (iseq_compile_each): fix popped backref and others.
...
([ruby-dev:31068]).
* compile.c (iseq_compile_each): remove needless statements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 16:21:57 +00:00
usa
cd72ed32cc
* win32/win32.c: remove unused functions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 14:52:00 +00:00
usa
1aa54c6db6
* include/ruby/win32.h, win32/Makefile.sub, win32/configure.bat,
...
win32/mkexports.rb, win32/setup.mak, win32/win32.c: import
x64-mswin64 port.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 11:47:53 +00:00
ko1
41e9245e85
* compile.c (iseq_translate_direct_threaded_code): fix prototype
...
function name.
* vm.h: add correct cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 11:33:01 +00:00
ko1
c44e2cdd58
* vm_evalbody.ci: support OPT_CALL_THREADED_CODE.
...
* insns.def, vm.c, vm.h: ditto.
* vm.h: add VM_CFP_CNT() and VM_SP_CNT().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 08:21:21 +00:00
ko1
35ecb83d41
* compile.c (iseq_compile_each): fix type error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 19:24:40 +00:00
ko1
30ab3f75f9
* compile.c (compile_massign), insns.def (expandarray): support
...
postarg with massign (a, *b, c = ...).
* bootstraptest/test_massign.rb: add tests for above.
* compile.h: fix debug macro names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 18:56:15 +00:00
matz
99c58e9ebc
* string.c (rb_str_clear): need to check STR_EMBED_P() before
...
free()ing memory. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
[ruby-dev:31062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 15:19:39 +00:00
nobu
883fadf9af
* process.c (proc_getgroups): use GIDT2NUM for rb_gid_t.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 07:39:04 +00:00
ko1
ab7c645fee
* thread.c (rb_thread_wait_fd_rw): terminate fdset.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 07:30:01 +00:00
usa
9b9cc53e23
* regint.h: IL32LLP64 support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 07:28:42 +00:00
ko1
02ae0a3e76
* iseq.c (ruby_node_name): update node names.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 07:26:58 +00:00
usa
c179584ba4
* include/ruby/ruby.h: IL32LLP64 support.
...
* bignum.c (bigfixize, rb_cstr_to_inum): ditto.
* insns.def (opt_plus, opt_minus, opt_mult): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 06:23:34 +00:00
ko1
9315740101
* cont.c (rb_fiber_s_new): revert initializing VM stack.
...
* yarvcore.c (th_init2): ditto.
* vm.c, vm.h: fix to stop using Qundef on VM stack. According to
this change, VM stack should not include Qundef value.
* insns.def (putundef): removed.
* compile.c (iseq_compile_each): ditto.
* eval.c (eval): fix spacing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 06:14:44 +00:00
ko1
8bfcdf323f
* insnhelper.ci (vm_yield_with_cfunc), proc.c: fix Method#to_proc
...
to return lamba Proc ([ruby-dev:31021], [ruby-dev:31037]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 19:06:00 +00:00
ko1
1a49d91fdd
* cont.c (rb_fiber_s_new): fix to clear rb_thread_t#tag.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 18:47:03 +00:00
ko1
702e431f1b
* cont.c (rb_fiber_s_new), yarvcore.c (th_init2): fix to clear
...
VM stack ([ruby-dev:31046]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 18:39:23 +00:00
ko1
0043929b5f
* compile.c: rename setup_arg() to setup_args().
...
fix to use setup_args() at processing NODE_YIELD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 18:23:35 +00:00
ko1
762a7ec12e
* compile.c (setup_arg): support kind of "m(*ary, x)" method call.
...
([ruby-dev:31048]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 17:52:33 +00:00
ko1
ed4e57690c
* insnhelper.ci, vm.c: complete block parameter support.
...
post arguments, optional arguments, block argument.
* compile.c, parse.y: fix {|a|} parameter.
* insnshelper.ci, insns.def: revert caller_setup_args() option
(need_block_check) parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 16:05:17 +00:00
usa
588e79f768
* gc.c (RVALUE): in RVALUE and RBasic, flags must be the same type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 11:20:45 +00:00
akr
6792979e98
fix indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 11:19:11 +00:00
usa
d81af2f7b2
* ext/pty/extconf.rb: skip wince and win64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 09:03:43 +00:00
usa
a00c1ed672
* include/ruby/node.h (NODE_LMASK, nd_line): shouldn't use int and/or
...
long carelessly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 09:01:27 +00:00
ko1
4bdb5ced9a
* gc.h: add RUBY_ prefix to debug macros.
...
* cont.c, proc.c, yarvcore.c,
* gc.c: define ruby_gc_debug_indent variable to debug mark/free.
* vm.c, insnhelper.ci: rename some functions to vm_* or rb_vm_*.
move some functions, definitions, declarations to suitable files.
* eval.c, yarvcore.h, eval_error.ci, insnhelper.ci: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 02:44:20 +00:00
nobu
ace2b68ac4
* eval_error.ci, eval_jump.ci, eval_method.ci, eval_safe.ci: c-mode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 00:45:48 +00:00
ko1
f58eb1e276
* eval.c: remove ruby_current_node and change eval() prototype.
...
fix to use rb_sourcefile/line() instead of ruby_sourcefile/line.
* error.c, eval_error.ci, eval_load.c, eval_safe.ci, gc.c,
include/ruby/intern.h, parse.y, process.c, ruby.c: ditto.
* vm.c: fix spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 20:33:04 +00:00
ko1
6bd0345627
* eval_*.h: rename to eval_*.ci.
...
* common.mk: ditto.
* eval_error.ci: remove ruby_set_current_source().
* error.c, eval.c, ruby.c: ditto.
* eval_safe.c, proc.c: remove unused macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 19:23:24 +00:00
ko1
144ff322c7
* insnhelper.ci (caller_setup_args): add need_block_check option.
...
* insns.def: ditto.
* yarvcore.h: add GetCoreDataFromValue().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 18:40:13 +00:00
ko1
7980e653e5
* call_cfunc.ci: removed.
...
* insnhelper.ci: added. this function includes all functions that
vm insns need.
* common.mk: ditto.
* insnhelper.h, vm.h, vm.c: move some declaration.
* gc.h: remove GC_CHECK() macro because GC.stress is more useful.
* compile.c, iseq.c, vm_dump: ditto.
* gc.h, thread.c: move a prototype decalaration.
* debug.c, debug.h: rename some functions.
* compile.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 17:19:22 +00:00
ko1
61fa357622
* insns.def (invokesuper): fix error message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 15:46:22 +00:00
ko1
97ba019c94
* vm.c: some refactoring.
...
* rename th_* to vm_*.
* remove unused variables functions.
* add prototypes.
* blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h,
eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y,
proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c,
vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 15:42:41 +00:00
ko1
a5c2d58428
* eval_method.h (rb_add_method): fix to check 0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 13:32:57 +00:00
ko1
62deb7dbbd
* insn_send.ci: removed.
...
* common.mk: ditto.
* vm.c (vm_call_bmethod), isnsn.def: added. fix to use this
function instead of using goto.
* vm.c (vm_call_bmethod): renamed from th_invoke_bmethod().
* vm.c (vm_method_missing): renamed from eval_methdo_missing().
* vm_evalbody.ci: remove tmp_* variables.
* insnhelper.h: add some macros.
* insns.def: forbid zsuper from method defined by define_method().
* test/ruby/test_super.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 13:05:51 +00:00