Home | History | Annotate | Download | only in applypatch

Lines Matching full:patches

48 // *patches (loading file contents into the patches).  Returns 0 on
51 char*** sha1s, Value*** patches, int* num_patches) {
54 *patches = malloc(*num_patches * sizeof(Value*));
55 memset(*patches, 0, *num_patches * sizeof(Value*));
74 (*patches)[i] = NULL;
80 (*patches)[i] = malloc(sizeof(Value));
81 (*patches)[i]->type = VAL_BLOB;
82 (*patches)[i]->size = fc.size;
83 (*patches)[i]->data = (char*)fc.data;
91 Value* p = (*patches)[i];
98 free(*patches);
130 Value** patches;
132 if (ParsePatchArgs(argc-5, argv+5, &sha1s, &patches, &num_patches) != 0) {
138 num_patches, sha1s, patches, bonus);
142 Value* p = patches[i];
153 free(patches);
158 // This program applies binary patches to files in a way that is safe