* vm.c (invoke_block_from_c): split this function into several

functions.
* vm_insnhelper.c (vm_yield_callee_setup_arg): remove this function
  beacuse it is only delegation function.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2015-10-10 20:32:07 +00:00
parent d8736ecff2
commit cb223b7533
4 changed files with 92 additions and 62 deletions

View file

@ -1054,7 +1054,7 @@ rb_yield_splat(VALUE values)
VALUE
rb_yield_block(VALUE val, VALUE arg, int argc, const VALUE *argv, VALUE blockarg)
{
const rb_block_t *blockptr = 0;
const rb_block_t *blockptr = NULL;
if (!NIL_P(blockarg)) {
rb_proc_t *blockproc;
GetProcPtr(blockarg, blockproc);