From 35e926ca1fb6600c1c9461d4144c999bc82c1805 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 20 Dec 2007 07:07:35 +0000 Subject: * insnhelper.ci, vm.c, vm_core.h: change interface of vm_invoke_block() to specify block ptr. [ruby-talk:266422] * cont.c, eval_jump.ci, insns.def, proc.c, signal.c, thread.c: apply above change. * bootstraptest/test_knownbug.rb: move fixed bug. * bootstraptest/test_block.rb: ditto. and add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 8f8079e31..c6b909a90 100644 --- a/vm_core.h +++ b/vm_core.h @@ -599,7 +599,8 @@ void rb_disable_interrupt(void); int rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, VALUE *klassp); VALUE vm_eval_body(rb_thread_t *th); -VALUE vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self, int argc, VALUE *argv); +VALUE vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self, + int argc, VALUE *argv, rb_block_t *blockptr); VALUE vm_make_proc(rb_thread_t *th, rb_control_frame_t *cfp, rb_block_t *block); VALUE vm_make_env_object(rb_thread_t *th, rb_control_frame_t *cfp); VALUE vm_backtrace(rb_thread_t *, int); -- cgit