summaryrefslogtreecommitdiff
path: root/typd_mlc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-21 11:33:39 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:51 +0200
commitbad4c7acb6060861cd4be55968c1f58b2026a747 (patch)
treee4772ccd33aeec9ccd4d9baadbadb48a913a13e2 /typd_mlc.c
parentc4e4721f491632c2039cece14400f353794273f4 (diff)
2009-10-21 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c (DEBUG): Remove macro (since unused). * allchblk.c: Include private/gc_priv.h before other includes and definitions. * alloc.c: Ditto. * gc_dlopen.c: Ditto. * headers.c: Ditto. * mallocx.c: Ditto. * mark_rts.c: Ditto. * new_hblk.c: Ditto. * reclaim.c: Ditto. * mark.c: Include private/gc_pmark.h before other includes. * misc.c: Ditto. * dyn_load.c (_GNU_SOURCE): Move the definition to gc_priv.h. * pthread_support.c (_USING_POSIX4A_DRAFT10): Ditto. * pthread_support.c (_POSIX4A_DRAFT10_SOURCE): Remove (since already defined in gc_config_macros.h). * dyn_load.c (GC_init_dyld): Remove parameter cast for _dyld_register_func_for_add_image() and _dyld_register_func_for_remove_image(); add the comment about possible warnings; add FIXME for the deprecated _dyld_bind_fully_image_containing_address(). * include/private/gc_priv.h: Include gc.h before the standard headers inclusion. * tests/test.c: Ditto. * include/private/gcconfig.h (DebugBreak): Update the comment. * typd_mlc.c (ED_INITIAL_SIZE): Remove ';'. * alloc.c: Reformat the code (partly adjust indentation). * backgraph.c: Ditto. * blacklst.c: Ditto. * checksums.c: Ditto. * finalize.c: Ditto. * gcj_mlc.c: Ditto. * mach_dep.c: Ditto. * mark_rts.c: Ditto. * obj_map.c: Ditto. * os_dep.c: Ditto. * ptr_chck.c: Ditto. * stubborn.c: Ditto. * thread_local_alloc.c: Ditto. * typd_mlc.c: Ditto.
Diffstat (limited to 'typd_mlc.c')
-rw-r--r--typd_mlc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index 759ff82..b031f61 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -13,6 +13,7 @@
*
*/
+#include "private/gc_pmark.h"
/*
* Some simple primitives for allocation with explicit type information.
@@ -36,10 +37,9 @@
* since they are not accessible through the current interface.
*/
-#include "private/gc_pmark.h"
#include "gc_typed.h"
-# define TYPD_EXTRA_BYTES (sizeof(word) - EXTRA_BYTES)
+#define TYPD_EXTRA_BYTES (sizeof(word) - EXTRA_BYTES)
STATIC GC_bool GC_explicit_typing_initialized = FALSE;
@@ -93,7 +93,7 @@ STATIC ext_descr * GC_ext_descriptors = NULL;
/* descriptors. */
STATIC size_t GC_ed_size = 0; /* Current size of above arrays. */
-# define ED_INITIAL_SIZE 100;
+#define ED_INITIAL_SIZE 100
STATIC size_t GC_avail_descr = 0; /* Next available slot. */
@@ -199,10 +199,10 @@ GC_make_sequence_descriptor(complex_descriptor *first,
/* The implementation knows that GC_DS_LENGTH is 0. */
/* *leaf, *complex_d, and *simple_d may be used as temporaries */
/* during the construction. */
-# define COMPLEX 2
-# define LEAF 1
-# define SIMPLE 0
-# define NO_MEM (-1)
+#define COMPLEX 2
+#define LEAF 1
+#define SIMPLE 0
+#define NO_MEM (-1)
STATIC int GC_make_array_descriptor(size_t nelements, size_t size,
GC_descr descriptor, GC_descr *simple_d,
complex_descriptor **complex_d,
@@ -317,9 +317,9 @@ GC_make_sequence_descriptor(complex_descriptor *first,
}
#ifdef UNDEFINED
-complex_descriptor * GC_make_complex_array_descriptor(word nelements,
+ complex_descriptor * GC_make_complex_array_descriptor(word nelements,
complex_descriptor *descr)
-{
+ {
struct ComplexArrayDescriptor * result =
(struct ComplexArrayDescriptor *)
GC_malloc(sizeof(struct ComplexArrayDescriptor));
@@ -330,7 +330,7 @@ complex_descriptor * GC_make_complex_array_descriptor(word nelements,
result -> ad_element_descr = descr;
}
return((complex_descriptor *)result);
-}
+ }
#endif
STATIC ptr_t * GC_eobjfreelist = NULL;