diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-02-28 21:39:04 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-02-28 21:39:04 +0300 |
commit | dafe71bca00384b4647700635f8321885b3cf100 (patch) | |
tree | 598338f3e248e5fe11ea4e694da2359b790504e7 /tests | |
parent | c6ea1f66fe335c303f9ce73319d24247bc504304 (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test.c b/tests/test.c index 452ad720..a05358fe 100644 --- a/tests/test.c +++ b/tests/test.c @@ -213,14 +213,9 @@ volatile AO_t extra_count = 0; /* Amount of space wasted in cons node; */ /* chktree (for other purposes). */ #if defined(GC_AMIGA_FASTALLOC) && defined(AMIGA) - -# ifdef __cplusplus - extern "C" { -# endif + EXTERN_C_BEGIN void GC_amiga_free_all_mem(void); -# ifdef __cplusplus - } /* extern "C" */ -# endif + EXTERN_C_END void Amiga_Fail(void){GC_amiga_free_all_mem();abort();} # define FAIL Amiga_Fail() |