Lines Matching refs:out_of_memory
256 static const char *parse_string(cJSON *item, const char *str, bool *out_of_memory) {
272 *out_of_memory = true;
446 static const char *parse_value(cJSON *item, const char *value, bool *out_of_memory);
448 static const char *parse_array(cJSON *item, const char *value, bool *out_of_memory);
450 static const char *parse_object(cJSON *item, const char *value, bool *out_of_memory);
461 int require_null_terminated, bool *out_of_memory) {
466 *out_of_memory = true;
470 end = parse_value(c, skip(value), out_of_memory);
490 static cJSON *cJSON_Parse(const VkAllocationCallbacks *pAllocator, const char *value, bool *out_of_memory) {
491 return cJSON_ParseWithOpts(pAllocator, value, 0, 0, out_of_memory);
499 static const char *parse_value(cJSON *item, const char *value, bool *out_of_memory) {
515 return parse_string(item, value, out_of_memory);
521 return parse_array(item, value, out_of_memory);
524 return parse_object(item, value, out_of_memory);
594 static const char *parse_array(cJSON *item, const char *value, bool *out_of_memory) {
607 *out_of_memory = true;
610 value = skip(parse_value(child, skip(value), out_of_memory)); /* skip any spacing, get the value. */
617 *out_of_memory = true;
623 value = skip(parse_value(child, skip(value + 1), out_of_memory));
733 static const char *parse_object(cJSON *item, const char *value, bool *out_of_memory) {
746 *out_of_memory = true;
749 value = skip(parse_string(child, skip(value), out_of_memory));
757 value = skip(parse_value(child, skip(value + 1), out_of_memory)); /* skip any spacing, get the value. */
764 *out_of_memory = true;
770 value = skip(parse_string(child, skip(value + 1), out_of_memory));
778 value = skip(parse_value(child, skip(value + 1), out_of_memory)); /* skip any spacing, get the value. */
1014 bool out_of_memory = false;
1015 *json = cJSON_Parse(inst ? &inst->alloc_callbacks : NULL, json_buf, &out_of_memory);
1016 if (out_of_memory) {