- 23 2月, 2017 1 次提交
-
-
由 Mike Jerris 提交于
-
- 17 2月, 2017 12 次提交
-
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
Simplify parsing
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
This restructures parse_string in a way, that you need to keep less state in your head to understand the code. This is achieved by: * only changing the input pointer (current position) at a few places (not all throughout) * splitting out the UTF16 handling into a separate function * renaming the variables so you know what they do without additional context
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
- 16 2月, 2017 13 次提交
-
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
This only attaches the parsed linked lists to the items passed to parse_object and parse_array.
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
This replaces the bit fiddling involved with calculating a new buffer size by just multiplying the required length by two, paving the way to a complete switch to size_t at a later point in time.
-
由 Max Bruckner 提交于
Introduces a preprocessor directive that aborts the compilation if the version numbers in the header don't match with the numbers in the c file.
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
Add new type cJSON_Invalid
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
This sets the type of an item only if parsing was successful. This means that in case of failure, the item's type will remain to be cJSON_Invalid.
-
由 Max Bruckner 提交于
This assigns the macro cJSON_Invalid to 0.
-
由 Max Bruckner 提交于
-
- 15 2月, 2017 2 次提交
-
-
由 Max Bruckner 提交于
This fixes a double free that happens when calling cJSON_Delete on an item that has been used by parse_string and it failed parsing the string. The double free happens, because parse_string frees an alias of item->valuestring, but doesn't set item->valuestring to NULL.
-
由 Max Bruckner 提交于
-
- 09 2月, 2017 1 次提交
-
-
由 Max Bruckner 提交于
Thanks @rrvirtual for the suggestion.
-
- 08 2月, 2017 11 次提交
-
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
Introduce the cunity testing framework
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
Enabling this flag enables AddressSanitizer and UndefinedBehaviorSanitizer
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-