Lines Matching full:position

12  * Routines dealing with the "position" table.
13 * This is a table which tells the position (in the input file) of the
16 * {{ The position table is scrolled by moving all the entries.
22 #include "position.h"
24 static POSITION *table = NULL; /* The position table */
32 * Return the starting file position of a line displayed on the screen.
40 public POSITION position(int sindex) in position() function
61 * Add a new file position to the bottom of the position table.
63 public void add_forw_pos(POSITION pos, lbool no_scroll) in add_forw_pos()
68 * Scroll the position table up. in add_forw_pos()
79 * Add a new file position to the top of the position table.
81 public void add_back_pos(POSITION pos) in add_back_pos()
86 * Scroll the position table down. in add_back_pos()
94 * Initialize the position table, done whenever we clear the screen.
105 * Allocate or reallocate the position table.
123 table = (POSITION *) ecalloc((size_t) sc_height, sizeof(POSITION)); /*{{type-issue}}*/ in pos_init()
131 * See if the byte at a specified position is currently on the screen.
132 * Check the position table to see if the position falls within its range.
133 * Return the position table entry if found, -1 if not.
135 public int onscreen(POSITION pos) in onscreen()
166 * Get the current screen position.
167 * The screen position consists of both a file position and
168 * a screen line number where the file position is placed on the screen.
199 * and return the screen line number and the file position. in get_scrpos()
253 static int pos_shift(POSITION linepos, size_t choff) in pos_shift()
257 POSITION pos; in pos_shift()
273 * Return the position of the first char of the line containing tpos.
276 static POSITION beginning_of_line(POSITION tpos) in beginning_of_line()
294 * This function sets that entry to the position of the first char in the line,
299 POSITION linepos; in pos_rehead()
300 POSITION tpos = table[TOP]; in pos_rehead()