• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/diff/src/

Lines Matching refs:lines

40 /* Lines are put into equivalence classes of lines that match in lines_differ.
47 hash_value hash; /* Hash of lines in this class. */
53 buckets[-1] is reserved for incomplete lines. */
217 /* Split the file into lines, simultaneously computing the equivalence
434 /* Reuse existing class if lines_differ reports the lines
438 /* Reuse existing equivalence class if the lines are identical.
477 /* Record the line start for lines in the suffix that we care about.
478 Record one more line start than lines,
560 /* We have found N lines in a buffer of size S; guess the
561 proportionate number of lines that will be found in a buffer of
562 size T. However, do not guess a number of lines so large that the
582 lin i, lines;
648 and then discard up to HORIZON_LINES lines from the prefix. */
683 this line to the main body. Discard up to HORIZON_LINES lines from
700 /* Calculate number of lines of prefix to save.
706 at least we will need to find the last few lines,
709 Otherwise, prefix_count != 0. Save just prefix_count lines at start
731 lines = 0;
735 /* If the prefix is needed, find the prefix lines. */
743 lin l = lines++ & prefix_mask;
756 buffered_prefix = prefix_count && context < lines ? context : lines;
760 middle_guess = guess_lines (lines, p0 - buffer0, p1 - filevec[1].prefix_end);
761 suffix_guess = guess_lines (lines, p0 - buffer0, buffer1 + n1 - p1);
768 if (buffered_prefix != lines)
770 /* Rotate prefix lines to proper location. */
772 linbuf1[i] = linbuf0[(lines - context + i) & prefix_mask];
788 filevec[0].prefix_lines = filevec[1].prefix_lines = lines;
842 /* Equivalence class 0 is permanently safe for lines that were not