version 1.3, 2001/01/29 01:58:03 |
version 1.4, 2001/11/19 19:02:14 |
|
|
add_forw_pos(pos) |
add_forw_pos(pos) |
POSITION pos; |
POSITION pos; |
{ |
{ |
register int i; |
int i; |
|
|
/* |
/* |
* Scroll the position table up. |
* Scroll the position table up. |
|
|
add_back_pos(pos) |
add_back_pos(pos) |
POSITION pos; |
POSITION pos; |
{ |
{ |
register int i; |
int i; |
|
|
/* |
/* |
* Scroll the position table down. |
* Scroll the position table down. |
|
|
public void |
public void |
pos_clear() |
pos_clear() |
{ |
{ |
register int i; |
int i; |
|
|
for (i = 0; i < sc_height; i++) |
for (i = 0; i < sc_height; i++) |
table[i] = NULL_POSITION; |
table[i] = NULL_POSITION; |
|
|
onscreen(pos) |
onscreen(pos) |
POSITION pos; |
POSITION pos; |
{ |
{ |
register int i; |
int i; |
|
|
if (pos < table[0]) |
if (pos < table[0]) |
return (-1); |
return (-1); |
|
|
int s; |
int s; |
int e; |
int e; |
{ |
{ |
register int i; |
int i; |
|
|
for (i = s; i <= e; i++) |
for (i = s; i <= e; i++) |
if (table[i] != NULL_POSITION) |
if (table[i] != NULL_POSITION) |
|
|
get_scrpos(scrpos) |
get_scrpos(scrpos) |
struct scrpos *scrpos; |
struct scrpos *scrpos; |
{ |
{ |
register int i; |
int i; |
|
|
/* |
/* |
* Find the first line on the screen which has something on it, |
* Find the first line on the screen which has something on it, |