Define public GC_GENERIC_OR_SPECIAL_MALLOC and GC_get_kind_and_size
authorIvan Maidanski <ivmai@mail.ru>
Mon, 10 Mar 2014 16:04:58 +0000 (20:04 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 10 Mar 2014 16:34:21 +0000 (20:34 +0400)
commitff6c3d9fb8e7065ffe74cb780b2c1f54868152e2
tree217fff9b7a746308ab36bf399d7e5753be31f03c
parent784d789a93ec0ce6ceec5ef860990418f452f087
Define public GC_GENERIC_OR_SPECIAL_MALLOC and GC_get_kind_and_size

* dbg_mlc.c (GC_debug_generic_malloc,
GC_debug_generic_or_special_malloc): New function.
* mallocx.c (GC_get_kind_and_size): Likewise.
* tests/test.c (test_generic_malloc_or_special): Likewise.
* include/gc_mark.h (GC_generic_or_special_malloc,
GC_debug_generic_or_special_malloc, GC_get_kind_and_size): New API
prototype.
* include/gc_mark.h (GC_GENERIC_OR_SPECIAL_MALLOC): New public macro.
* mallocx.c (GC_generic_or_special_malloc): Turn into API function.
* tests/test.c (reverse_test_inner, run_one_test): Invoke
test_generic_malloc_or_special (to test GC_GENERIC_OR_SPECIAL_MALLOC
and GC_get_kind_and_size).
dbg_mlc.c
include/gc_mark.h
mallocx.c
tests/test.c