Lines Matching refs:LINENUM
88 LINENUM input_lines = 0; /* how long is input file in lines */
93 static LINENUM locate_hunk(LINENUM);
95 static void rej_line(int, LINENUM);
97 static void apply_hunk(LINENUM);
100 static void copy_till(LINENUM, bool);
102 static void dump_line(LINENUM, bool);
103 static bool patch_match(LINENUM, LINENUM, LINENUM);
120 static LINENUM last_frozen_line = 0;
131 static LINENUM last_offset = 0;
132 static LINENUM maxfuzz = 2;
155 LINENUM where = 0, newwhere, fuzz, mymaxfuzz; in main()
705 static LINENUM
706 locate_hunk(LINENUM fuzz) in locate_hunk()
708 LINENUM first_guess = pch_first() + last_offset; in locate_hunk()
709 LINENUM offset; in locate_hunk()
710 LINENUM pat_lines = pch_ptrn_lines(); in locate_hunk()
711 LINENUM max_pos_offset = input_lines - first_guess - pat_lines + 1; in locate_hunk()
712 LINENUM max_neg_offset = first_guess - last_frozen_line - 1 + pch_context(); in locate_hunk()
758 LINENUM i; in abort_context_hunk()
759 const LINENUM pat_end = pch_end(); in abort_context_hunk()
764 const LINENUM oldfirst = pch_first() + last_offset; in abort_context_hunk()
765 const LINENUM newfirst = pch_newfirst() + last_offset; in abort_context_hunk()
766 const LINENUM oldlast = oldfirst + pch_ptrn_lines() - 1; in abort_context_hunk()
767 const LINENUM newlast = newfirst + pch_repl_lines() - 1; in abort_context_hunk()
808 rej_line(int ch, LINENUM i) in rej_line()
827 LINENUM i, j, split; in abort_hunk()
829 const LINENUM pat_end = pch_end(); in abort_hunk()
830 const LINENUM oldfirst = pch_first() + last_offset; in abort_hunk()
831 const LINENUM newfirst = pch_newfirst() + last_offset; in abort_hunk()
892 apply_hunk(LINENUM where) in apply_hunk()
894 LINENUM old = 1; in apply_hunk()
895 const LINENUM lastline = pch_ptrn_lines(); in apply_hunk()
896 LINENUM new = lastline + 1; in apply_hunk()
902 const LINENUM pat_end = pch_end(); in apply_hunk()
1028 copy_till(LINENUM lastline, bool endoffile) in copy_till()
1063 dump_line(LINENUM line, bool write_newline) in dump_line()
1081 patch_match(LINENUM base, LINENUM offset, LINENUM fuzz) in patch_match()
1083 LINENUM pline = 1 + fuzz; in patch_match()
1084 LINENUM iline; in patch_match()
1085 LINENUM pat_lines = pch_ptrn_lines() - fuzz; in patch_match()