fix misplaced includes

Sat, 13 Dec 2025 16:41:10 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 13 Dec 2025 16:41:10 +0100
changeset 1591
ef2f47fc5f0c
parent 1590
7fc3bea76481
child 1592
c1e17411004f

fix misplaced includes

src/Makefile file | annotate | diff | comparison | revisions
src/cx/json.h file | annotate | diff | comparison | revisions
src/json.c file | annotate | diff | comparison | revisions
tests/Makefile file | annotate | diff | comparison | revisions
tests/test_mempool.c file | annotate | diff | comparison | revisions
--- 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 $<
 
--- 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 <string.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
--- 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
--- 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 $<
 
--- 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"
 

mercurial