Home
last modified time | relevance | path

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

/freebsd-14.2/usr.bin/patch/
H A Dpatch.c708 LINENUM first_guess = pch_first() + last_offset; in locate_hunk() local
711 LINENUM max_pos_offset = input_lines - first_guess - pat_lines + 1; in locate_hunk()
720 return (first_guess); in locate_hunk()
722 if (max_neg_offset >= first_guess) /* do not try lines < 0 */ in locate_hunk()
723 max_neg_offset = first_guess - 1; in locate_hunk()
724 if (first_guess <= input_lines && patch_match(first_guess, 0, fuzz)) in locate_hunk()
725 return first_guess; in locate_hunk()
730 if (check_after && patch_match(first_guess, offset, fuzz)) { in locate_hunk()
737 return first_guess + offset; in locate_hunk()
738 } else if (check_before && patch_match(first_guess, -offset, fuzz)) { in locate_hunk()
[all …]