Symbol: LINENUM
usr.bin/patch/common.h
120
extern LINENUM input_lines; /* how long is input file in lines */
usr.bin/patch/inp.c
468
ifetch(LINENUM line, int whichbuf)
usr.bin/patch/inp.c
480
LINENUM offline = line % lines_per_buf;
usr.bin/patch/inp.c
481
LINENUM baseline = line - offline;
usr.bin/patch/inp.c
68
static LINENUM tiline[2] = {-1, -1}; /* 1st line in each buffer */
usr.bin/patch/inp.c
69
static LINENUM lines_per_buf; /* how many lines per buffer */
usr.bin/patch/inp.h
35
char *ifetch(LINENUM, int);
usr.bin/patch/patch.c
100
static void rej_line(int, LINENUM);
usr.bin/patch/patch.c
1005
dump_line(LINENUM line, bool write_newline)
usr.bin/patch/patch.c
102
static void apply_hunk(LINENUM);
usr.bin/patch/patch.c
1023
patch_match(LINENUM base, LINENUM offset, LINENUM fuzz)
usr.bin/patch/patch.c
1025
LINENUM pline = 1 + fuzz;
usr.bin/patch/patch.c
1026
LINENUM iline;
usr.bin/patch/patch.c
1027
LINENUM pat_lines = pch_ptrn_lines() - fuzz;
usr.bin/patch/patch.c
105
static void copy_till(LINENUM, bool);
usr.bin/patch/patch.c
107
static void dump_line(LINENUM, bool);
usr.bin/patch/patch.c
108
static bool patch_match(LINENUM, LINENUM, LINENUM);
usr.bin/patch/patch.c
125
static LINENUM last_frozen_line = 0;
usr.bin/patch/patch.c
136
static LINENUM last_offset = 0;
usr.bin/patch/patch.c
137
static LINENUM maxfuzz = 2;
usr.bin/patch/patch.c
157
LINENUM where = 0, newwhere, fuzz, mymaxfuzz;
usr.bin/patch/patch.c
653
static LINENUM
usr.bin/patch/patch.c
654
locate_hunk(LINENUM fuzz)
usr.bin/patch/patch.c
656
LINENUM first_guess = pch_first() + last_offset;
usr.bin/patch/patch.c
657
LINENUM offset;
usr.bin/patch/patch.c
658
LINENUM pat_lines = pch_ptrn_lines();
usr.bin/patch/patch.c
659
LINENUM max_pos_offset = input_lines - first_guess - pat_lines + 1;
usr.bin/patch/patch.c
660
LINENUM max_neg_offset = first_guess - last_frozen_line - 1 + pch_context();
usr.bin/patch/patch.c
704
LINENUM i;
usr.bin/patch/patch.c
705
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
710
const LINENUM oldfirst = pch_first() + last_offset;
usr.bin/patch/patch.c
711
const LINENUM newfirst = pch_newfirst() + last_offset;
usr.bin/patch/patch.c
712
const LINENUM oldlast = oldfirst + pch_ptrn_lines() - 1;
usr.bin/patch/patch.c
713
const LINENUM newlast = newfirst + pch_repl_lines() - 1;
usr.bin/patch/patch.c
754
rej_line(int ch, LINENUM i)
usr.bin/patch/patch.c
769
LINENUM i, j, split;
usr.bin/patch/patch.c
771
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
772
const LINENUM oldfirst = pch_first() + last_offset;
usr.bin/patch/patch.c
773
const LINENUM newfirst = pch_newfirst() + last_offset;
usr.bin/patch/patch.c
834
apply_hunk(LINENUM where)
usr.bin/patch/patch.c
836
LINENUM old = 1;
usr.bin/patch/patch.c
837
const LINENUM lastline = pch_ptrn_lines();
usr.bin/patch/patch.c
838
LINENUM new = lastline + 1;
usr.bin/patch/patch.c
844
const LINENUM pat_end = pch_end();
usr.bin/patch/patch.c
92
LINENUM input_lines = 0; /* how long is input file in lines */
usr.bin/patch/patch.c
970
copy_till(LINENUM lastline, bool endoffile)
usr.bin/patch/patch.c
98
static LINENUM locate_hunk(LINENUM);
usr.bin/patch/pch.c
1039
LINENUM min, max;
usr.bin/patch/pch.c
1212
LINENUM i;
usr.bin/patch/pch.c
1213
LINENUM n;
usr.bin/patch/pch.c
1313
LINENUM
usr.bin/patch/pch.c
1322
LINENUM
usr.bin/patch/pch.c
1331
LINENUM
usr.bin/patch/pch.c
1340
LINENUM
usr.bin/patch/pch.c
1349
LINENUM
usr.bin/patch/pch.c
1358
LINENUM
usr.bin/patch/pch.c
1368
pch_line_len(LINENUM line)
usr.bin/patch/pch.c
1377
pch_char(LINENUM line)
usr.bin/patch/pch.c
1386
pfetch(LINENUM line)
usr.bin/patch/pch.c
1394
LINENUM
usr.bin/patch/pch.c
256
LINENUM fcl_line = -1;
usr.bin/patch/pch.c
419
next_intuit_at(LINENUM file_pos, LINENUM file_line)
usr.bin/patch/pch.c
429
skip_to(LINENUM file_pos, LINENUM file_line)
usr.bin/patch/pch.c
458
static LINENUM
usr.bin/patch/pch.c
461
LINENUM l = (LINENUM)atol(s);
usr.bin/patch/pch.c
469
static LINENUM
usr.bin/patch/pch.c
473
LINENUM l = getlinenum(s);
usr.bin/patch/pch.c
510
LINENUM repl_beginning; /* index of --- line */
usr.bin/patch/pch.c
511
LINENUM fillcnt; /* #lines of missing ptrn or repl */
usr.bin/patch/pch.c
512
LINENUM fillsrc; /* index of first line to copy */
usr.bin/patch/pch.c
513
LINENUM filldst; /* index of first missing line */
usr.bin/patch/pch.c
518
LINENUM repl_patch_line; /* input line number for same */
usr.bin/patch/pch.c
519
LINENUM ptrn_copiable; /* # of copiable lines in ptrn */
usr.bin/patch/pch.c
55
static LINENUM p_first; /* 1st line number */
usr.bin/patch/pch.c
56
static LINENUM p_newfirst; /* 1st line number of replacement */
usr.bin/patch/pch.c
57
static LINENUM p_ptrn_lines; /* # lines in pattern */
usr.bin/patch/pch.c
58
static LINENUM p_repl_lines; /* # lines in replacement text */
usr.bin/patch/pch.c
59
static LINENUM p_end = -1; /* last line in hunk */
usr.bin/patch/pch.c
60
static LINENUM p_max; /* max allowed value of p_end */
usr.bin/patch/pch.c
61
static LINENUM p_context = 3; /* # of context lines */
usr.bin/patch/pch.c
62
static LINENUM p_input_line = 0; /* current line # from patch file */
usr.bin/patch/pch.c
68
static LINENUM p_base; /* where to intuit this time */
usr.bin/patch/pch.c
69
static LINENUM p_bline; /* line # of p_base */
usr.bin/patch/pch.c
70
static LINENUM p_start; /* where intuit found a patch */
usr.bin/patch/pch.c
71
static LINENUM p_sline; /* and the line number for it */
usr.bin/patch/pch.c
72
static LINENUM p_hunk_beg; /* line number of current hunk */
usr.bin/patch/pch.c
73
static LINENUM p_efake = -1; /* end of faked up lines--don't free */
usr.bin/patch/pch.c
74
static LINENUM p_bfake = -1; /* beg of faked up lines */
usr.bin/patch/pch.c
80
static void next_intuit_at(LINENUM, LINENUM);
usr.bin/patch/pch.c
81
static void skip_to(LINENUM, LINENUM);
usr.bin/patch/pch.c
870
LINENUM fillold; /* index of old lines */
usr.bin/patch/pch.c
871
LINENUM fillnew; /* index of new lines */
usr.bin/patch/pch.c
97
p_end = (LINENUM) - 1;
usr.bin/patch/pch.h
49
char *pfetch(LINENUM);
usr.bin/patch/pch.h
50
ssize_t pch_line_len(LINENUM);
usr.bin/patch/pch.h
51
LINENUM pch_first(void);
usr.bin/patch/pch.h
52
LINENUM pch_ptrn_lines(void);
usr.bin/patch/pch.h
53
LINENUM pch_newfirst(void);
usr.bin/patch/pch.h
54
LINENUM pch_repl_lines(void);
usr.bin/patch/pch.h
55
LINENUM pch_end(void);
usr.bin/patch/pch.h
56
LINENUM pch_context(void);
usr.bin/patch/pch.h
57
LINENUM pch_hunk_beg(void);
usr.bin/patch/pch.h
58
char pch_char(LINENUM);