Adjust code indentation of calloc_explicitly_typed
authorIvan Maidanski <ivmai@mail.ru>
Thu, 15 Sep 2016 20:20:04 +0000 (23:20 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 15 Sep 2016 20:24:52 +0000 (23:24 +0300)
* typd_mlc.c (GC_calloc_explicitly_typed): Adjust code indentation.

typd_mlc.c

index fe0220c..5cfde35 100644 (file)
@@ -669,34 +669,34 @@ GC_API GC_ATTR_MALLOC void * GC_CALL GC_calloc_explicitly_typed(size_t n,
         return NULL;
     lg = SMALL_OBJ(lb) ? GC_size_map[lb] : BYTES_TO_GRANULES(GC_size(op));
     if (descr_type == LEAF) {
-       /* Set up the descriptor inside the object itself. */
-       volatile struct LeafDescriptor * lp =
-           (struct LeafDescriptor *)
-               (op + GRANULES_TO_WORDS(lg)
-                - (BYTES_TO_WORDS(sizeof(struct LeafDescriptor)) + 1));
-
-       lp -> ld_tag = LEAF_TAG;
-       lp -> ld_size = leaf.ld_size;
-       lp -> ld_nelements = leaf.ld_nelements;
-       lp -> ld_descriptor = leaf.ld_descriptor;
-       ((volatile word *)op)[GRANULES_TO_WORDS(lg) - 1] = (word)lp;
-   } else {
-#    ifndef GC_NO_FINALIZATION
-       size_t lw = GRANULES_TO_WORDS(lg);
+        /* Set up the descriptor inside the object itself.      */
+        volatile struct LeafDescriptor * lp =
+            (struct LeafDescriptor *)
+                (op + GRANULES_TO_WORDS(lg)
+                    - (BYTES_TO_WORDS(sizeof(struct LeafDescriptor)) + 1));
+
+        lp -> ld_tag = LEAF_TAG;
+        lp -> ld_size = leaf.ld_size;
+        lp -> ld_nelements = leaf.ld_nelements;
+        lp -> ld_descriptor = leaf.ld_descriptor;
+        ((volatile word *)op)[GRANULES_TO_WORDS(lg) - 1] = (word)lp;
+    } else {
+#     ifndef GC_NO_FINALIZATION
+        size_t lw = GRANULES_TO_WORDS(lg);
 
-       op[lw - 1] = (word)complex_descr;
-       /* Make sure the descriptor is cleared once there is any danger  */
-       /* it may have been collected.                                   */
-       if (EXPECT(GC_general_register_disappearing_link(
+        op[lw - 1] = (word)complex_descr;
+        /* Make sure the descriptor is cleared once there is any danger */
+        /* it may have been collected.                                  */
+        if (EXPECT(GC_general_register_disappearing_link(
                                                 (void **)(op + lw - 1), op)
                   == GC_NO_MEMORY, FALSE))
-#    endif
-       {
-           /* Couldn't register it due to lack of memory.  Punt.        */
-           /* This will probably fail too, but gives the recovery code  */
-           /* a chance.                                                 */
+#     endif
+        {
+            /* Couldn't register it due to lack of memory.  Punt.       */
+            /* This will probably fail too, but gives the recovery code */
+            /* a chance.                                                */
             return GC_malloc(lb);
-       }
-   }
-   return op;
+        }
+    }
+    return op;
 }