Releases: DaveGamble/cJSON
Releases · DaveGamble/cJSON
1.7.8
1.7.7
Fixes:
- Fix a memory leak when realloc fails (see #267), thanks @AlfieDeng for reporting
- Fix a typo in the header file (see #266), thanks @zhaozhixu
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
Fixes:
- Fixed an Off-By-One error that could lead to an out of bounds write. Thanks @liuyunbin for reporting (see #230)
- Fixed two errors with buffered printing. Thanks @liuyunbin for reporting (see #230)
1.7.0
Features:
- Large rewrite of the documentation, see #215
- Added the
cJSON_GetStringValue
function - Added the
cJSON_CreateStringReference
function - Added the
cJSON_CreateArrayReference
function - Added the
cJSON_CreateObjectReference
function - The
cJSON_Add...ToObject
macros are now functions that return a pointer to the added item, see #226
Fixes:
- Fix a problem with
GNUInstallDirs
in the CMakeLists.txt, thanks @yangfl, see #210 - Fix linking the tests when building as static library, see #213
- New overrides for the CMake option
BUILD_SHARED_LIBS
, see #207
Other Changes:
- Readme: Explain how to include cJSON, see #211
- Removed some trailing spaces in the code, thanks @yangfl, see #212
- Updated Unity and json-patch-tests
1.6.0
Features:
- You can now build cJSON as both shared and static library at once with CMake using
-DBUILD_SHARED_AND_STATIC_LIBS=On
, see #178 - UTF-8 byte order marks are now ignored, see #184
- Locales can now be disabled with the option
-DENABLE_LOCALES=Off
, see #202, thanks @Casperinous - Better support for MSVC and Visual Studio
Other Changes:
- Add the new warnings
-Wswitch-enum
,-Wused-but-makred-unused
,-Wmissing-variable-declarations
,-Wunused-macro
- More number printing tests.
- Continuous integration testing with AppVeyor (semi automatic at this point), thanks @simon-p-r