Lines Matching refs:LINENUM
92 LINENUM input_lines = 0; /* how long is input file in lines */
98 static LINENUM locate_hunk(LINENUM);
100 static void rej_line(int, LINENUM);
102 static void apply_hunk(LINENUM);
105 static void copy_till(LINENUM, bool);
107 static void dump_line(LINENUM, bool);
108 static bool patch_match(LINENUM, LINENUM, LINENUM);
125 static LINENUM last_frozen_line = 0;
136 static LINENUM last_offset = 0;
137 static LINENUM maxfuzz = 2;
157 LINENUM where = 0, newwhere, fuzz, mymaxfuzz;
653 static LINENUM
654 locate_hunk(LINENUM fuzz)
656 LINENUM first_guess = pch_first() + last_offset;
657 LINENUM offset;
658 LINENUM pat_lines = pch_ptrn_lines();
659 LINENUM max_pos_offset = input_lines - first_guess - pat_lines + 1;
660 LINENUM max_neg_offset = first_guess - last_frozen_line - 1 + pch_context();
704 LINENUM i;
705 const LINENUM pat_end = pch_end();
710 const LINENUM oldfirst = pch_first() + last_offset;
711 const LINENUM newfirst = pch_newfirst() + last_offset;
712 const LINENUM oldlast = oldfirst + pch_ptrn_lines() - 1;
713 const LINENUM newlast = newfirst + pch_repl_lines() - 1;
754 rej_line(int ch, LINENUM i)
769 LINENUM i, j, split;
771 const LINENUM pat_end = pch_end();
772 const LINENUM oldfirst = pch_first() + last_offset;
773 const LINENUM newfirst = pch_newfirst() + last_offset;
834 apply_hunk(LINENUM where)
836 LINENUM old = 1;
837 const LINENUM lastline = pch_ptrn_lines();
838 LINENUM new = lastline + 1;
844 const LINENUM pat_end = pch_end();
970 copy_till(LINENUM lastline, bool endoffile)
1005 dump_line(LINENUM line, bool write_newline)
1023 patch_match(LINENUM base, LINENUM offset, LINENUM fuzz)
1025 LINENUM pline = 1 + fuzz;
1026 LINENUM iline;
1027 LINENUM pat_lines = pch_ptrn_lines() - fuzz;