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

ruby-changes:29081

From: nobu <ko1@a...>
Date: Fri, 7 Jun 2013 11:52:52 +0900 (JST)
Subject: [ruby-changes:29081] nobu:r41133 (trunk): adjust style

nobu	2013-06-07 11:52:42 +0900 (Fri, 07 Jun 2013)

  New Revision: 41133

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

  Log:
    adjust style

  Modified files:
    trunk/array.c
    trunk/gc.c

Index: array.c
===================================================================
--- array.c	(revision 41132)
+++ array.c	(revision 41133)
@@ -412,9 +412,9 @@ ary_new(VALUE klass, long capa) https://github.com/ruby/ruby/blob/trunk/array.c#L412
         ARY_SET_PTR(ary, ptr);
         ARY_SET_CAPA(ary, capa);
         ARY_SET_HEAP_LEN(ary, 0);
-    } else {
+    }
+    else {
 	ary = ary_alloc(klass);
-
     }
 
     return ary;
Index: gc.c
===================================================================
--- gc.c	(revision 41132)
+++ gc.c	(revision 41133)
@@ -2156,9 +2156,9 @@ slot_sweep_body(rb_objspace_t *objspace, https://github.com/ruby/ruby/blob/trunk/gc.c#L2156
     bits[BITMAP_INDEX(p)] |= BITMAP_BIT(p)-1;
     bits[BITMAP_INDEX(pend)] |= ~(BITMAP_BIT(pend) - 1);
 
-    for(i=0;i<HEAP_BITMAP_LIMIT;i++){
+    for (i=0; i < HEAP_BITMAP_LIMIT; i++) {
 	bitset = ~bits[i];
-	if(bitset){
+	if (bitset) {
 	    p = offset  + i * (sizeof(uintptr_t) *  CHAR_BIT);
 	    do {
 		if ((bitset & 1) && BUILTIN_TYPE(p) != T_ZOMBIE) {
@@ -3603,8 +3603,8 @@ rgengc_rememberset_mark(rb_objspace_t *o https://github.com/ruby/ruby/blob/trunk/gc.c#L3603
 
 	offset = p - NUM_IN_SLOT(p);
 
-	for(j=0;j< HEAP_BITMAP_LIMIT;j++){
-	    if(bits[j]){
+	for (j=0; j < HEAP_BITMAP_LIMIT; j++) {
+	    if (bits[j]) {
 		p = offset  + j * (sizeof(uintptr_t) *  CHAR_BIT);
 		bitset = bits[j];
 		do {

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

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