]> granicus.if.org Git - gc/commit
Fix undefined PTRFREE/NORMAL in gc_inline.h
authorIvan Maidanski <ivmai@mail.ru>
Mon, 28 Dec 2015 17:24:33 +0000 (20:24 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 1 Feb 2016 07:05:44 +0000 (10:05 +0300)
commit14a4be9788c15496c36fcb6762683d7df4833a80
treec3ef5a5eaa625771b7e3a506ecefa834fd5095d7
parent15d35ad8b54dc79fe19d8cec660de0e3c099877c
Fix undefined PTRFREE/NORMAL in gc_inline.h

Allow to use gc_inline.h public header without include gc_priv.h.

* include/gc_inline.h (GC_I_PTRFREE, GC_I_NORMAL): New macro.
* include/gc_inline.h (GC_FAST_MALLOC_GRANS, GC_MALLOC_WORDS,
GC_MALLOC_ATOMIC_WORDS, GC_CONS): Use GC_I_PTRFREE and GC_I_NORMAL
instead of PTRFREE and NORMAL (private macros), respectively.
include/gc_inline.h