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 …]
869 Value** patches = ReadValueVarArgs(state, argc-4, argv+4); in ApplyPatchFn() local873 if (patches[i*2]->type != VAL_STRING) { in ApplyPatchFn()877 if (patches[i*2+1]->type != VAL_BLOB) { in ApplyPatchFn()884 FreeValue(patches[i]); in ApplyPatchFn()886 free(patches); in ApplyPatchFn()892 patch_sha_str[i] = patches[i*2]->data; in ApplyPatchFn()893 patches[i*2]->data = NULL; in ApplyPatchFn()894 FreeValue(patches[i*2]); in ApplyPatchFn()895 patches[i] = patches[i*2+1]; in ApplyPatchFn()900 patchcount, patch_sha_str, patches, NULL); in ApplyPatchFn()[all …]