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

ruby-changes:13056

From: nobu <ko1@a...>
Date: Wed, 9 Sep 2009 11:26:15 +0900 (JST)
Subject: [ruby-changes:13056] Ruby:r24803 (trunk): * cont.c (cont_memsize, fiber_memsize): constified.

nobu	2009-09-09 11:26:06 +0900 (Wed, 09 Sep 2009)

  New Revision: 24803

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

  Log:
    * cont.c (cont_memsize, fiber_memsize): constified.

  Modified files:
    trunk/cont.c

Index: cont.c
===================================================================
--- cont.c	(revision 24802)
+++ cont.c	(revision 24803)
@@ -130,7 +130,7 @@
 static size_t
 cont_memsize(const void *ptr)
 {
-    rb_context_t *cont = ptr;
+    const rb_context_t *cont = ptr;
     size_t size = 0;
     if (cont) {
 	size = sizeof(*cont);
@@ -208,7 +208,7 @@
 static size_t
 fiber_memsize(const void *ptr)
 {
-    rb_fiber_t *fib = ptr;
+    const rb_fiber_t *fib = ptr;
     size_t size = 0;
     if (ptr) {
 	size = sizeof(*fib);

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

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