]> granicus.if.org Git - gc/commitdiff
2009-09-20 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Sun, 20 Sep 2009 08:07:27 +0000 (08:07 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:47 +0000 (21:06 +0400)
* allchblk.c (GC_freehblk): Adjust local variables indentation.
* mallocx.c (GC_generic_malloc_many): Ditto.
* typd_mlc.c (GC_malloc_explicitly_typed_ignore_off_page,
GC_calloc_explicitly_typed): Ditto.
* typd_mlc.c (GC_make_array_descriptor): Remove unnecessary
brackets.

ChangeLog
allchblk.c
mallocx.c
typd_mlc.c

index b5c78d0e81054104a0a4369a6d26cb6a040729e9..d91930a3e6e81835bc4f566d443c8bc45481c030 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+
+2009-09-20  Ivan Maidanski <ivmai@mail.ru>
+
+       * allchblk.c (GC_freehblk): Adjust local variables indentation.
+       * mallocx.c (GC_generic_malloc_many): Ditto.
+       * typd_mlc.c (GC_malloc_explicitly_typed_ignore_off_page,
+       GC_calloc_explicitly_typed): Ditto.
+       * typd_mlc.c (GC_make_array_descriptor): Remove unnecessary
+       brackets.
+
 2009-09-20  Ivan Maidanski <ivmai@mail.ru>
 
        * configure.ac: Replace GC_WIN32_THREADS with GC_THREADS.
index 713e4ae6ef4b4c641c7c51a9872353cdddf78cf9..b2a5ea7386f66fdb2132d7a06c42902661900ecb 100644 (file)
@@ -821,10 +821,9 @@ GC_allochblk_nth(size_t sz, int kind, unsigned flags, int n, GC_bool may_split)
 void
 GC_freehblk(struct hblk *hbp)
 {
-struct hblk *next, *prev;
-hdr *hhdr, *prevhdr, *nexthdr;
-signed_word size;
-
+    struct hblk *next, *prev;
+    hdr *hhdr, *prevhdr, *nexthdr;
+    signed_word size;
 
     GET_HDR(hbp, hhdr);
     size = hhdr->hb_sz;
index 841a0e20c1d77af3f274362a082c17ccb9e75b60..e0cb011de4815524eb9eae41dc99324bc43fdc71 100644 (file)
--- a/mallocx.c
+++ b/mallocx.c
@@ -267,14 +267,14 @@ volatile signed_word GC_bytes_allocd_tmp = 0;
 /* Note that the client should usually clear the link field.            */
 void GC_generic_malloc_many(size_t lb, int k, void **result)
 {
-void *op;
-void *p;
-void **opp;
-size_t lw;      /* Length in words.     */
-size_t lg;      /* Length in granules.  */
-signed_word my_bytes_allocd = 0;
-struct obj_kind * ok = &(GC_obj_kinds[k]);
-DCL_LOCK_STATE;
+    void *op;
+    void *p;
+    void **opp;
+    size_t lw;      /* Length in words.     */
+    size_t lg;      /* Length in granules.  */
+    signed_word my_bytes_allocd = 0;
+    struct obj_kind * ok = &(GC_obj_kinds[k]);
+    DCL_LOCK_STATE;
 
     GC_ASSERT(lb != 0 && (lb & (GRANULE_BYTES-1)) == 0);
     if (!SMALL_OBJ(lb)) {
index 6e29975aef6b4c32d6351524a75530caa9d74d72..9530aafe9434c52bb1d3bcb2a4e70b7c207710c8 100644 (file)
@@ -289,12 +289,11 @@ STATIC int GC_make_array_descriptor(size_t nelements, size_t size,
           return(COMPLEX);
       }
     }
-    {
-        leaf -> ld_size = size;
-        leaf -> ld_nelements = nelements;
-        leaf -> ld_descriptor = descriptor;
-        return(LEAF);
-    }
+
+    leaf -> ld_size = size;
+    leaf -> ld_nelements = nelements;
+    leaf -> ld_descriptor = descriptor;
+    return(LEAF);
 }
 
 STATIC complex_descriptor *
@@ -623,10 +622,10 @@ GC_API void * GC_CALL GC_malloc_explicitly_typed(size_t lb, GC_descr d)
 GC_API void * GC_CALL GC_malloc_explicitly_typed_ignore_off_page(size_t lb,
                                                                 GC_descr d)
 {
-ptr_t op;
-ptr_t * opp;
-size_t lg;
-DCL_LOCK_STATE;
+    ptr_t op;
+    ptr_t * opp;
+    size_t lg;
+    DCL_LOCK_STATE;
 
     lb += TYPD_EXTRA_BYTES;
     if( SMALL_OBJ(lb) ) {
@@ -658,14 +657,14 @@ DCL_LOCK_STATE;
 GC_API void * GC_CALL GC_calloc_explicitly_typed(size_t n, size_t lb,
                                                 GC_descr d)
 {
-ptr_t op;
-ptr_t * opp;
-size_t lg;
-GC_descr simple_descr;
-complex_descriptor *complex_descr;
-register int descr_type;
-struct LeafDescriptor leaf;
-DCL_LOCK_STATE;
+    ptr_t op;
+    ptr_t * opp;
+    size_t lg;
+    GC_descr simple_descr;
+    complex_descriptor *complex_descr;
+    register int descr_type;
+    struct LeafDescriptor leaf;
+    DCL_LOCK_STATE;
 
     descr_type = GC_make_array_descriptor((word)n, (word)lb, d,
                                           &simple_descr, &complex_descr, &leaf);