summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-16 21:15:15 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-16 21:15:15 +0000
commita0e0fafa0c45eba54689854d6c8d3ace9badefe0 (patch)
treee7d191bc181501928654d2177690edf18c39ec52 /gc.c
parent06f833e6d5b096afa294725044c1f54e5ae9c414 (diff)
* gc.c: fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/gc.c b/gc.c
index 8ba17c6565..76b4053806 100644
--- a/gc.c
+++ b/gc.c
@@ -2433,13 +2433,13 @@ rb_objspace_each_objects(int (*callback)(void *vstart, void *vend,
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 @@ os_obj_of_i(void *vstart, void *vend, size_t stride, void *data)
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)