diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-10-29 10:14:42 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-10-29 10:14:42 +0300 |
commit | 3551cb9fcad19520f3b1d0759b43a518f6ddd697 (patch) | |
tree | e45dbd0be3aaaf393d940cb8eca78d53cb2fba56 /mark_rts.c | |
parent | c5ab72fe3e8845b90aca6e3787ebee4685135a41 (diff) |
Export GC_is_tmp_root() and GC_print_trace[_inner]()
Note: these 3 functions are not used by GC itself.
* include/gc_mark.h (GC_is_tmp_root, GC_print_trace,
GC_print_trace_inner): New public API prototype.
* mark.c [TRACE_BUF] (GC_print_trace_inner, GC_print_trace): Define as
public (GC_API+GC_CALL).
* mark_rts.c [MSWIN32 && !NO_DEBUGGING] (GC_is_tmp_root): Likewise.
* mark_rts.c [MSWIN32 && !NO_DEBUGGING] (GC_is_tmp_root): Replace
GC_bool return type with int, replace ptr_t argument type to void*
(because GC_bool and ptr_t are not exported from GC).
Diffstat (limited to 'mark_rts.c')
-rw-r--r-- | mark_rts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -369,7 +369,7 @@ STATIC void GC_remove_tmp_roots(void) /* Not used at present (except for, may be, debugging purpose). */ /* Workaround for the OS mapping and unmapping behind our back: */ /* Is the address p in one of the temporary static root sections? */ - GC_bool GC_is_tmp_root(ptr_t p) + GC_API int GC_CALL GC_is_tmp_root(void *p) { static int last_root_set = MAX_ROOT_SETS; register int i; |