summaryrefslogtreecommitdiff
path: root/typd_mlc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-20 10:07:27 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:47 +0200
commita9bb70c52fa79ba2e7c8f440547fa19e12ba0186 (patch)
tree31b230cd785d75f6c184d961193d48a3bed6e581 /typd_mlc.c
parenta093713e7f250cbbb3489445364859efe3ebe520 (diff)
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.
Diffstat (limited to 'typd_mlc.c')
-rw-r--r--typd_mlc.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index 6e29975..9530aaf 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -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);