]> granicus.if.org Git - gc/commitdiff
Do not use 'ifndef AO_CLEAR' in disclaim_weakmap_test
authorIvan Maidanski <ivmai@mail.ru>
Wed, 5 Dec 2018 22:02:30 +0000 (01:02 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 5 Dec 2018 22:02:30 +0000 (01:02 +0300)
(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.

tests/disclaim_weakmap_test.c

index fcf5f39cf63dd93c0caffd17aad3c372548d0999..cb6d0500a31a9d551dee70fd789203432acdf268 100644 (file)
@@ -36,6 +36,7 @@
 #else
 # undef NTHREADS
 # define NTHREADS 1
+# define AO_t GC_word
 #endif
 
 #ifdef LINT2
         } \
     } 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.        */