Lines Matching refs:fail

539     goto fail;  in utf16_literal_to_utf8()
546 if ((first_code >= 0xDC00) && (first_code <= 0xDFFF)) goto fail; in utf16_literal_to_utf8()
556 goto fail; in utf16_literal_to_utf8()
561 goto fail; in utf16_literal_to_utf8()
569 goto fail; in utf16_literal_to_utf8()
599 goto fail; in utf16_literal_to_utf8()
619 fail: in utf16_literal_to_utf8()
632 if (buffer_at_offset(input_buffer)[0] != '\"') goto fail; in parse_string()
643 goto fail; in parse_string()
650 …t_buffer->content) >= input_buffer->length) || (*input_end != '\"')) goto fail; /* string ended un… in parse_string()
655 if (output == NULL) goto fail; /* allocation failure */ in parse_string()
665 if ((input_end - input_pointer) < 1) goto fail; in parse_string()
694 goto fail; in parse_string()
699 goto fail; in parse_string()
716 fail: in parse_string()
889 if (value == NULL || 0 == buffer_length) goto fail; in cJSON_ParseWithLengthOpts()
899 goto fail; in cJSON_ParseWithLengthOpts()
904 goto fail; in cJSON_ParseWithLengthOpts()
910 if ((buffer.offset >= buffer.length) || buffer_at_offset(&buffer)[0] != '\0') goto fail; in cJSON_ParseWithLengthOpts()
916 fail: in cJSON_ParseWithLengthOpts()
964 if (buffer->buffer == NULL) goto fail; in print()
967 if (!print_value(item, buffer)) goto fail; in print()
973 if (printed == NULL) goto fail; in print()
978 if (printed == NULL) goto fail; in print()
988 fail: in print()
1152 goto fail; in parse_array()
1165 goto fail; in parse_array()
1174 if (new_item == NULL) goto fail; /* allocation failure */ in parse_array()
1190 if (!parse_value(current_item, input_buffer)) goto fail; /* failed to parse value */ in parse_array()
1194 …_index(input_buffer, 0) || buffer_at_offset(input_buffer)[0] != ']') goto fail; /* expected end of… in parse_array()
1208 fail: in parse_array()
1265 …ndex(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != '{')) goto fail; /* not an object */ in parse_object()
1274 goto fail; in parse_object()
1283 if (new_item == NULL) goto fail; /* allocation failure */ in parse_object()
1299 if (!parse_string(current_item, input_buffer)) goto fail; /* failed to parse name */ in parse_object()
1306 …ndex(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != ':')) goto fail; /* invalid object … in parse_object()
1311 if (!parse_value(current_item, input_buffer)) goto fail; /* failed to parse value */ in parse_object()
1315 …ndex(input_buffer, 0) || (buffer_at_offset(input_buffer)[0] != '}')) goto fail; /* expected end of… in parse_object()
1328 fail: in parse_object()
2085 if (!item) goto fail; in cJSON_Duplicate()
2088 if (!newitem) goto fail; in cJSON_Duplicate()
2095 if (!newitem->valuestring) goto fail; in cJSON_Duplicate()
2099 if (!newitem->string) goto fail; in cJSON_Duplicate()
2107 if (!newchild) goto fail; in cJSON_Duplicate()
2124 fail: in cJSON_Duplicate()