diff options
author | David Robillard <d@drobilla.net> | 2020-08-13 17:25:49 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-13 17:25:49 +0200 |
commit | 8d6de7dac62b0cef196cc1aaf5451a7ccf4d93fe (patch) | |
tree | 56819625ec4ed0d3cb68aea8b422fa1d099659e2 | |
parent | 4737197129ce4ac50ce248b6585b52480efe16cc (diff) | |
download | zix-8d6de7dac62b0cef196cc1aaf5451a7ccf4d93fe.tar.gz zix-8d6de7dac62b0cef196cc1aaf5451a7ccf4d93fe.tar.bz2 zix-8d6de7dac62b0cef196cc1aaf5451a7ccf4d93fe.zip |
Clean up includes and forward declarations
-rw-r--r-- | test/btree_test.c | 2 | ||||
-rw-r--r-- | test/dict_bench.c | 1 | ||||
-rw-r--r-- | test/inline_test.c | 6 | ||||
-rw-r--r-- | test/ring_test.c | 1 | ||||
-rw-r--r-- | test/tree_bench.c | 7 | ||||
-rw-r--r-- | zix/sem.h | 4 | ||||
-rw-r--r-- | zix/zix.h | 2 |
7 files changed, 16 insertions, 7 deletions
diff --git a/test/btree_test.c b/test/btree_test.c index 8d687dc..a54d38a 100644 --- a/test/btree_test.c +++ b/test/btree_test.c @@ -20,10 +20,10 @@ #include "zix/common.h" -#include <stdbool.h> #include <assert.h> #include <inttypes.h> #include <stdarg.h> +#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> diff --git a/test/dict_bench.c b/test/dict_bench.c index b75ffc7..e26f88a 100644 --- a/test/dict_bench.c +++ b/test/dict_bench.c @@ -30,6 +30,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <time.h> static const unsigned seed = 1; diff --git a/test/inline_test.c b/test/inline_test.c index 3b1a221..c935110 100644 --- a/test/inline_test.c +++ b/test/inline_test.c @@ -17,12 +17,14 @@ #define ZIX_INLINE #include "zix/hash.c" -#include "zix/hash.h" #include "zix/tree.c" -#include "zix/tree.h" + +#include <stddef.h> int main(void) { + zix_hash_free(NULL); + zix_tree_free(NULL); return 0; } diff --git a/test/ring_test.c b/test/ring_test.c index bf7edd2..092606b 100644 --- a/test/ring_test.c +++ b/test/ring_test.c @@ -21,6 +21,7 @@ #include <limits.h> #include <stdarg.h> #include <stdbool.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> diff --git a/test/tree_bench.c b/test/tree_bench.c index 9e58c8d..f87af78 100644 --- a/test/tree_bench.c +++ b/test/tree_bench.c @@ -16,16 +16,19 @@ #include "bench.h" +#include "zix/btree.h" #include "zix/common.h" -#include "zix/zix.h" +#include "zix/tree.h" #include <glib.h> #include <inttypes.h> -#include <limits.h> +#include <stdarg.h> +#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> +#include <time.h> // #define BENCH_SORTED_ARRAY 1 @@ -27,8 +27,8 @@ # include <limits.h> # include <windows.h> #else -# include <semaphore.h> # include <errno.h> +# include <semaphore.h> #endif #ifdef __cplusplus @@ -42,6 +42,8 @@ extern "C" { @{ */ +struct ZixSemImpl; + /** A counting semaphore. @@ -23,10 +23,10 @@ @{ */ +#include "zix/btree.h" #include "zix/common.h" #include "zix/sorted_array.h" #include "zix/tree.h" -#include "zix/btree.h" /** @} |