Home
last modified time | relevance | path

Searched refs:cJSON_StringIsConst (Results 1 – 7 of 7) sorted by relevance

/third_party/cJSON/tests/
Dmisc_tests.c157 invalid->type |= cJSON_StringIsConst; in typecheck_functions_should_check_type()
159 item->type |= cJSON_StringIsConst; in typecheck_functions_should_check_type()
165 item->type = cJSON_False | cJSON_StringIsConst; in typecheck_functions_should_check_type()
171 item->type = cJSON_True | cJSON_StringIsConst; in typecheck_functions_should_check_type()
177 item->type = cJSON_NULL | cJSON_StringIsConst; in typecheck_functions_should_check_type()
182 item->type = cJSON_Number | cJSON_StringIsConst; in typecheck_functions_should_check_type()
187 item->type = cJSON_String | cJSON_StringIsConst; in typecheck_functions_should_check_type()
192 item->type = cJSON_Array | cJSON_StringIsConst; in typecheck_functions_should_check_type()
197 item->type = cJSON_Object | cJSON_StringIsConst; in typecheck_functions_should_check_type()
202 item->type = cJSON_Raw | cJSON_StringIsConst; in typecheck_functions_should_check_type()
Dcommon.h38 if ((item->string != NULL) && !(item->type & cJSON_StringIsConst)) in reset()
105 #define assert_has_no_const_string(item) TEST_ASSERT_BITS_MESSAGE(cJSON_StringIsConst, 0, item->typ…
/third_party/vulkan-loader/loader/
DcJSON.h44 #define cJSON_StringIsConst 512 macro
DcJSON.c79 if (!(c->type & cJSON_StringIsConst) && c->string) cJSON_Free(c->pAllocator, c->string); in cJSON_Delete()
968 …if (!(item->type & cJSON_StringIsConst) && item->string) cJSON_Free(object->pAllocator, item->stri… in cJSON_AddItemToObjectCS()
970 item->type |= cJSON_StringIsConst; in cJSON_AddItemToObjectCS()
/third_party/cJSON/
DcJSON.c267 if (!(item->type & cJSON_StringIsConst) && (item->string != NULL)) in cJSON_Delete()
2029 new_type = item->type | cJSON_StringIsConst; in add_item_to_object()
2039 new_type = item->type & ~cJSON_StringIsConst; in add_item_to_object()
2042 if (!(item->type & cJSON_StringIsConst) && (item->string != NULL)) in add_item_to_object()
2369 if (!(replacement->type & cJSON_StringIsConst) && (replacement->string != NULL)) in replace_item_in_object()
2379 replacement->type &= ~cJSON_StringIsConst; in replace_item_in_object()
2748 …newitem->string = (item->type&cJSON_StringIsConst) ? item->string : (char*)cJSON_strdup((unsigned … in cJSON_Duplicate()
DcJSON.h100 #define cJSON_StringIsConst 512 macro
DREADME.md226 * `cJSON_StringIsConst`: This means that `string` points to a constant string. This means that `cJS…