Home
last modified time | relevance | path

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

/dragonfly/usr.bin/patch/
H A Dpatch.c705 LINENUM first_guess = pch_first() + last_offset; in locate_hunk() local
708 LINENUM max_pos_offset = input_lines - first_guess - pat_lines + 1; in locate_hunk()
717 return (first_guess); in locate_hunk()
719 if (max_neg_offset >= first_guess) /* do not try lines < 0 */ in locate_hunk()
720 max_neg_offset = first_guess - 1; in locate_hunk()
721 if (first_guess <= input_lines && patch_match(first_guess, 0, fuzz)) in locate_hunk()
722 return first_guess; in locate_hunk()
727 if (check_after && patch_match(first_guess, offset, fuzz)) { in locate_hunk()
734 return first_guess + offset; in locate_hunk()
735 } else if (check_before && patch_match(first_guess, -offset, fuzz)) { in locate_hunk()
[all …]