Home
last modified time | relevance | path

Searched refs:hunk (Results 1 – 25 of 72) sorted by relevance

123

/netbsd-src/external/gpl2/xcvs/dist/diff/
H A Ded.c36 print_ed_hunk (hunk) in print_ed_hunk() argument
37 struct change *hunk; in print_ed_hunk()
43 hunk = flip_script (hunk);
46 debug_script (hunk);
50 analyze_hunk (hunk, &f0, &l0, &f1, &l1, &deletes, &inserts);
111 pr_forward_ed_hunk (hunk) in pr_forward_ed_hunk() argument
112 struct change *hunk; in pr_forward_ed_hunk()
119 analyze_hunk (hunk, &f0, &l0, &f1, &l1, &deletes, &inserts);
157 print_rcs_hunk (hunk) in print_rcs_hunk() argument
158 struct change *hunk; in print_rcs_hunk()
[all …]
H A Dcontext.c130 pr_context_hunk (hunk) in pr_context_hunk() argument
131 struct change *hunk; in pr_context_hunk()
141 analyze_hunk (hunk, &first0, &last0, &first1, &last1, &show_from, &show_to);
177 next = hunk;
206 next = hunk;
262 pr_unidiff_hunk (hunk) in pr_unidiff_hunk() argument
263 struct change *hunk; in pr_unidiff_hunk()
272 analyze_hunk (hunk, &first0, &last0, &first1, &last1, &show_from, &show_to);
308 next = hunk;
H A Dnormal.c38 print_normal_hunk (hunk) in print_normal_hunk() argument
39 struct change *hunk; in print_normal_hunk()
45 analyze_hunk (hunk, &first0, &last0, &first1, &last1, &deletes, &inserts);
H A Dside.c252 print_sdiff_hunk (hunk) in print_sdiff_hunk() argument
253 struct change *hunk; in print_sdiff_hunk()
259 analyze_hunk (hunk, &first0, &last0, &first1, &last1, &deletes, &inserts);
H A Dutil.c747 analyze_hunk (hunk, first0, last0, first1, last1, deletes, inserts) in analyze_hunk() argument
748 struct change *hunk; in analyze_hunk()
759 *first0 = hunk->line0;
760 *first1 = hunk->line1;
762 next = hunk;
H A Difdef.c62 print_ifdef_hunk (hunk) in print_ifdef_hunk() argument
63 struct change *hunk; in print_ifdef_hunk()
69 analyze_hunk (hunk, &first0, &last0, &first1, &last1, &deletes, &inserts);
/netbsd-src/external/gpl2/diffutils/dist/src/
H A Ded.c42 print_ed_hunk (struct change *hunk) in print_ed_hunk() argument
48 debug_script (hunk); in print_ed_hunk()
52 changes = analyze_hunk (hunk, &f0, &l0, &f1, &l1); in print_ed_hunk()
95 pr_forward_ed_hunk (struct change *hunk) in pr_forward_ed_hunk() argument
100 enum changes changes = analyze_hunk (hunk, &f0, &l0, &f1, &l1); in pr_forward_ed_hunk()
137 print_rcs_hunk (struct change *hunk) in print_rcs_hunk() argument
143 enum changes changes = analyze_hunk (hunk, &f0, &l0, &f1, &l1); in print_rcs_hunk()
H A Dcontext.c160 pr_context_hunk (struct change *hunk) in pr_context_hunk() argument
169 enum changes changes = analyze_hunk (hunk, &first0, &last0, &first1, &last1); in pr_context_hunk()
206 struct change *next = hunk; in pr_context_hunk()
235 struct change *next = hunk; in pr_context_hunk()
289 pr_unidiff_hunk (struct change *hunk) in pr_unidiff_hunk() argument
299 if (! analyze_hunk (hunk, &first0, &last0, &first1, &last1)) in pr_unidiff_hunk()
335 next = hunk; in pr_unidiff_hunk()
H A Dnormal.c43 print_normal_hunk (struct change *hunk) in print_normal_hunk() argument
49 enum changes changes = analyze_hunk (hunk, &first0, &last0, &first1, &last1); in print_normal_hunk()
H A Dutil.c648 analyze_hunk (struct change *hunk, in analyze_hunk() argument
666 *first0 = hunk->line0; in analyze_hunk()
667 *first1 = hunk->line1; in analyze_hunk()
669 next = hunk; in analyze_hunk()
H A Dside.c239 print_sdiff_hunk (struct change *hunk) in print_sdiff_hunk() argument
246 analyze_hunk (hunk, &first0, &last0, &first1, &last1); in print_sdiff_hunk()
H A Difdef.c69 print_ifdef_hunk (struct change *hunk) in print_ifdef_hunk() argument
74 enum changes changes = analyze_hunk (hunk, &first0, &last0, &first1, &last1); in print_ifdef_hunk()
/netbsd-src/external/gpl3/gcc.old/dist/contrib/
H A Dmklog200 def find_changed_funs(hunk): argument
209 if (cache.match(r'^\*\*\*\*\*\** ([a-zA-Z0-9_].*)', hunk.hdr)
210 or cache.match(r'^@@ .* @@ ([a-zA-Z0-9_].*)', hunk.hdr)):
213 for i, line in enumerate(hunk.lines):
216 if hunk.ctx_diff:
315 hunk = None
322 if hunk is not None:
323 d.hunks.append(hunk)
324 hunk = Hunk(line)
335 if hunk is not None:
[all …]
H A Dmklog.py232 for hunk in file:
239 for line in hunk:
269 hunk.section_header)
H A Dcheck_GNU_style_lib.py282 for hunk in pfile:
284 for line in hunk:
/netbsd-src/external/gpl3/gcc/dist/contrib/legacy/
H A Dmklog200 def find_changed_funs(hunk): argument
209 if (cache.match(r'^\*\*\*\*\*\** ([a-zA-Z0-9_].*)', hunk.hdr)
210 or cache.match(r'^@@ .* @@ ([a-zA-Z0-9_].*)', hunk.hdr)):
213 for i, line in enumerate(hunk.lines):
216 if hunk.ctx_diff:
315 hunk = None
322 if hunk is not None:
323 d.hunks.append(hunk)
324 hunk = Hunk(line)
335 if hunk is not None:
[all …]
/netbsd-src/usr.bin/patch/
H A Dpatch.c156 int error = 0, hunk, failed, i, fd; in main() local
251 hunk = 0; in main()
255 hunk++; in main()
263 if (hunk == 1 && where == 0 && !force) { in main()
327 hunk, newwhere); in main()
333 hunk, newwhere); in main()
338 hunk, newwhere); in main()
362 if (hunk == 0) in main()
417 failed, hunk, rejname); in main()
420 failed, hunk, rejname); in main()
/netbsd-src/external/gpl3/gdb/dist/contrib/
H A Dmklog.py186 for hunk in file:
193 for line in hunk:
214 hunk.section_header)
/netbsd-src/external/gpl3/gcc/dist/contrib/
H A Dmklog.py262 for hunk in file:
269 for line in hunk:
299 hunk.section_header)
H A Dcheck_GNU_style_lib.py282 for hunk in pfile:
284 for line in hunk:
/netbsd-src/external/gpl2/diffutils/dist/doc/
H A Ddiff.texi237 entirely different files yields no common lines and one large hunk that
240 the total hunk size by finding large sequences of common lines
362 contain the regular expression if every changed line in the hunk---every
539 In this example, the first hunk contains just the first two lines of
540 @file{lao}, the second hunk contains the fourth line of @file{lao}
541 opposing the second and third lines of @file{tzu}, and the last hunk
549 The ``normal'' @command{diff} output format shows each hunk of differences
570 each hunk shows one area where the files differ. Normal format hunks
711 Next come one or more hunks of differences; each hunk shows one area
732 @samp{!} in the part of this hunk for the other file.
[all …]
H A Ddiff.info224 files yields no common lines and one large hunk that contains all lines
226 between two given files. `diff' tries to minimize the total hunk size
339 contain the regular expression if every changed line in the hunk--every
509 In this example, the first hunk contains just the first two lines of
510 `lao', the second hunk contains the fourth line of `lao' opposing the
511 second and third lines of `tzu', and the last hunk contains just the
520 The "normal" `diff' output format shows each hunk of differences
543 differences; each hunk shows one area where the files differ. Normal
680 Next come one or more hunks of differences; each hunk shows one area
699 marked with `!' in the part of this hunk for the other file.
[all …]
/netbsd-src/games/hack/
H A Dhack.fix25 Following is a context diff to fix the bug. Actually just the last hunk
/netbsd-src/external/apache2/llvm/dist/llvm/utils/Reviewing/
H A Dfind_interesting_reviews.py544 for hunk in change.hunks:
545 for start_line, end_line in hunk.actual_lines_changed_offset:
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/
H A Dgtest.cc1227 Hunk hunk(l_i - prefix_context + 1, r_i - prefix_context + 1); in CreateUnifiedDiff() local
1229 hunk.PushLine(' ', left[l_i - i].c_str()); in CreateUnifiedDiff()
1252 hunk.PushLine(edit == kMatch ? ' ' : '-', left[l_i].c_str()); in CreateUnifiedDiff()
1255 hunk.PushLine('+', right[r_i].c_str()); in CreateUnifiedDiff()
1263 if (!hunk.has_edits()) { in CreateUnifiedDiff()
1268 hunk.PrintTo(&ss); in CreateUnifiedDiff()

123