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

ruby-changes:12042

From: ko1 <ko1@a...>
Date: Wed, 17 Jun 2009 06:15:30 +0900 (JST)
Subject: [ruby-changes:12042] Ruby:r23709 (trunk): * gc.c: fix indent.

ko1	2009-06-17 06:15:15 +0900 (Wed, 17 Jun 2009)

  New Revision: 23709

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

  Log:
    * gc.c: fix indent.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23708)
+++ ChangeLog	(revision 23709)
@@ -1,3 +1,7 @@
+Wed Jun 17 06:14:23 2009  Koichi Sasada  <ko1@a...>
+
+	* gc.c: fix indent.
+
 Wed Jun 17 06:05:03 2009  Koichi Sasada  <ko1@a...>
 
 	* gc.c (rb_objspace_each_objects): New C API, added.
Index: gc.c
===================================================================
--- gc.c	(revision 23708)
+++ gc.c	(revision 23709)
@@ -2433,13 +2433,13 @@
 
     i = 0;
     while (i < heaps_used) {
-        while (0 < i && (uintptr_t)membase < (uintptr_t)heaps[i-1].membase)
-            i--;
-        while (i < heaps_used && (uintptr_t)heaps[i].membase <= (uintptr_t)membase )
-            i++;
-        if (heaps_used <= i)
-            break;
-        membase = heaps[i].membase;
+	while (0 < i && (uintptr_t)membase < (uintptr_t)heaps[i-1].membase)
+	  i--;
+	while (i < heaps_used && (uintptr_t)heaps[i].membase <= (uintptr_t)membase )
+	  i++;
+	if (heaps_used <= i)
+	  break;
+	membase = heaps[i].membase;
 
 	pstart = heaps[i].slot;
 	pend = pstart + heaps[i].limit;
@@ -2473,29 +2473,29 @@
     volatile VALUE v;
 
     for (; p != pend; p++) {
-	    if (p->as.basic.flags) {
-		switch (BUILTIN_TYPE(p)) {
-		  case T_NONE:
-		  case T_ICLASS:
-		  case T_NODE:
-		  case T_ZOMBIE:
-		    continue;
-		  case T_CLASS:
+	if (p->as.basic.flags) {
+	    switch (BUILTIN_TYPE(p)) {
+	      case T_NONE:
+	      case T_ICLASS:
+	      case T_NODE:
+	      case T_ZOMBIE:
+		continue;
+	      case T_CLASS:
 		if (FL_TEST(p, FL_SINGLETON))
 		  continue;
-		  default:
-		    if (!p->as.basic.klass) continue;
-                    v = (VALUE)p;
+	      default:
+		if (!p->as.basic.klass) continue;
+		v = (VALUE)p;
 		if (!oes->of || rb_obj_is_kind_of(v, oes->of)) {
-			rb_yield(v);
+		    rb_yield(v);
 		    oes->num++;
-		    }
 		}
 	    }
 	}
+    }
 
     return 0;
-    }
+}
 
 static VALUE
 os_obj_of(VALUE of)

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

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