Lines Matching refs:atom
50 get_atom_byte(int *ch, struct diff_atom *atom, off_t off) in get_atom_byte() argument
54 if (atom->at != NULL) { in get_atom_byte()
55 *ch = atom->at[off]; in get_atom_byte()
59 cur = ftello(atom->root->f); in get_atom_byte()
63 if (cur != atom->pos + off && in get_atom_byte()
64 fseeko(atom->root->f, atom->pos + off, SEEK_SET) == -1) in get_atom_byte()
67 *ch = fgetc(atom->root->f); in get_atom_byte()
68 if (*ch == EOF && ferror(atom->root->f)) in get_atom_byte()
81 struct diff_atom *atom; in diff_output_lines() local
104 foreach_diff_atom(atom, start_atom, count) { in diff_output_lines()
107 size_t len = atom->len, wlen; in diff_output_lines()
119 rc = get_atom_byte(&ch, atom, len - 1); in diff_output_lines()
127 rc = get_atom_byte(&ch, atom, i); in diff_output_lines()
249 struct diff_atom *atom, *start_atom; in diff_output_trailing_newline_msg() local
268 atom = &start_atom[atom_count - 1]; in diff_output_trailing_newline_msg()
270 rc = get_atom_byte(&ch, atom, atom->len - 1); in diff_output_trailing_newline_msg()
312 struct diff_atom *start_atom, *atom; in diff_output_match_function_prototype() local
324 diff_data_foreach_atom_backwards_from(start_atom, atom, data) { in diff_output_match_function_prototype()
325 int atom_idx = diff_atom_root_idx(data, atom); in diff_output_match_function_prototype()
328 rc = get_atom_byte(&ch, atom, 0); in diff_output_match_function_prototype()
334 for (i = 1; i < atom->len && i < sizeof(buf) - 1; i++) { in diff_output_match_function_prototype()
335 rc = get_atom_byte(&ch, atom, i); in diff_output_match_function_prototype()