Symbol: LINENUM
usr.bin/patch/common.h
109
extern LINENUM input_lines; /* how long is input file in lines */
usr.bin/patch/inp.c
381
ifetch(LINENUM line, int whichbuf)
usr.bin/patch/inp.c
393
LINENUM offline = line % lines_per_buf;
usr.bin/patch/inp.c
394
LINENUM baseline = line - offline;
usr.bin/patch/inp.c
63
static LINENUM tiline[2] = {-1, -1}; /* 1st line in each buffer */
usr.bin/patch/inp.h
32
char *ifetch(LINENUM, int);
usr.bin/patch/patch.c
101
static void copy_till(LINENUM, bool);
usr.bin/patch/patch.c
1023
copy_till(LINENUM lastline, bool endoffile)
usr.bin/patch/patch.c
103
static void dump_line(LINENUM, bool);
usr.bin/patch/patch.c
104
static bool patch_match(LINENUM, LINENUM, LINENUM);
usr.bin/patch/patch.c
1058
dump_line(LINENUM line, bool write_newline)
usr.bin/patch/patch.c
1076
patch_match(LINENUM base, LINENUM offset, LINENUM fuzz)
usr.bin/patch/patch.c
1078
LINENUM pline = 1 + fuzz;
usr.bin/patch/patch.c
1079
LINENUM iline;
usr.bin/patch/patch.c
1080
LINENUM pat_lines = pch_ptrn_lines() - fuzz;
usr.bin/patch/patch.c
121
static LINENUM last_frozen_line = 0;
usr.bin/patch/patch.c
132
static LINENUM last_offset = 0;
usr.bin/patch/patch.c
133
static LINENUM maxfuzz = 2;
usr.bin/patch/patch.c
156
LINENUM where = 0, newwhere, fuzz, mymaxfuzz;
usr.bin/patch/patch.c
702
static LINENUM
usr.bin/patch/patch.c
703
locate_hunk(LINENUM fuzz)
usr.bin/patch/patch.c
705
LINENUM first_guess = pch_first() + last_offset;
usr.bin/patch/patch.c
706
LINENUM offset;
usr.bin/patch/patch.c
707
LINENUM pat_lines = pch_ptrn_lines();
usr.bin/patch/patch.c
708
LINENUM max_pos_offset = input_lines - first_guess - pat_lines + 1;
usr.bin/patch/patch.c
709
LINENUM max_neg_offset = first_guess - last_frozen_line - 1 + pch_context();
usr.bin/patch/patch.c
753
LINENUM i;
usr.bin/patch/patch.c
754
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
759
const LINENUM oldfirst = pch_first() + last_offset;
usr.bin/patch/patch.c
760
const LINENUM newfirst = pch_newfirst() + last_offset;
usr.bin/patch/patch.c
761
const LINENUM oldlast = oldfirst + pch_ptrn_lines() - 1;
usr.bin/patch/patch.c
762
const LINENUM newlast = newfirst + pch_repl_lines() - 1;
usr.bin/patch/patch.c
803
rej_line(int ch, LINENUM i)
usr.bin/patch/patch.c
822
LINENUM i, j, split;
usr.bin/patch/patch.c
824
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
825
const LINENUM oldfirst = pch_first() + last_offset;
usr.bin/patch/patch.c
826
const LINENUM newfirst = pch_newfirst() + last_offset;
usr.bin/patch/patch.c
887
apply_hunk(LINENUM where)
usr.bin/patch/patch.c
889
LINENUM old = 1;
usr.bin/patch/patch.c
89
LINENUM input_lines = 0; /* how long is input file in lines */
usr.bin/patch/patch.c
890
const LINENUM lastline = pch_ptrn_lines();
usr.bin/patch/patch.c
891
LINENUM new = lastline + 1;
usr.bin/patch/patch.c
897
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
94
static LINENUM locate_hunk(LINENUM);
usr.bin/patch/patch.c
96
static void rej_line(int, LINENUM);
usr.bin/patch/patch.c
98
static void apply_hunk(LINENUM);
usr.bin/patch/pch.c
1072
LINENUM min, max;
usr.bin/patch/pch.c
1192
LINENUM i;
usr.bin/patch/pch.c
1262
LINENUM i;
usr.bin/patch/pch.c
1263
LINENUM n;
usr.bin/patch/pch.c
1363
LINENUM
usr.bin/patch/pch.c
1372
LINENUM
usr.bin/patch/pch.c
1381
LINENUM
usr.bin/patch/pch.c
1390
LINENUM
usr.bin/patch/pch.c
1399
LINENUM
usr.bin/patch/pch.c
1408
LINENUM
usr.bin/patch/pch.c
1418
pch_line_len(LINENUM line)
usr.bin/patch/pch.c
1427
pch_char(LINENUM line)
usr.bin/patch/pch.c
1436
pfetch(LINENUM line)
usr.bin/patch/pch.c
1444
LINENUM
usr.bin/patch/pch.c
1638
static LINENUM
usr.bin/patch/pch.c
1641
LINENUM rv;
usr.bin/patch/pch.c
271
LINENUM fcl_line = -1;
usr.bin/patch/pch.c
470
next_intuit_at(off_t file_pos, LINENUM file_line)
usr.bin/patch/pch.c
480
skip_to(off_t file_pos, LINENUM file_line)
usr.bin/patch/pch.c
50
static LINENUM p_first; /* 1st line number */
usr.bin/patch/pch.c
51
static LINENUM p_newfirst; /* 1st line number of replacement */
usr.bin/patch/pch.c
52
static LINENUM p_ptrn_lines; /* # lines in pattern */
usr.bin/patch/pch.c
53
static LINENUM p_repl_lines; /* # lines in replacement text */
usr.bin/patch/pch.c
54
static LINENUM p_end = -1; /* last line in hunk */
usr.bin/patch/pch.c
540
LINENUM repl_beginning; /* index of --- line */
usr.bin/patch/pch.c
541
LINENUM fillcnt; /* #lines of missing ptrn or repl */
usr.bin/patch/pch.c
542
LINENUM fillsrc; /* index of first line to copy */
usr.bin/patch/pch.c
543
LINENUM filldst; /* index of first missing line */
usr.bin/patch/pch.c
548
LINENUM repl_patch_line; /* input line number for same */
usr.bin/patch/pch.c
549
LINENUM ptrn_copiable; /* # of copiable lines in ptrn */
usr.bin/patch/pch.c
55
static LINENUM p_max; /* max allowed value of p_end */
usr.bin/patch/pch.c
56
static LINENUM p_context = 3; /* # of context lines */
usr.bin/patch/pch.c
57
static LINENUM p_input_line = 0; /* current line # from patch file */
usr.bin/patch/pch.c
64
static LINENUM p_bline; /* line # of p_base */
usr.bin/patch/pch.c
66
static LINENUM p_sline; /* and the line number for it */
usr.bin/patch/pch.c
67
static LINENUM p_hunk_beg; /* line number of current hunk */
usr.bin/patch/pch.c
68
static LINENUM p_efake = -1; /* end of faked up lines--don't free */
usr.bin/patch/pch.c
69
static LINENUM p_bfake = -1; /* beg of faked up lines */
usr.bin/patch/pch.c
77
static void next_intuit_at(off_t, LINENUM);
usr.bin/patch/pch.c
78
static void skip_to(off_t, LINENUM);
usr.bin/patch/pch.c
83
static LINENUM strtolinenum(char *, char **);
usr.bin/patch/pch.c
907
LINENUM fillold; /* index of old lines */
usr.bin/patch/pch.c
908
LINENUM fillnew; /* index of new lines */
usr.bin/patch/pch.c
95
p_end = (LINENUM) - 1;
usr.bin/patch/pch.h
48
char *pfetch(LINENUM);
usr.bin/patch/pch.h
49
unsigned short pch_line_len(LINENUM);
usr.bin/patch/pch.h
50
LINENUM pch_first(void);
usr.bin/patch/pch.h
51
LINENUM pch_ptrn_lines(void);
usr.bin/patch/pch.h
52
LINENUM pch_newfirst(void);
usr.bin/patch/pch.h
53
LINENUM pch_repl_lines(void);
usr.bin/patch/pch.h
54
LINENUM pch_end(void);
usr.bin/patch/pch.h
55
LINENUM pch_context(void);
usr.bin/patch/pch.h
56
LINENUM pch_hunk_beg(void);
usr.bin/patch/pch.h
57
char pch_char(LINENUM);