1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_insnhelper.c (vm_yield_with_cfunc): rename parameter name

"blockptr" to "blockargptr".



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-12-27 06:26:48 +00:00
parent 62be8b0154
commit 1f8620ca22
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
Sat Dec 27 15:23:38 2008 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (vm_yield_with_cfunc): rename parameter name
"blockptr" to "blockargptr".
Sat Dec 27 15:15:56 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* common.mk (revision.h): ignores failure of file2lastrev.

View file

@ -644,7 +644,7 @@ block_proc_is_lambda(const VALUE procval)
static inline VALUE
vm_yield_with_cfunc(rb_thread_t *th, const rb_block_t *block,
VALUE self, int argc, const VALUE *argv,
const rb_block_t *blockptr)
const rb_block_t *blockargptr)
{
NODE *ifunc = (NODE *) block->iseq;
VALUE val, arg, blockarg;
@ -660,12 +660,12 @@ vm_yield_with_cfunc(rb_thread_t *th, const rb_block_t *block,
arg = argv[0];
}
if (blockptr) {
if (blockptr->proc) {
blockarg = blockptr->proc;
if (blockargptr) {
if (blockargptr->proc) {
blockarg = blockargptr->proc;
}
else {
blockarg = vm_make_proc(th, blockptr, rb_cProc);
blockarg = vm_make_proc(th, blockargptr, rb_cProc);
}
}
else {