Searched refs:patches (Results 1 – 2 of 2) sorted by relevance
51 char*** sha1s, Value*** patches, int* num_patches) { in ParsePatchArgs() argument54 *patches = malloc(*num_patches * sizeof(Value*)); in ParsePatchArgs()55 memset(*patches, 0, *num_patches * sizeof(Value*)); in ParsePatchArgs()74 (*patches)[i] = NULL; in ParsePatchArgs()80 (*patches)[i] = malloc(sizeof(Value)); in ParsePatchArgs()81 (*patches)[i]->type = VAL_BLOB; in ParsePatchArgs()82 (*patches)[i]->size = fc.size; in ParsePatchArgs()83 (*patches)[i]->data = (char*)fc.data; in ParsePatchArgs()91 Value* p = (*patches)[i]; in ParsePatchArgs()98 free(*patches); in ParsePatchArgs()[all …]
1182 Value** patches = ReadValueVarArgs(state, argc-4, argv+4); in ApplyPatchFn() local1186 if (patches[i*2]->type != VAL_STRING) { in ApplyPatchFn()1190 if (patches[i*2+1]->type != VAL_BLOB) { in ApplyPatchFn()1197 FreeValue(patches[i]); in ApplyPatchFn()1199 free(patches); in ApplyPatchFn()1205 patch_sha_str[i] = patches[i*2]->data; in ApplyPatchFn()1206 patches[i*2]->data = NULL; in ApplyPatchFn()1207 FreeValue(patches[i*2]); in ApplyPatchFn()1208 patches[i] = patches[i*2+1]; in ApplyPatchFn()1213 patchcount, patch_sha_str, patches, NULL); in ApplyPatchFn()[all …]