- 21 2月, 2017 13 次提交
-
-
由 Max Bruckner 提交于
This is the first step in removing the global allocator functions. Every internal function now only accesses its locally available set of allocators.
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
Now that printbuffer is used for everything, it's not needed anymore.
-
- 19 2月, 2017 3 次提交
-
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
-
- 18 2月, 2017 4 次提交
-
-
由 Max Bruckner 提交于
We don't need to copy the entire printbuffer, only the part that is used.
-
由 Max Bruckner 提交于
-
由 Max Bruckner 提交于
This allowed for the removal of a lot of if (p) checks.
-
由 Max Bruckner 提交于
-
- 17 2月, 2017 11 次提交
-
-
由 Max Bruckner 提交于
-
由 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 7 次提交
-
-
由 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 提交于
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 提交于
-
- 15 2月, 2017 1 次提交
-
-
由 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.
-
- 08 2月, 2017 1 次提交
-
-
由 Max Bruckner 提交于
-