From 35ebf1658d13857daa5a56d6f2e367fdf1f1ba33 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 25 Mar 2012 11:07:25 +0400 Subject: [PATCH] Replace GC_ms_entry declaration with opaque definition for public API * include/gc_mark.h (GC_ms_entry): Define structure as opaque unless GC_BUILD (otherwise remains as declaration which is defined in private/gc_pmark.h). --- include/gc_mark.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/gc_mark.h b/include/gc_mark.h index 4fc4d204..d740e897 100644 --- a/include/gc_mark.h +++ b/include/gc_mark.h @@ -56,7 +56,12 @@ /* not count on the presence of a type descriptor, and must handle this */ /* case correctly somehow. */ #define GC_PROC_BYTES 100 -struct GC_ms_entry; + +#ifdef GC_BUILD + struct GC_ms_entry; +#else + struct GC_ms_entry { void *opaque; }; +#endif typedef struct GC_ms_entry * (*GC_mark_proc)(GC_word * /* addr */, struct GC_ms_entry * /* mark_stack_ptr */, struct GC_ms_entry * /* mark_stack_limit */, -- 2.40.0