[前][次][番号順一覧][スレッド一覧]

ruby-changes:9551

From: ko1 <ko1@a...>
Date: Sat, 27 Dec 2008 15:27:08 +0900 (JST)
Subject: [ruby-changes:9551] Ruby:r21091 (trunk): * vm_insnhelper.c (vm_yield_with_cfunc): rename parameter name

ko1	2008-12-27 15:26:48 +0900 (Sat, 27 Dec 2008)

  New Revision: 21091

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21091

  Log:
    * vm_insnhelper.c (vm_yield_with_cfunc): rename parameter name
      "blockptr" to "blockargptr".

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21090)
+++ ChangeLog	(revision 21091)
@@ -1,3 +1,8 @@
+Sat Dec 27 15:23:38 2008  Koichi Sasada  <ko1@a...>
+
+	* vm_insnhelper.c (vm_yield_with_cfunc): rename parameter name
+	  "blockptr" to "blockargptr".
+
 Sat Dec 27 15:15:56 2008  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* common.mk (revision.h): ignores failure of file2lastrev.
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 21090)
+++ vm_insnhelper.c	(revision 21091)
@@ -644,7 +644,7 @@
 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 @@
 	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 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]