X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fmm%2Fboehm-gc%2Finclude%2Fgc_typed.h;h=323d9a990bebc46fcc487a631ae1ce0637f6792d;hb=c83bff94e40ee0a218a39931af17814d1a42cb5c;hp=1086acdd12f9cd4442d714de4d9da7871fad3484;hpb=7cdbbe3be2b5834a248a600176c742bd94aaf730;p=cacao.git diff --git a/src/mm/boehm-gc/include/gc_typed.h b/src/mm/boehm-gc/include/gc_typed.h index 1086acdd1..323d9a990 100644 --- a/src/mm/boehm-gc/include/gc_typed.h +++ b/src/mm/boehm-gc/include/gc_typed.h @@ -47,7 +47,7 @@ typedef GC_word * GC_bitmap; typedef GC_word GC_descr; -GC_API GC_descr GC_make_descriptor(GC_bitmap bm, size_t len); +GC_API GC_descr GC_CALL GC_make_descriptor(GC_bitmap bm, size_t len); /* Return a type descriptor for the object whose layout */ /* is described by the argument. */ /* The least significant bit of the first word is one */ @@ -74,20 +74,21 @@ GC_API GC_descr GC_make_descriptor(GC_bitmap bm, size_t len); /* ... */ /* T_descr = GC_make_descriptor(T_bitmap, GC_WORD_LEN(T)); */ -GC_API void * GC_malloc_explicitly_typed(size_t size_in_bytes, GC_descr d); +GC_API void * GC_CALL GC_malloc_explicitly_typed(size_t size_in_bytes, + GC_descr d); /* Allocate an object whose layout is described by d. */ /* The resulting object MAY NOT BE PASSED TO REALLOC. */ /* The returned object is cleared. */ -GC_API void * GC_malloc_explicitly_typed_ignore_off_page +GC_API void * GC_CALL GC_malloc_explicitly_typed_ignore_off_page (size_t size_in_bytes, GC_descr d); -GC_API void * GC_calloc_explicitly_typed(size_t nelements, +GC_API void * GC_CALL GC_calloc_explicitly_typed(size_t nelements, size_t element_size_in_bytes, GC_descr d); /* Allocate an array of nelements elements, each of the */ /* given size, and with the given descriptor. */ - /* The elemnt size must be a multiple of the byte */ + /* The element size must be a multiple of the byte */ /* alignment required for pointers. E.g. on a 32-bit */ /* machine with 16-bit aligned pointers, size_in_bytes */ /* must be a multiple of 2. */