Lines Matching refs:new_path
1192 unsigned char *new_path = (unsigned char*)cJSON_malloc(strlen((const char*)path) + 20 + sizeof("/")); /* Allow space for 64bit int. log10(2^64) = 20 */
1202 cJSON_free(new_path);
1205 sprintf((char*)new_path, "%s/%lu", path, (unsigned long)index); /* path of the current array element */
1206 create_patches(patches, new_path, from_child, to_child, case_sensitive);
1217 cJSON_free(new_path);
1220 sprintf((char*)new_path, "%lu", (unsigned long)index);
1221 compose_patch(patches, (const unsigned char*)"remove", path, new_path, NULL);
1228 cJSON_free(new_path);
1263 unsigned char *new_path = (unsigned char*)cJSON_malloc(path_length + from_child_name_length + sizeof("/"));
1265 sprintf((char*)new_path, "%s/", path);
1266 encode_string_as_pointer(new_path + path_length + 1, (unsigned char*)from_child->string);
1269 create_patches(patches, new_path, from_child, to_child, case_sensitive);
1270 cJSON_free(new_path);