/third_party/cJSON/ |
D | cJSON.h | 103 typedef struct cJSON struct 106 struct cJSON *next; argument 107 struct cJSON *prev; argument 109 struct cJSON *child; argument 123 } cJSON; argument 148 CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value); 149 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLength(const char *value, size_t buffer_length); 152 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_b… 153 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char… 156 CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item); [all …]
|
D | cJSON_Utils.h | 34 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer); 35 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer); 39 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON * const from, cJSON * const to); 40 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatchesCaseSensitive(cJSON * const from, cJSON * const to); 42 …void) cJSONUtils_AddPatchToArray(cJSON * const array, const char * const operation, const char * c… 44 CJSON_PUBLIC(int) cJSONUtils_ApplyPatches(cJSON * const object, const cJSON * const patches); 45 CJSON_PUBLIC(int) cJSONUtils_ApplyPatchesCaseSensitive(cJSON * const object, const cJSON * const pa… 70 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatch(cJSON *target, const cJSON * const patch); 71 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatchCaseSensitive(cJSON *target, const cJSON * const patch); 74 CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatch(cJSON * const from, cJSON * const to); [all …]
|
D | cJSON.c | 99 CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON * const item) in cJSON_GetStringValue() 109 CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item) in cJSON_GetNumberValue() 121 #error cJSON.h and cJSON.c have different versions. Make sure that both have the same. 241 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item() 243 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item() 246 memset(node, '\0', sizeof(cJSON)); in cJSON_New_Item() 253 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) in cJSON_Delete() 255 cJSON *next = NULL; in cJSON_Delete() 305 static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer) in parse_number() 382 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper() [all …]
|
D | cJSON_Utils.c | 198 CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * c… in cJSONUtils_FindPointerFromObjectTo() 201 cJSON *current_child = 0; in cJSONUtils_FindPointerFromObjectTo() 262 static cJSON *get_array_item(const cJSON *array, size_t item) in get_array_item() 264 cJSON *child = array ? array->child : NULL; in get_array_item() 301 static cJSON *get_item_from_pointer(cJSON * const object, const char * pointer, const cJSON_bool ca… in get_item_from_pointer() 303 cJSON *current_element = object; in get_item_from_pointer() 348 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer) in cJSONUtils_GetPointer() 353 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer) in cJSONUtils_GetPointerCaseSensitive() 393 static cJSON *detach_item_from_array(cJSON *array, size_t which) in detach_item_from_array() 395 cJSON *c = array->child; in detach_item_from_array() [all …]
|
D | CHANGELOG.md | 24 * Fix potential core dumped for strrchr, see [#546](https://github.com/DaveGamble/cJSON/pull/546) 25 * Fix null pointer crash in cJSON_CreateXxArray, see [#538](https://github.com/DaveGamble/cJSON/pul… 26 …ll pointer problems on allocation failure, see [#526](https://github.com/DaveGamble/cJSON/pull/526) 27 * Fix a possible dereference of null pointer, see [#519](https://github.com/DaveGamble/cJSON/pull/5… 28 * Fix windows build failure about defining nan, see [#518](https://github.com/DaveGamble/cJSON/pull… 34 * optimize the way to find tail node, see [#503](https://github.com/DaveGamble/cJSON/pull/503) 35 …osx because NAN is a float. Thanks @sappo, see [#484](https://github.com/DaveGamble/cJSON/pull/484) 36 … in detach and replace. Thanks @miaoerduo, see [#456](https://github.com/DaveGamble/cJSON/pull/456) 42 …t breaking changes. Thanks @caglarivriz, see [#358](https://github.com/DaveGamble/cJSON/pull/358) 43 … cJSON_GetNumberValue. Thanks @Intuition, see[#385](https://github.com/DaveGamble/cJSON/pull/385) [all …]
|
D | README.md | 1 # cJSON chapter 8 * [Welcome to cJSON](#welcome-to-cjson) 15 * [Including cJSON](#including-cjson) 35 * [Enjoy cJSON!](#enjoy-cjson) 41 > Copyright (c) 2009-2017 Dave Gamble and cJSON contributors 63 ### Welcome to cJSON. 65 cJSON aims to be the dumbest possible parser that you can get your job done with. 72 As a library, cJSON exists to take away as much legwork as it can, but not get in your way. 77 That page inspired me to write cJSON, which is a parser that tries to share the same 82 There are several ways to incorporate cJSON into your project. [all …]
|
D | BUILD.gn | 16 include_dirs = [ "//third_party/cJSON" ] 21 "cJSON.c", 44 include_dirs = [ "//third_party/cJSON" ] 48 sources = [ "cJSON.c" ] 50 part_name = "cJSON" 54 sources = [ "cJSON.c" ] 60 part_name = "cJSON"
|
D | Makefile | 1 CJSON_OBJ = cJSON.o 7 CJSON_TEST_SRC = cJSON.c test.c 87 $(CJSON_TEST): $(CJSON_TEST_SRC) cJSON.h 108 $(CJSON_OBJ): cJSON.c cJSON.h 110 $(UTILS_OBJ): cJSON_Utils.c cJSON_Utils.h cJSON.h 129 $(INSTALL) cJSON.h $(INSTALL_INCLUDE_PATH) 144 $(RM) $(INSTALL_INCLUDE_PATH)/cJSON.h
|
D | test.c | 43 static int print_preallocated(cJSON *root) in print_preallocated() 112 cJSON *root = NULL; in create_objects() 113 cJSON *fmt = NULL; in create_objects() 114 cJSON *img = NULL; in create_objects() 115 cJSON *thm = NULL; in create_objects() 116 cJSON *fld = NULL; in create_objects()
|
D | CMakeLists.txt | 4 project(cJSON project 115 #cJSON 118 file(GLOB HEADERS cJSON.h) 119 set(SOURCES cJSON.c) 124 option(ENABLE_CJSON_VERSION_SO "Enables cJSON so version" ON) 149 install(FILES cJSON.h DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}/cjson") 167 install(EXPORT "${CJSON_LIB}" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/cJSON") 218 install(EXPORT "${CJSON_UTILS_LIB}" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/cJSON") 241 DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/cJSON") 244 option(ENABLE_CJSON_TEST "Enable building cJSON test" ON)
|
/third_party/vulkan-loader/loader/ |
D | cJSON.h | 47 typedef struct cJSON { struct 48 struct cJSON *next, *prev; /* next/prev allow you to walk array/object argument 51 struct cJSON *child; /* An array or object item will have a child pointer argument 65 } cJSON; argument 69 cJSON *cJSON_Parse(const VkAllocationCallbacks *pAllocator, const char *value); 72 char *cJSON_Print(cJSON *item); 75 char *cJSON_PrintUnformatted(cJSON *item); 79 char *cJSON_PrintBuffered(cJSON *item, int prebuffer, int fmt); 81 void cJSON_Delete(cJSON *c); 86 int cJSON_GetArraySize(cJSON *array); [all …]
|
D | cJSON.c | 63 cJSON *cJSON_New_Item(const VkAllocationCallbacks *pAllocator) { in cJSON_New_Item() 64 cJSON *node = (cJSON *)cJSON_malloc(pAllocator, sizeof(cJSON)); in cJSON_New_Item() 66 memset(node, 0, sizeof(cJSON)); in cJSON_New_Item() 73 void cJSON_Delete(cJSON *c) { in cJSON_Delete() 74 cJSON *next; in cJSON_Delete() 87 const char *parse_number(cJSON *item, const char *num) { in parse_number() 166 char *print_number(cJSON *item, printbuffer *p) { in print_number() 243 const char *parse_string(cJSON *item, const char *str) { in parse_string() 430 char *print_string(cJSON *item, printbuffer *p) { return print_string_ptr(item->pAllocator, item->v… in print_string() 433 const char *parse_value(cJSON *item, const char *value); [all …]
|
/third_party/cJSON/tests/ |
D | cjson_add.c | 50 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_add_null() 51 cJSON *null = NULL; in cjson_add_null_should_add_null() 63 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_fail_with_null_pointers() 73 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_fail_on_allocation_failure() 86 cJSON *root = cJSON_CreateObject(); in cjson_add_true_should_add_true() 87 cJSON *true_item = NULL; in cjson_add_true_should_add_true() 99 cJSON *root = cJSON_CreateObject(); in cjson_add_true_should_fail_with_null_pointers() 109 cJSON *root = cJSON_CreateObject(); in cjson_add_true_should_fail_on_allocation_failure() 166 cJSON *root = cJSON_CreateObject(); in cjson_add_false_should_add_false() 167 cJSON *false_item = NULL; in cjson_add_false_should_add_false() [all …]
|
D | json_patch_tests.c | 32 static cJSON *parse_test_file(const char * const filename) in parse_test_file() 35 cJSON *json = NULL; in parse_test_file() 49 static cJSON_bool test_apply_patch(const cJSON * const test) in test_apply_patch() 51 cJSON *doc = NULL; in test_apply_patch() 52 cJSON *patch = NULL; in test_apply_patch() 53 cJSON *expected = NULL; in test_apply_patch() 54 cJSON *error_element = NULL; in test_apply_patch() 55 cJSON *comment = NULL; in test_apply_patch() 56 cJSON *disabled = NULL; in test_apply_patch() 58 cJSON *object = NULL; in test_apply_patch() [all …]
|
D | misc_tests.c | 33 cJSON array[1]; in cjson_array_foreach_should_loop_over_arrays() 34 cJSON elements[10]; in cjson_array_foreach_should_loop_over_arrays() 35 cJSON *element_pointer = NULL; in cjson_array_foreach_should_loop_over_arrays() 61 cJSON *array = NULL; in cjson_array_foreach_should_not_dereference_null_pointer() 62 cJSON *element = NULL; in cjson_array_foreach_should_not_dereference_null_pointer() 68 cJSON *item = NULL; in cjson_get_object_item_should_get_object_items() 69 cJSON *found = NULL; in cjson_get_object_item_should_get_object_items() 99 cJSON *item = NULL; in cjson_get_object_item_case_sensitive_should_get_object_items() 100 cJSON *found = NULL; in cjson_get_object_item_case_sensitive_should_get_object_items() 130 cJSON *array = NULL; in cjson_get_object_item_should_not_crash_with_array() [all …]
|
D | readme_examples.c | 53 cJSON *name = NULL; in create_monitor() 54 cJSON *resolutions = NULL; in create_monitor() 55 cJSON *resolution = NULL; in create_monitor() 56 cJSON *width = NULL; in create_monitor() 57 cJSON *height = NULL; in create_monitor() 60 cJSON *monitor = cJSON_CreateObject(); in create_monitor() 125 cJSON *resolutions = NULL; in create_monitor_with_helpers() 128 cJSON *monitor = cJSON_CreateObject(); in create_monitor_with_helpers() 143 cJSON *resolution = cJSON_CreateObject(); in create_monitor_with_helpers() 171 const cJSON *resolution = NULL; in supports_full_hd() [all …]
|
D | old_utils_tests.c | 54 cJSON *root = NULL; in json_pointer_tests() 92 cJSON *object = NULL; in misc_tests() 93 cJSON *object1 = NULL; in misc_tests() 94 cJSON *object2 = NULL; in misc_tests() 95 cJSON *object3 = NULL; in misc_tests() 96 cJSON *object4 = NULL; in misc_tests() 97 cJSON *nums = NULL; in misc_tests() 98 cJSON *num6 = NULL; in misc_tests() 143 cJSON *sortme = NULL; in sort_tests() 145 cJSON *current_element = NULL; in sort_tests() [all …]
|
D | parse_examples.c | 31 static cJSON *parse_file(const char *filename) in parse_file() 33 cJSON *parsed = NULL; in parse_file() 50 cJSON *tree = NULL; in do_test() 137 cJSON *tree = NULL; in file_test6_should_not_be_parsed() 185 cJSON *tree = NULL; in test12_should_not_be_parsed() 200 cJSON *tree = NULL; in test13_should_be_parsed_without_null_termination() 229 cJSON *tree = NULL; in test14_should_not_be_parsed()
|
D | compare_tests.c | 29 cJSON *a_json = NULL; in compare_from_string() 30 cJSON *b_json = NULL; in compare_from_string() 54 cJSON invalid[1]; in cjson_compare_should_compare_invalid_as_not_equal() 103 cJSON invalid[1]; in cjson_compare_should_not_accept_invalid_types() 123 cJSON *raw1 = NULL; in cjson_compare_should_compare_raw() 124 cJSON *raw2 = NULL; in cjson_compare_should_compare_raw()
|
D | parse_with_opts.c | 30 cJSON *item = NULL; in parse_with_opts_should_handle_null() 64 cJSON *item = cJSON_ParseWithOpts("{}", NULL, true); in parse_with_opts_should_require_null_if_requested() 78 cJSON *item = cJSON_ParseWithOpts(json, &parse_end, false); in parse_with_opts_should_return_parse_end() 86 cJSON *with_bom = NULL; in parse_with_opts_should_parse_utf8_bom() 87 cJSON *without_bom = NULL; in parse_with_opts_should_parse_utf8_bom()
|
D | parse_object.c | 31 static cJSON item[1]; 33 static void assert_is_object(cJSON *object_item) in assert_is_object() 45 static void assert_is_child(cJSON *child_item, const char *name, int type) in assert_is_child() 117 cJSON *node = NULL; in parse_object_should_parse_objects_with_multiple_elements() 168 memset(item, 0, sizeof(cJSON)); in main()
|
D | parse_array.c | 31 static cJSON item[1]; 33 static void assert_is_array(cJSON *array_item) in assert_is_array() 118 cJSON *node = NULL; in parse_array_should_parse_arrays_with_multiple_elements() 159 memset(item, 0, sizeof(cJSON)); in main()
|
D | parse_number.c | 31 static cJSON item[1]; 33 static void assert_is_number(cJSON *number_item) in assert_is_number() 102 memset(item, 0, sizeof(cJSON)); in main()
|
D | parse_value.c | 31 static cJSON item[1]; 33 static void assert_is_value(cJSON *value_item, int type) in assert_is_value() 102 memset(item, 0, sizeof(cJSON)); in main()
|
/third_party/cJSON/library_config/ |
D | cJSONConfig.cmake.in | 4 # The include directories used by cJSON 10 # The cJSON library 18 # The cJSON utils library 20 # All cJSON libraries 27 # All cJSON libraries
|