Home
last modified time | relevance | path

Searched refs:linbuf (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/external/gpl2/xcvs/dist/diff/
H A Difdef.c273 char const * const *linbuf = file->linbuf; local
284 write_output (linbuf[from],
285 (linbuf[upto] + (linbuf[upto][-1] != '\n')
286 - linbuf[from]));
291 write_output (linbuf[from],
292 linbuf[upto] - linbuf[from]);
314 output_1_line (linbuf[from],
315 linbuf[from + 1]
316 - (linbuf[from + 1][-1] == '\n'), 0, 0);
320 output_1_line (linbuf[from], linbuf[from + 1], 0, 0);
H A Dside.c235 print_1sdiff_line (&files[0].linbuf[i0++], ' ', &files[1].linbuf[i1++]);
237 print_1sdiff_line (0, ')', &files[1].linbuf[i1++]);
240 print_1sdiff_line (&files[0].linbuf[i0++], '(', 0);
273 print_1sdiff_line (&files[0].linbuf[i], '|', &files[1].linbuf[j]);
285 print_1sdiff_line (0, '>', &files[1].linbuf[j]);
293 print_1sdiff_line (&files[0].linbuf[i], '<', 0);
H A Dio.c198 char const **linbuf = current->linbuf; local
334 linbuf = (char const **) xrealloc (linbuf + linbuf_base,
336 * sizeof (*linbuf))
339 linbuf[line] = ip;
355 linbuf = (char const **) xrealloc (linbuf + linbuf_base,
357 * sizeof (*linbuf))
360 linbuf[line] = (char const *) p;
375 current->linbuf = linbuf;
614 filevec[0].linbuf = linbuf0 + buffered_prefix;
615 filevec[1].linbuf = linbuf1 + buffered_prefix;
H A Dcontext.c196 print_1_line (prefix, &files[0].linbuf[i]);
225 print_1_line (prefix, &files[1].linbuf[i]);
320 print_1_line (0, &files[0].linbuf[i++]);
333 print_1_line (0, &files[0].linbuf[i++]);
344 print_1_line (0, &files[1].linbuf[j++]);
440 char const *line = file->linbuf[i];
441 size_t len = file->linbuf[i + 1] - line;
457 *linep = file->linbuf[i];
458 *lenp = file->linbuf[i + 1] - *linep;
H A Ded.c78 if (files[1].linbuf[i][0] == '.'
79 && files[1].linbuf[i][1] == '\n')
90 print_1_line ("", &files[1].linbuf[i]);
138 print_1_line ("", &files[1].linbuf[i]);
196 print_1_line ("", &files[1].linbuf[i]);
H A Dnormal.c60 print_1_line ("<", &files[0].linbuf[i]);
68 print_1_line (">", &files[1].linbuf[i]);
H A Dutil.c771 if (!ignore_blank_lines_flag || files[0].linbuf[i][0] != '\n')
774 char const *line = files[0].linbuf[i];
775 int len = files[0].linbuf[i + 1] - line;
787 if (!ignore_blank_lines_flag || files[1].linbuf[i][0] != '\n')
790 char const *line = files[1].linbuf[i];
791 int len = files[1].linbuf[i + 1] - line;
H A Ddiff.h227 char const **linbuf; member
H A Danalyze.c1060 free (filevec[i].linbuf + filevec[i].linbuf_base);
/netbsd-src/external/gpl2/diffutils/dist/src/
H A Difdef.c237 char const * const *linbuf = file->linbuf; in print_ifdef_lines() local
248 fwrite (linbuf[from], sizeof (char), in print_ifdef_lines()
249 linbuf[upto] + (linbuf[upto][-1] != '\n') - linbuf[from], in print_ifdef_lines()
255 fwrite (linbuf[from], sizeof (char), in print_ifdef_lines()
256 linbuf[upto] - linbuf[from], out); in print_ifdef_lines()
276 output_1_line (linbuf[from], in print_ifdef_lines()
277 (linbuf[from + 1] in print_ifdef_lines()
278 - (linbuf[from + 1][-1] == '\n')), in print_ifdef_lines()
283 output_1_line (linbuf[from], linbuf[from + 1], 0, 0); in print_ifdef_lines()
H A Dio.c228 char const **linbuf = current->linbuf; in find_and_hash_each_line() local
453 || PTRDIFF_MAX / sizeof *linbuf <= alloc_lines - linbuf_base) in find_and_hash_each_line()
457 linbuf += linbuf_base; in find_and_hash_each_line()
458 linbuf = xrealloc (linbuf, in find_and_hash_each_line()
459 (alloc_lines - linbuf_base) * sizeof *linbuf); in find_and_hash_each_line()
460 linbuf -= linbuf_base; in find_and_hash_each_line()
462 linbuf[line] = ip; in find_and_hash_each_line()
479 || PTRDIFF_MAX / sizeof *linbuf <= alloc_lines - linbuf_base) in find_and_hash_each_line()
482 linbuf += linbuf_base; in find_and_hash_each_line()
483 linbuf = xrealloc (linbuf, in find_and_hash_each_line()
[all …]
H A Dside.c221 print_1sdiff_line (&files[0].linbuf[i0++], ' ', in print_sdiff_common_lines()
222 &files[1].linbuf[i1++]); in print_sdiff_common_lines()
224 print_1sdiff_line (0, ')', &files[1].linbuf[i1++]); in print_sdiff_common_lines()
227 print_1sdiff_line (&files[0].linbuf[i0++], '(', 0); in print_sdiff_common_lines()
264 print_1sdiff_line (&files[0].linbuf[i], '|', &files[1].linbuf[j]); in print_sdiff_hunk()
274 print_1sdiff_line (0, '>', &files[1].linbuf[j]); in print_sdiff_hunk()
282 print_1sdiff_line (&files[0].linbuf[i], '<', 0); in print_sdiff_hunk()
H A Dcontext.c190 function = find_function (files[0].linbuf, first0); in pr_context_hunk()
225 print_1_line (prefix, &files[0].linbuf[i]); in pr_context_hunk()
254 print_1_line (prefix, &files[1].linbuf[i]); in pr_context_hunk()
319 function = find_function (files[0].linbuf, first0); in pr_unidiff_hunk()
347 print_1_line (0, &files[0].linbuf[i++]); in pr_unidiff_hunk()
360 print_1_line (0, &files[0].linbuf[i++]); in pr_unidiff_hunk()
371 print_1_line (0, &files[1].linbuf[j++]); in pr_unidiff_hunk()
453 find_function (char const * const *linbuf, lin linenum) in find_function() argument
462 char const *line = linbuf[i]; in find_function()
463 size_t linelen = linbuf[i + 1] - line - 1; in find_function()
[all …]
H A Ded.c68 if (files[1].linbuf[i][0] == '.' && files[1].linbuf[i][1] == '\n') in print_ed_hunk()
77 print_1_line ("", &files[1].linbuf[i]); in print_ed_hunk()
119 print_1_line ("", &files[1].linbuf[i]); in pr_forward_ed_hunk()
169 print_1_line ("", &files[1].linbuf[i]); in print_rcs_hunk()
H A Dnormal.c64 print_1_line ("<", &files[0].linbuf[i]); in print_normal_hunk()
72 print_1_line (">", &files[1].linbuf[i]); in print_normal_hunk()
H A Dutil.c661 char const * const *linbuf0 = files[0].linbuf; /* Help the compiler. */ in analyze_hunk()
662 char const * const *linbuf1 = files[1].linbuf; in analyze_hunk()
H A Ddiff.h247 char const **linbuf; member
H A Danalyze.c1045 free (cmp->file[f].linbuf + cmp->file[f].linbuf_base); in diff_2_files()
/netbsd-src/external/gpl2/diffutils/dist/
H A DChangeLog1585 Help the compiler with linbuf local vars.
2536 in common prefix that are not recorded in linbuf;
2541 linbuf[0] now always points at first differing line.
2598 Set up linbuf[0] to point at first differing line.