diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 15:52:51 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 15:52:51 +0000 |
commit | f2400eca0b30cb60273c9526b4501dbe4bcca50f (patch) | |
tree | cd89b99c576f1f74416395d00aecf3ab06fbe55c /thread.c | |
parent | 4879ae65fde1f7cd9b6133fe9e732d0ddcfadc12 (diff) | |
download | ruby-f2400eca0b30cb60273c9526b4501dbe4bcca50f.tar.gz |
* include/ruby/ruby.h, vm_core.h: add a type rb_blockptr.
* vm_insnhelper.c (vm_yield_with_cfunc): vm_yield_with_cfunc receives
blockptr and passes it to iterating block.
* proc.c (rb_proc_call), include/ruby/intern.h: rb_proc_call receives
blockptr. "rb_proc_call(self, args, blockptr)" in C corresponds to
"self.call(*args, &block)" in Ruby.
* proc.c (proc_call): pass blockptr to block that is written in C.
* proc.c (curry): receive blockptr and pass it to original proc.
[ruby-core:15551]
* vm.c (invoke_block_from_c): fix for change of vm_yield_with_cfunc.
* thread.c (call_trace_proc), eval_jump.c (rb_call_end_proc): fix for
change of rb_proc_call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3105,7 +3105,7 @@ call_trace_proc(VALUE args, int tracing) eventname, filename, INT2FIX(line), id ? ID2SYM(id) : Qnil, p->self ? rb_binding_new() : Qnil, - klass ? klass : Qnil)); + klass ? klass : Qnil), 0); } static void |