From 9172b0f7081bb190f39199ffc36e988204058c94 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 26 Feb 2007 22:51:33 +0000 Subject: * yarvcore.h, vm.h: rename th_invoke_yield() to th_yield(). * blockinlining.c: ditto. * eval.c: ditto. * vm.c, insns.def: rename th_invoke_yield_cfunc() to th_yield_with_cfunc(). * yarvcore.h, yarvcore.c: rename theYarvVM to ruby_current_vm and yarvCurrentThread to ruby_current_thread. remove yarvVMArray. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 582450941..12ab5e992 100644 --- a/eval.c +++ b/eval.c @@ -1140,8 +1140,7 @@ rb_yield_0(VALUE val, VALUE self, VALUE klass /* OK */ , int flags, int avalue) { if (avalue) { - return th_invoke_yield(GET_THREAD(), - RARRAY_LEN(val), RARRAY_PTR(val)); + return th_yield(GET_THREAD(), RARRAY_LEN(val), RARRAY_PTR(val)); } else { int argc = (val == Qundef) ? 0 : 1; @@ -1153,7 +1152,7 @@ rb_yield_0(VALUE val, VALUE self, VALUE klass /* OK */ , int flags, argv = RARRAY_PTR(argv[0]); } */ - return th_invoke_yield(GET_THREAD(), argc, argv); + return th_yield(GET_THREAD(), argc, argv); } } -- cgit