Lines Matching refs:table
24 static POSITION *table = NULL; /* The position table */ variable
53 return (table[sindex]); in position()
67 table[i-1] = table[i]; in add_forw_pos()
68 table[sc_height - 1] = pos; in add_forw_pos()
82 table[i] = table[i-1]; in add_back_pos()
83 table[0] = pos; in add_back_pos()
94 table[i] = NULL_POSITION; in pos_clear()
110 if (table != NULL) in pos_init()
113 free((char*)table); in pos_init()
116 table = (POSITION *) ecalloc((size_t) sc_height, sizeof(POSITION)); /*{{type-issue}}*/ in pos_init()
120 table[scrpos.ln-1] = scrpos.pos; in pos_init()
132 if (pos < table[0]) in onscreen()
135 if (pos < table[i]) in onscreen()
153 if (table[i] != NULL_POSITION && table[i] != 0) in empty_lines()
182 if (table[i] == NULL_POSITION) { in get_scrpos()
196 if (table[i] != NULL_POSITION) in get_scrpos()
199 scrpos->pos = table[i]; in get_scrpos()
293 POSITION tpos = table[TOP]; in pos_rehead()
299 table[TOP] = linepos; in pos_rehead()