Lines Matching refs:hunk
153 int error = 0, hunk, failed, i, fd;
243 * handling it until hunk processing because we want to swap
244 * the hunk if they opt to reverse it, but we want to make sure
245 * we *can* swap the hunk without running into memory issues
273 /* apply each hunk of patch */
274 hunk = 0;
280 assert(!out_creating || hunk == 0);
281 hunk++;
286 * results in us skipping hunk location, in order:
294 * also tied to this hunk processing loop.
306 if (hunk == 1 && where == 0 && !force && !reverse_seen) {
310 say("Not enough memory to try swapped hunk! Assuming unswapped.\n");
320 fatal("lost hunk on alloc error!\n");
325 fatal("lost hunk on alloc error!\n");
348 fatal("lost hunk on alloc error!\n");
370 hunk, newwhere);
376 hunk, newwhere);
381 hunk, newwhere);
405 if (hunk == 0)
406 fatal("Internal error: hunk should not be 0\n");
465 failed, hunk, skip_rest_of_patch ? "ignored" : "failed", rejname);
468 failed, hunk, skip_rest_of_patch ? "ignored" : "failed", filearg[0]);
700 * Attempt to find the right place to apply this hunk of patch.
748 /* We did not find the pattern, dump out the hunk so they can handle it. */
757 * hunk
840 fprintf(rejfp, "malformed hunk: no split found\n");
1018 * Copy input file to output, up to wherever hunk is to be applied.
1179 fatal("lost hunk on alloc error!\n");
1202 fatal("lost hunk on alloc error!\n");
1208 * prior patch/hunk as in that branch.
1218 * we've taken this out of the normal flow of hunk processing to