Please sign in to comment.
Add GC_push_all/conditional() to GC public API
* include/gc_mark.h (GC_push_all, GC_push_conditional): Expose function as a part of public API (use GC_API and GC_CALL); replace internal ptr_t and GC_bool type to char* and int, respectively; add comment. * mark.c (GC_push_all, GC_push_conditional): Likewise. * include/private/gc_priv.h (GC_push_all, GC_push_conditional): Remove function declaration. * include/private/gc_priv.h (GC_PUSH_CONDITIONAL): New macro used internally instead of GC_push_conditional (defined depending on GC_DISABLE_INCREMENTAL). * include/private/gc_priv.h (GC_PUSH_CONDITIONAL, GC_push_all_stack): Update comment. * mark.c (GC_push_conditional): Define for GC_DISABLE_INCREMENTAL case (rediect to GC_push_all). * mark_rts.c (GC_push_conditional_with_exclusions): Use GC_PUSH_CONDITIONAL() instead of GC_push_conditional(). * mark_rts.c (GC_push_roots): Reformat the comment.
- Loading branch information...
Showing with 33 additions and 20 deletions.