Sat, 13 Dec 2025 16:31:55 +0100
changelog fixes and make dependency fixes
| CHANGELOG | file | annotate | diff | comparison | revisions | |
| docs/Writerside/topics/about.md | file | annotate | diff | comparison | revisions | |
| src/Makefile | file | annotate | diff | comparison | revisions |
--- 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
--- 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
--- 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 $<