version 1.11, 2002/03/10 13:22:56 |
version 1.12, 2002/03/11 13:02:56 |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
gotobol(f, n) |
gotobol(int f, int n) |
int f, n; |
|
{ |
{ |
curwp->w_doto = 0; |
curwp->w_doto = 0; |
return (TRUE); |
return (TRUE); |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
backchar(f, n) |
backchar(int f, int n) |
int n; |
|
{ |
{ |
LINE *lp; |
LINE *lp; |
|
|
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
gotoeol(f, n) |
gotoeol(int f, int n) |
int f, n; |
|
{ |
{ |
curwp->w_doto = llength(curwp->w_dotp); |
curwp->w_doto = llength(curwp->w_dotp); |
return (TRUE); |
return (TRUE); |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
forwchar(f, n) |
forwchar(int f, int n) |
int f, n; |
|
{ |
{ |
|
|
if (n < 0) |
if (n < 0) |
|
|
* but almost always the case. |
* but almost always the case. |
*/ |
*/ |
int |
int |
gotobob(f, n) |
gotobob(int f, int n) |
int f, n; |
|
{ |
{ |
|
|
(void) setmark(f, n); |
(void) setmark(f, n); |
|
|
* almost always the case. |
* almost always the case. |
*/ |
*/ |
int |
int |
gotoeob(f, n) |
gotoeob(int f, int n) |
int f, n; |
|
{ |
{ |
|
|
(void) setmark(f, n); |
(void) setmark(f, n); |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
forwline(f, n) |
forwline(int f, int n) |
int f, n; |
|
{ |
{ |
LINE *dlp; |
LINE *dlp; |
|
|
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
backline(f, n) |
backline(int f, int n) |
int f, n; |
|
{ |
{ |
LINE *dlp; |
LINE *dlp; |
|
|
|
|
* the edge of the screen; it's more like display then show position. |
* the edge of the screen; it's more like display then show position. |
*/ |
*/ |
void |
void |
setgoal() |
setgoal(void) |
{ |
{ |
|
|
curgoal = getcolpos() - 1; /* Get the position. */ |
curgoal = getcolpos() - 1; /* Get the position. */ |
|
|
* when a vertical motion is made into the line. |
* when a vertical motion is made into the line. |
*/ |
*/ |
int |
int |
getgoal(dlp) |
getgoal(LINE *dlp) |
LINE *dlp; |
|
{ |
{ |
int c; |
int c; |
int col; |
int col; |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
forwpage(f, n) |
forwpage(int f, int n) |
int f, n; |
|
{ |
{ |
LINE *lp; |
LINE *lp; |
|
|
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
backpage(f, n) |
backpage(int f, int n) |
int f, n; |
|
{ |
{ |
LINE *lp; |
LINE *lp; |
|
|
|
|
* are used to scroll the display up (or down) one line at a time. |
* are used to scroll the display up (or down) one line at a time. |
*/ |
*/ |
int |
int |
forw1page(f, n) |
forw1page(int f, int n) |
int f, n; |
|
{ |
{ |
|
|
if (!(f & FFARG)) { |
if (!(f & FFARG)) { |
n = 1; |
n = 1; |
f = FFUNIV; |
f = FFUNIV; |
|
|
} |
} |
|
|
int |
int |
back1page(f, n) |
back1page(int f, int n) |
int f, n; |
|
{ |
{ |
|
|
if (!(f & FFARG)) { |
if (!(f & FFARG)) { |
n = 1; |
n = 1; |
f = FFUNIV; |
f = FFUNIV; |
|
|
* nextwind, forwpage and restore window pointers. |
* nextwind, forwpage and restore window pointers. |
*/ |
*/ |
int |
int |
pagenext(f, n) |
pagenext(int f, int n) |
int f, n; |
|
{ |
{ |
MGWIN *wp; |
MGWIN *wp; |
|
|
|
|
* Internal set mark routine, used by other functions (daveb). |
* Internal set mark routine, used by other functions (daveb). |
*/ |
*/ |
void |
void |
isetmark() |
isetmark(void) |
{ |
{ |
|
|
curwp->w_markp = curwp->w_dotp; |
curwp->w_markp = curwp->w_dotp; |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
setmark(f, n) |
setmark(int f, int n) |
int f, n; |
|
{ |
{ |
|
|
isetmark(); |
isetmark(); |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
swapmark(f, n) |
swapmark(int f, int n) |
int f, n; |
|
{ |
{ |
LINE *odotp; |
LINE *odotp; |
int odoto; |
int odoto; |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
gotoline(f, n) |
gotoline(int f, int n) |
int f, n; |
|
{ |
{ |
LINE *clp; |
LINE *clp; |
int s; |
int s; |