Lines Matching refs:ft
201 static void seek_ft(FILE_and_pos_t *ft, off_t pos) in seek_ft() argument
203 if (ft->ft_pos != pos) { in seek_ft()
204 ft->ft_pos = pos; in seek_ft()
205 fseeko(ft->ft_fp, pos, SEEK_SET); in seek_ft()
212 static int read_token(FILE_and_pos_t *ft, token_t tok) in read_token() argument
219 t = fgetc(ft->ft_fp); in read_token()
221 ft->ft_pos++; in read_token()
411 static void fetch(FILE_and_pos_t *ft, const off_t *ix, int a, int b, int ch) in fetch() argument
415 seek_ft(ft, ix[i - 1]); in fetch()
420 int c = fgetc(ft->ft_fp); in fetch()
425 ft->ft_pos++; in fetch()
450 static NOINLINE int *create_J(FILE_and_pos_t ft[2], int nlen[2], off_t *ix[2]) in create_J()
467 ft[i].ft_pos = 0; in create_J()
468 fseeko(ft[i].ft_fp, 0, SEEK_SET); in create_J()
475 tok = read_token(&ft[i], tok); in create_J()
491 nfile[i][nlen[i]].offset = ft[i].ft_pos; in create_J()
575 seek_ft(&ft[0], ix[0][i - 1]); in create_J()
576 seek_ft(&ft[1], ix[1][J[i] - 1]); in create_J()
581 tok0 = read_token(&ft[0], tok0); in create_J()
582 tok1 = read_token(&ft[1], tok1); in create_J()
600 FILE_and_pos_t ft[2]; in diff() local
607 ft[0].ft_fp = fp[0]; in diff()
608 ft[1].ft_fp = fp[1]; in diff()
611 J = create_J(ft, nlen, ix); in diff()
688 fetch(&ft[0], ix[0], lowa, end ? span[0].b : (*cvp)[0].a - 1, ' '); in diff()
692 fetch(&ft[j], ix[j], (*cvp)[j].a, (*cvp)[j].b, j ? '+' : '-'); in diff()