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 */
31 * Return the starting file position of a line displayed on the screen.
39 public POSITION position(int sindex)
57 * Add a new file position to the bottom of the position table.
59 public void add_forw_pos(POSITION pos)
64 * Scroll the position table up.
72 * Add a new file position to the top of the position table.
74 public void add_back_pos(POSITION pos)
79 * Scroll the position table down.
87 * Initialize the position table, done whenever we clear the screen.
98 * Allocate or reallocate the position table.
116 table = (POSITION *) ecalloc((size_t) sc_height, sizeof(POSITION)); /*{{type-issue}}*/
124 * See if the byte at a specified position is currently on the screen.
125 * Check the position table to see if the position falls within its range.
126 * Return the position table entry if found, -1 if not.
128 public int onscreen(POSITION pos)
159 * Get the current screen position.
160 * The screen position consists of both a file position and
161 * a screen line number where the file position is placed on the screen.
192 * and return the screen line number and the file position.
246 static int pos_shift(POSITION linepos, size_t choff)
250 POSITION pos;
266 * Return the position of the first char of the line containing tpos.
269 static POSITION beginning_of_line(POSITION tpos)
287 * This function sets that entry to the position of the first char in the line,
292 POSITION linepos;
293 POSITION tpos = table[TOP];