Lines Matching defs:pos
45 POSITION pos; /* File position */
96 anchor.pos = (POSITION)0;
115 p->gap = p->next->pos - p->prev->pos;
120 * The specified position (pos) should be the file position of the
124 add_lnum(linenum, pos)
126 POSITION pos;
138 for (p = anchor.next; p != &anchor && p->pos < pos; p = p->next)
169 new->pos = pos;
265 find_linenum(pos)
266 POSITION pos;
277 if (pos == NULL_POSITION)
282 if (pos <= ch_zero())
291 for (p = anchor.next; p != &anchor && p->pos < pos; p = p->next)
293 if (p->pos == pos)
311 if (p == &anchor || pos - p->prev->pos < p->pos - pos)
317 if (ch_seek(p->pos))
320 for (linenum = p->line, cpos = p->pos; cpos < pos; linenum++)
342 if (cpos > pos)
349 if (ch_seek(p->pos))
352 for (linenum = p->line, cpos = p->pos; cpos > pos; linenum--)
400 return (p->pos);
408 if (ch_seek(p->pos))
410 for (clinenum = p->line, cpos = p->pos; clinenum < linenum; clinenum++)
426 if (ch_seek(p->pos))
428 for (clinenum = p->line, cpos = p->pos; clinenum > linenum; clinenum--)
456 POSITION pos;
460 pos = position(where);
462 while (pos == NULL_POSITION && where >= 0 && where < sc_height)
463 pos = position(++where);
464 if (pos == NULL_POSITION)
465 pos = len;
466 linenum = find_linenum(pos);
467 if (pos == len)