Lines Matching refs:pos
67 int pos;
102 ? (c)->buffer_beg + (c)->boundaries[(i)].pos \
103 : (c)->buffer_end + (c)->boundaries[(c)->gap_len + (i)].pos)
155 c->boundaries[0].pos = 0; /* from buffer_beg */
181 find_cache_boundary (c, pos)
183 int pos;
194 if (pos < boundary)
201 if (BOUNDARY_POS (c, low) > pos
203 && BOUNDARY_POS (c, low + 1) <= pos))
218 move_cache_gap (c, pos, min_size)
220 int pos;
229 if (pos < 0
230 || pos > c->cache_len)
235 if (pos == 0)
239 while (gap_start < pos)
243 c->boundaries[gap_start].pos
245 + c->boundaries[gap_start + gap_len].pos
277 c->boundaries[i + min_size].pos = c->boundaries[i + gap_len].pos;
285 while (pos < gap_start)
291 c->boundaries[gap_start + gap_len].pos
292 = c->boundaries[gap_start].pos + buffer_beg - buffer_end;
306 insert_cache_boundary (c, index, pos, value)
309 int pos, value;
321 if (! (BOUNDARY_POS (c, index-1) < pos
323 || pos < BOUNDARY_POS (c, index))))
334 c->boundaries[index].pos = pos - c->buffer_beg;
735 region_cache_forward (buf, c, pos, next)
738 int pos;
744 int i = find_cache_boundary (c, pos);
749 if (pos >= BUF_Z (buf))
774 int region_cache_backward (buf, c, pos, next)
777 int pos;
784 if (pos <= BUF_BEG (buf))
791 int i = find_cache_boundary (c, pos - 1);
831 int pos = BOUNDARY_POS (c, i);
833 putc (((pos < beg_u) ? 'v'
834 : (pos == beg_u) ? '-'
837 putc (((pos > end_u) ? '^'
838 : (pos == end_u) ? '-'
841 fprintf (stderr, "%d : %d\n", pos, BOUNDARY_VALUE (c, i));