diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-12-13 11:17:09 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-12-22 09:13:47 -0700 |
| commit | 569b61137cf45521d9fd4f693cf841be485dd4b8 (patch) | |
| tree | 41851443d00b15a45d39c9079001bc10c4c4806e /test/core | |
| parent | 5abe94420528d3e107eceb0f3df073e8a1270191 (diff) | |
| download | vis-569b61137cf45521d9fd4f693cf841be485dd4b8.tar.gz vis-569b61137cf45521d9fd4f693cf841be485dd4b8.tar.xz | |
move all standard library includes into util.h
Diffstat (limited to 'test/core')
| -rw-r--r-- | test/core/array-test.c | 7 | ||||
| -rw-r--r-- | test/core/buffer-test.c | 8 | ||||
| -rw-r--r-- | test/core/map-test.c | 7 | ||||
| -rw-r--r-- | test/core/text-test.c | 11 |
4 files changed, 9 insertions, 24 deletions
diff --git a/test/core/array-test.c b/test/core/array-test.c index e4da4f6..5944904 100644 --- a/test/core/array-test.c +++ b/test/core/array-test.c @@ -1,9 +1,4 @@ -#include <stdlib.h> -#include <stddef.h> -#include <stdbool.h> -#include <string.h> -#include <stdio.h> -#include <errno.h> +#include "util.h" #include "tap.h" diff --git a/test/core/buffer-test.c b/test/core/buffer-test.c index 8034ac4..edb7786 100644 --- a/test/core/buffer-test.c +++ b/test/core/buffer-test.c @@ -1,9 +1,7 @@ -#include <stdbool.h> -#include <stddef.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> +#include "util.h" + #include "tap.h" + #include "buffer.c" static bool compare(Buffer *buf, const char *data, size_t len) { diff --git a/test/core/map-test.c b/test/core/map-test.c index a8231a3..a78777f 100644 --- a/test/core/map-test.c +++ b/test/core/map-test.c @@ -1,8 +1,7 @@ -#include <stddef.h> -#include <stdbool.h> -#include <string.h> -#include <stdio.h> +#include "util.h" + #include "tap.h" + #include "map.c" static bool get(Map *map, const char *key, const void *data) { diff --git a/test/core/text-test.c b/test/core/text-test.c index c69038c..4ec5fb6 100644 --- a/test/core/text-test.c +++ b/test/core/text-test.c @@ -1,14 +1,7 @@ -#include <errno.h> -#include <fcntl.h> -#include <stdbool.h> -#include <stddef.h> -#include <stdio.h> -#include <string.h> -#include <unistd.h> -#include "tap.h" - #include "util.h" +#include "tap.h" + #include "array.c" #include "buffer.c" #include "text.c" |
