Searched refs:hunk (Results 1 - 8 of 8) sorted by relevance

/freebsd-current/contrib/diff/src/
H A Ded.c38 /* Print a hunk of an ed diff */
41 print_ed_hunk (struct change *hunk)
47 debug_script (hunk);
51 changes = analyze_hunk (hunk, &f0, &l0, &f1, &l1);
57 /* Print out the line number header for this hunk */
95 pr_forward_ed_hunk (struct change *hunk)
100 enum changes changes = analyze_hunk (hunk, &f0, &l0, &f1, &l1);
135 /* Print a hunk of an RCS diff */ argument
138 print_rcs_hunk (struct change *hunk)
144 enum changes changes = analyze_hunk (hunk,
40 print_ed_hunk(struct change *hunk) argument
93 pr_forward_ed_hunk(struct change *hunk) argument
[all...]
H A Dnormal.c36 /* Print a hunk of a normal diff.
41 print_normal_hunk (struct change *hunk) argument
47 enum changes changes = analyze_hunk (hunk, &first0, &last0, &first1, &last1);
53 /* Print out the line number header for this hunk */
H A Dcontext.c160 pr_context_hunk (struct change *hunk)
169 enum changes changes = analyze_hunk (hunk, &first0, &last0, &first1, &last1);
206 struct change *next = hunk;
235 struct change *next = hunk;
292 pr_unidiff_hunk (struct change *hunk)
302 if (! analyze_hunk (hunk, &first0, &last0, &first1, &last1))
338 next = hunk;
377 /* We're done with this hunk, so on to the next! */
437 /* Turn this change into a hunk: detach it from the others. */
157 pr_context_hunk(struct change *hunk) argument
287 pr_unidiff_hunk(struct change *hunk) argument
H A Dutil.c500 making them a hunk, and remember the rest for next iteration. */
507 /* Print this hunk. */
648 /* Look at a hunk of edit script and report the range of lines in each file
649 that it applies to. HUNK is the start of the hunk, which is a chain
662 analyze_hunk (struct change *hunk,
682 *first0 = hunk->line0;
683 *first1 = hunk->line1;
685 next = hunk;
729 tell the caller to ignore this hunk. */
653 analyze_hunk(struct change *hunk, lin *first0, lin *last0, lin *first1, lin *last1) argument
H A Difdef.c64 /* Print a hunk of an ifdef diff.
69 print_ifdef_hunk (struct change *hunk) argument
74 enum changes changes = analyze_hunk (hunk, &first0, &last0, &first1, &last1);
H A Dside.c230 /* Print a hunk of an sdiff diff.
235 print_sdiff_hunk (struct change *hunk) argument
242 analyze_hunk (hunk, &first0, &last0, &first1, &last1);
/freebsd-current/usr.bin/patch/
H A Dpatch.c152 int error = 0, hunk, failed, i, fd; local
242 * handling it until hunk processing because we want to swap
243 * the hunk if they opt to reverse it, but we want to make sure
244 * we *can* swap the hunk without running into memory issues
272 /* apply each hunk of patch */
273 hunk = 0;
279 assert(!out_creating || hunk == 0);
280 hunk++;
285 * results in us skipping hunk location, in order:
293 * also tied to this hunk processin
[all...]
/freebsd-current/contrib/googletest/googletest/src/
H A Dgtest.cc1402 // Helper class that holds the state for one hunk and prints it out to the
1405 // adds. It also adds the hunk header before printint into the stream.
1451 // Print a unified diff header for one hunk.
1477 // Each hunk has a header generated by PrintHeader above plus a body with
1482 // joined into one hunk.
1498 // Find the first line to include in the hunk.
1500 Hunk hunk(l_i - prefix_context + 1, r_i - prefix_context + 1);
1502 hunk.PushLine(' ', left[l_i - i].c_str());
1505 // Iterate the edits until we found enough suffix for the hunk or the input
1510 // Continue only if the next hunk i
[all...]

Completed in 180 milliseconds