# HG changeset patch # User Mike Becker # Date 1765639915 -3600 # Node ID 7fc3bea7648136b8ecbee7336459b5ab6d0f0832 # Parent 7ab8b302d187a36dcd47a63d91bcbb27ae411132 changelog fixes and make dependency fixes diff -r 7ab8b302d187 -r 7fc3bea76481 CHANGELOG --- a/CHANGELOG Sat Dec 13 16:30:41 2025 +0100 +++ b/CHANGELOG Sat Dec 13 16:31:55 2025 +0100 @@ -11,7 +11,7 @@ * adds CX_BUFFER_DO_NOT_FREE buffer flag * changes cxBufferReserve() to allow reducing the capacity * changes cxBufferTerminate() to automatically shrink the buffer - * changes cxBufferTerminate() so that position and size are equal after successful operation + * changes cxBufferTerminate() so that position and size are equal a after successful operation * changes cxBufferPutString() to accept any kind of string that cx_strcast() supports * changes the members of CxJson and CxJsonValue * changes the return value of cxJsonObjIter() to CxMapIterator @@ -21,7 +21,7 @@ * fixes cxJsonWrite() incorrectly returning non-zero when strings needed to be escaped * fixes cxJsonNext() incorrectly returning CX_JSON_INCOMPLETE_DATA when the input ends with trailing spaces * fixes critical memory leak when using cxMapFree() on a kv-list that is using destructors - * fixes critical use-after-free with keys stored in k/v-lists + * fixes critical use-after-free with keys stored in kv-lists * fixes that overwriting items with cxMapPut() in a kv-list did not work * fixes that cxReallocate(), cxReallocateArray(), cx_reallocate(), and cx_reallocatearray() were not returning zero after freeing the memory when passed a size of zero diff -r 7ab8b302d187 -r 7fc3bea76481 docs/Writerside/topics/about.md --- a/docs/Writerside/topics/about.md Sat Dec 13 16:30:41 2025 +0100 +++ b/docs/Writerside/topics/about.md Sat Dec 13 16:31:55 2025 +0100 @@ -38,7 +38,7 @@ * adds CX_BUFFER_DO_NOT_FREE buffer flag * changes cxBufferReserve() to allow reducing the capacity * changes cxBufferTerminate() to automatically shrink the buffer -* changes cxBufferTerminate() so that position and size are equal after successful operation +* changes cxBufferTerminate() so that position and size are equal after a successful operation * changes cxBufferPutString() to accept any kind of string that cx_strcast() supports * changes the members of CxJson and CxJsonValue * changes the return value of cxJsonObjIter() to CxMapIterator @@ -48,7 +48,7 @@ * fixes cxJsonWrite() incorrectly returning non-zero when strings needed to be escaped * fixes cxJsonNext() incorrectly returning CX_JSON_INCOMPLETE_DATA when the input ends with trailing spaces * fixes critical memory leak when using cxMapFree() on a kv-list that is using destructors -* fixes critical use-after-free with keys stored in k/v-lists +* fixes critical use-after-free with keys stored in kv-lists * fixes that overwriting items with cxMapPut() in a kv-list did not work * fixes that cxReallocate(), cxReallocateArray(), cx_reallocate(), and cx_reallocatearray() were not returning zero after freeing the memory when passed a size of zero diff -r 7ab8b302d187 -r 7fc3bea76481 src/Makefile --- a/src/Makefile Sat Dec 13 16:30:41 2025 +0100 +++ b/src/Makefile Sat Dec 13 16:31:55 2025 +0100 @@ -104,7 +104,8 @@ $(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/iterator.h cx/compare.h cx/map.h cx/hash_key.h cx/kv_list.h \ + cx/hash_map.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $<