]> granicus.if.org Git - gc/commit
Replace conditional extern 'C' blocks begin/end with EXTERN_C_BEGIN/END
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Feb 2018 18:39:04 +0000 (21:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Feb 2018 18:39:04 +0000 (21:39 +0300)
commitdafe71bca00384b4647700635f8321885b3cf100
tree598338f3e248e5fe11ea4e694da2359b790504e7
parentc6ea1f66fe335c303f9ce73319d24247bc504304
Replace conditional extern 'C' blocks begin/end with EXTERN_C_BEGIN/END
(code refactoring)

Issue #206 (bdwgc).

Note: EXTERN_C_BEGIN and EXTERN_C_END are not available in the GC
public headers.

* include/private/darwin_stop_world.h: Replace the conditional
extern "C" block begin/end with EXTERN_C_BEGIN and EXTERN_C_END,
respectively.
* include/private/dbg_mlc.h: Likewise.
* include/private/gc_hdrs.h: Likewise.
* include/private/gc_locks.h: Likewise.
* include/private/gc_pmark.h: Likewise.
* include/private/gc_priv.h: Likewise.
* include/private/gcconfig.h: Likewise.
* include/private/pthread_stop_world.h: Likewise.
* include/private/pthread_support.h: Likewise.
* include/private/specific.h: Likewise.
* include/private/thread_local_alloc.h: Likewise.
* os_dep.c [MPROTECT_VDB && DARWIN]: Likewise.
* tests/test.c [GC_AMIGA_FASTALLOC && AMIGA]: Likewise.
* include/private/gcconfig.h (EXTERN_C_BEGIN, EXTERN_C_END): Define
macro.
13 files changed:
include/private/darwin_stop_world.h
include/private/dbg_mlc.h
include/private/gc_hdrs.h
include/private/gc_locks.h
include/private/gc_pmark.h
include/private/gc_priv.h
include/private/gcconfig.h
include/private/pthread_stop_world.h
include/private/pthread_support.h
include/private/specific.h
include/private/thread_local_alloc.h
os_dep.c
tests/test.c