Symbol: LINENUM
usr.bin/patch/common.h
108
extern LINENUM input_lines; /* how long is input file in lines */
usr.bin/patch/inp.c
377
ifetch(LINENUM line, int whichbuf)
usr.bin/patch/inp.c
389
LINENUM offline = line % lines_per_buf;
usr.bin/patch/inp.c
390
LINENUM baseline = line - offline;
usr.bin/patch/inp.c
62
static LINENUM tiline[2] = {-1, -1}; /* 1st line in each buffer */
usr.bin/patch/inp.h
31
char *ifetch(LINENUM, int);
usr.bin/patch/patch.c
100
static void copy_till(LINENUM, bool);
usr.bin/patch/patch.c
102
static void dump_line(LINENUM, bool);
usr.bin/patch/patch.c
1028
copy_till(LINENUM lastline, bool endoffile)
usr.bin/patch/patch.c
103
static bool patch_match(LINENUM, LINENUM, LINENUM);
usr.bin/patch/patch.c
1063
dump_line(LINENUM line, bool write_newline)
usr.bin/patch/patch.c
1081
patch_match(LINENUM base, LINENUM offset, LINENUM fuzz)
usr.bin/patch/patch.c
1083
LINENUM pline = 1 + fuzz;
usr.bin/patch/patch.c
1084
LINENUM iline;
usr.bin/patch/patch.c
1085
LINENUM pat_lines = pch_ptrn_lines() - fuzz;
usr.bin/patch/patch.c
120
static LINENUM last_frozen_line = 0;
usr.bin/patch/patch.c
131
static LINENUM last_offset = 0;
usr.bin/patch/patch.c
132
static LINENUM maxfuzz = 2;
usr.bin/patch/patch.c
155
LINENUM where = 0, newwhere, fuzz, mymaxfuzz;
usr.bin/patch/patch.c
705
static LINENUM
usr.bin/patch/patch.c
706
locate_hunk(LINENUM fuzz)
usr.bin/patch/patch.c
708
LINENUM first_guess = pch_first() + last_offset;
usr.bin/patch/patch.c
709
LINENUM offset;
usr.bin/patch/patch.c
710
LINENUM pat_lines = pch_ptrn_lines();
usr.bin/patch/patch.c
711
LINENUM max_pos_offset = input_lines - first_guess - pat_lines + 1;
usr.bin/patch/patch.c
712
LINENUM max_neg_offset = first_guess - last_frozen_line - 1 + pch_context();
usr.bin/patch/patch.c
758
LINENUM i;
usr.bin/patch/patch.c
759
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
764
const LINENUM oldfirst = pch_first() + last_offset;
usr.bin/patch/patch.c
765
const LINENUM newfirst = pch_newfirst() + last_offset;
usr.bin/patch/patch.c
766
const LINENUM oldlast = oldfirst + pch_ptrn_lines() - 1;
usr.bin/patch/patch.c
767
const LINENUM newlast = newfirst + pch_repl_lines() - 1;
usr.bin/patch/patch.c
808
rej_line(int ch, LINENUM i)
usr.bin/patch/patch.c
827
LINENUM i, j, split;
usr.bin/patch/patch.c
829
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
830
const LINENUM oldfirst = pch_first() + last_offset;
usr.bin/patch/patch.c
831
const LINENUM newfirst = pch_newfirst() + last_offset;
usr.bin/patch/patch.c
88
LINENUM input_lines = 0; /* how long is input file in lines */
usr.bin/patch/patch.c
892
apply_hunk(LINENUM where)
usr.bin/patch/patch.c
894
LINENUM old = 1;
usr.bin/patch/patch.c
895
const LINENUM lastline = pch_ptrn_lines();
usr.bin/patch/patch.c
896
LINENUM new = lastline + 1;
usr.bin/patch/patch.c
902
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
93
static LINENUM locate_hunk(LINENUM);
usr.bin/patch/patch.c
95
static void rej_line(int, LINENUM);
usr.bin/patch/patch.c
97
static void apply_hunk(LINENUM);
usr.bin/patch/pch.c
1066
LINENUM min, max;
usr.bin/patch/pch.c
1186
LINENUM i;
usr.bin/patch/pch.c
1259
LINENUM i;
usr.bin/patch/pch.c
1260
LINENUM n;
usr.bin/patch/pch.c
1360
LINENUM
usr.bin/patch/pch.c
1369
LINENUM
usr.bin/patch/pch.c
1378
LINENUM
usr.bin/patch/pch.c
1387
LINENUM
usr.bin/patch/pch.c
1396
LINENUM
usr.bin/patch/pch.c
1405
LINENUM
usr.bin/patch/pch.c
1415
pch_line_len(LINENUM line)
usr.bin/patch/pch.c
1424
pch_char(LINENUM line)
usr.bin/patch/pch.c
1433
pfetch(LINENUM line)
usr.bin/patch/pch.c
1441
LINENUM
usr.bin/patch/pch.c
1636
static LINENUM
usr.bin/patch/pch.c
1639
LINENUM rv;
usr.bin/patch/pch.c
270
LINENUM fcl_line = -1;
usr.bin/patch/pch.c
469
next_intuit_at(off_t file_pos, LINENUM file_line)
usr.bin/patch/pch.c
479
skip_to(off_t file_pos, LINENUM file_line)
usr.bin/patch/pch.c
49
static LINENUM p_first; /* 1st line number */
usr.bin/patch/pch.c
50
static LINENUM p_newfirst; /* 1st line number of replacement */
usr.bin/patch/pch.c
51
static LINENUM p_ptrn_lines; /* # lines in pattern */
usr.bin/patch/pch.c
52
static LINENUM p_repl_lines; /* # lines in replacement text */
usr.bin/patch/pch.c
53
static LINENUM p_end = -1; /* last line in hunk */
usr.bin/patch/pch.c
539
LINENUM repl_beginning; /* index of --- line */
usr.bin/patch/pch.c
54
static LINENUM p_max; /* max allowed value of p_end */
usr.bin/patch/pch.c
540
LINENUM fillcnt; /* #lines of missing ptrn or repl */
usr.bin/patch/pch.c
541
LINENUM fillsrc; /* index of first line to copy */
usr.bin/patch/pch.c
542
LINENUM filldst; /* index of first missing line */
usr.bin/patch/pch.c
547
LINENUM repl_patch_line; /* input line number for same */
usr.bin/patch/pch.c
548
LINENUM ptrn_copiable; /* # of copiable lines in ptrn */
usr.bin/patch/pch.c
55
static LINENUM p_context = 3; /* # of context lines */
usr.bin/patch/pch.c
56
static LINENUM p_input_line = 0; /* current line # from patch file */
usr.bin/patch/pch.c
63
static LINENUM p_bline; /* line # of p_base */
usr.bin/patch/pch.c
65
static LINENUM p_sline; /* and the line number for it */
usr.bin/patch/pch.c
66
static LINENUM p_hunk_beg; /* line number of current hunk */
usr.bin/patch/pch.c
67
static LINENUM p_efake = -1; /* end of faked up lines--don't free */
usr.bin/patch/pch.c
68
static LINENUM p_bfake = -1; /* beg of faked up lines */
usr.bin/patch/pch.c
76
static void next_intuit_at(off_t, LINENUM);
usr.bin/patch/pch.c
77
static void skip_to(off_t, LINENUM);
usr.bin/patch/pch.c
82
static LINENUM strtolinenum(char *, char **);
usr.bin/patch/pch.c
901
LINENUM fillold; /* index of old lines */
usr.bin/patch/pch.c
902
LINENUM fillnew; /* index of new lines */
usr.bin/patch/pch.c
94
p_end = (LINENUM) - 1;
usr.bin/patch/pch.h
47
char *pfetch(LINENUM);
usr.bin/patch/pch.h
48
size_t pch_line_len(LINENUM);
usr.bin/patch/pch.h
49
LINENUM pch_first(void);
usr.bin/patch/pch.h
50
LINENUM pch_ptrn_lines(void);
usr.bin/patch/pch.h
51
LINENUM pch_newfirst(void);
usr.bin/patch/pch.h
52
LINENUM pch_repl_lines(void);
usr.bin/patch/pch.h
53
LINENUM pch_end(void);
usr.bin/patch/pch.h
54
LINENUM pch_context(void);
usr.bin/patch/pch.h
55
LINENUM pch_hunk_beg(void);
usr.bin/patch/pch.h
56
char pch_char(LINENUM);