diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-26 22:53:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-26 22:53:17 +0000 |
commit | ac2dd1683fd459fc832d940eea325eb1725424bb (patch) | |
tree | 1a5cdc9d6300b1a29ff65c02960159db2bdfb9ad /usr.bin/mg/line.c | |
parent | c198e5bf8d551492a685ce1c4ab327ceac70a790 (diff) |
change WINDOW -> MGWIN to avoid curses type conflict
convert to terminfo in tty*.c
add support for some keypad function keys (arrows, pgup, pgdown)
Diffstat (limited to 'usr.bin/mg/line.c')
-rw-r--r-- | usr.bin/mg/line.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mg/line.c b/usr.bin/mg/line.c index 3c892c706b1..c0cad9fbda1 100644 --- a/usr.bin/mg/line.c +++ b/usr.bin/mg/line.c @@ -96,7 +96,7 @@ int used; VOID lfree(lp) register LINE *lp; { register BUFFER *bp; - register WINDOW *wp; + register MGWIN *wp; for(wp = wheadp; wp != NULL; wp = wp->w_wndp) { if (wp->w_linep == lp) @@ -139,7 +139,7 @@ lfree(lp) register LINE *lp; { */ VOID lchange(flag) register int flag; { - register WINDOW *wp; + register MGWIN *wp; if ((curbp->b_flag&BFCHG) == 0) { /* First change, so */ flag |= WFMODE; /* update mode lines. */ @@ -175,7 +175,7 @@ int n; LINE *lp3; register int doto; register RSIZE i; - WINDOW *wp; + MGWIN *wp; lchange(WFEDIT); lp1 = curwp->w_dotp; /* Current line */ @@ -267,7 +267,7 @@ lnewline() register LINE *lp2; register int doto; register int nlen; - WINDOW *wp; + MGWIN *wp; lchange(WFHARD); lp1 = curwp->w_dotp; /* Get the address and */ @@ -320,7 +320,7 @@ ldelete(n, kflag) RSIZE n; { register LINE *dotp; register int doto; register RSIZE chunk; - WINDOW *wp; + MGWIN *wp; /* * HACK - doesn't matter, and fixes back-over-nl bug for empty @@ -396,7 +396,7 @@ ldelete(n, kflag) RSIZE n; { ldelnewline() { register LINE *lp1; register LINE *lp2; - register WINDOW *wp; + register MGWIN *wp; LINE *lp3; lp1 = curwp->w_dotp; |