From 569b61137cf45521d9fd4f693cf841be485dd4b8 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 13 Dec 2025 11:17:09 -0700 Subject: move all standard library includes into util.h --- test/core/array-test.c | 7 +------ test/core/buffer-test.c | 8 +++----- test/core/map-test.c | 7 +++---- test/core/text-test.c | 11 ++--------- 4 files changed, 9 insertions(+), 24 deletions(-) (limited to 'test/core') 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 -#include -#include -#include -#include -#include +#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 -#include -#include -#include -#include +#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 -#include -#include -#include +#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 -#include -#include -#include -#include -#include -#include -#include "tap.h" - #include "util.h" +#include "tap.h" + #include "array.c" #include "buffer.c" #include "text.c" -- cgit v1.2.3