# HG changeset patch # User Mike Becker # Date 1765640470 -3600 # Node ID ef2f47fc5f0c7f60bf1b3d44ad8c5eb5d33acddd # Parent 7fc3bea7648136b8ecbee7336459b5ab6d0f0832 fix misplaced includes diff -r 7fc3bea76481 -r ef2f47fc5f0c src/Makefile --- a/src/Makefile Sat Dec 13 16:31:55 2025 +0100 +++ b/src/Makefile Sat Dec 13 16:41:10 2025 +0100 @@ -104,8 +104,7 @@ $(build_dir)/json$(OBJ_EXT): json.c cx/json.h cx/common.h cx/allocator.h \ cx/string.h cx/buffer.h cx/array_list.h cx/list.h cx/collection.h \ - cx/iterator.h cx/compare.h cx/map.h cx/hash_key.h cx/kv_list.h \ - cx/hash_map.h + cx/iterator.h cx/compare.h cx/map.h cx/hash_key.h cx/kv_list.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< diff -r 7fc3bea76481 -r ef2f47fc5f0c src/cx/json.h --- a/src/cx/json.h Sat Dec 13 16:31:55 2025 +0100 +++ b/src/cx/json.h Sat Dec 13 16:41:10 2025 +0100 @@ -43,8 +43,6 @@ #include "array_list.h" #include "map.h" -#include - #ifdef __cplusplus extern "C" { #endif diff -r 7fc3bea76481 -r ef2f47fc5f0c src/json.c --- a/src/json.c Sat Dec 13 16:31:55 2025 +0100 +++ b/src/json.c Sat Dec 13 16:41:10 2025 +0100 @@ -452,8 +452,6 @@ return ret; } -#include "cx/hash_map.h" - static CxJsonObject json_create_object_map(const CxAllocator *allocator) { CxMap *map = cxKvListCreateAsMap(allocator, NULL, CX_STORE_POINTERS); if (map == NULL) return NULL; // LCOV_EXCL_LINE diff -r 7fc3bea76481 -r ef2f47fc5f0c tests/Makefile --- a/tests/Makefile Sat Dec 13 16:31:55 2025 +0100 +++ b/tests/Makefile Sat Dec 13 16:41:10 2025 +0100 @@ -116,8 +116,7 @@ $(CC) -o $@ $(CFLAGS) -I../src -c $< $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \ - ../src/cx/common.h util_allocator.h ../src/cx/allocator.h \ - ../src/cx/mempool.h ../src/cx/allocator.h + ../src/cx/common.h ../src/cx/mempool.h ../src/cx/allocator.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -I../src -c $< diff -r 7fc3bea76481 -r ef2f47fc5f0c tests/test_mempool.c --- a/tests/test_mempool.c Sat Dec 13 16:31:55 2025 +0100 +++ b/tests/test_mempool.c Sat Dec 13 16:41:10 2025 +0100 @@ -27,7 +27,6 @@ */ #include "cx/test.h" -#include "util_allocator.h" #include "cx/mempool.h"