* 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>
+
+ * 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.
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;
/* 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)) {
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 *
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) ) {
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);