From: Ivan Maidanski Date: Wed, 5 Dec 2018 22:02:30 +0000 (+0300) Subject: Do not use 'ifndef AO_CLEAR' in disclaim_weakmap_test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6c51f613eea107850e90f1035182fa16afef05a;p=gc Do not use 'ifndef AO_CLEAR' in disclaim_weakmap_test (code refactoring of commit 95e074727) * tests/disclaim_weakmap_test.c [!GC_PTHREADS] (AO_t): Define (as GC_word). * tests/disclaim_weakmap_test.c (AO_t): Do not check whether AO_CLEAR is defined; remove comment. --- diff --git a/tests/disclaim_weakmap_test.c b/tests/disclaim_weakmap_test.c index fcf5f39c..cb6d0500 100644 --- a/tests/disclaim_weakmap_test.c +++ b/tests/disclaim_weakmap_test.c @@ -36,6 +36,7 @@ #else # undef NTHREADS # define NTHREADS 1 +# define AO_t GC_word #endif #ifdef LINT2 @@ -85,11 +86,6 @@ } \ } while (0) -/* Define AO primitives in case of no threads support. */ -#ifndef AO_CLEAR - /* AO_t not defined. */ -# define AO_t GC_word -#endif #ifndef AO_HAVE_fetch_and_add1 # define AO_fetch_and_add1(p) ((*(p))++) /* This is used only to update counters. */