diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-11-26 04:02:03 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-11-26 04:02:03 +0000 |
commit | bda33b7e716d56bf1a9ecccb7e2543889f9ab1d3 (patch) | |
tree | 7bc4bcdf70ecc1d045693a309e96b304e1b49c33 /lib/libcurses/lib_touch.c | |
parent | cd15e61d557c4704743905eae7b88ae927cf0394 (diff) |
ncurses 4.1 + changes to work with our terminfo libs (instead of
the ncurses ones). Changes are #ifdef EXTERN_TERMINFO.
Post 4.1 patches will be applied in a separate commit.
Diffstat (limited to 'lib/libcurses/lib_touch.c')
-rw-r--r-- | lib/libcurses/lib_touch.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/lib/libcurses/lib_touch.c b/lib/libcurses/lib_touch.c index b2b29ac5859..3d21449edc8 100644 --- a/lib/libcurses/lib_touch.c +++ b/lib/libcurses/lib_touch.c @@ -29,36 +29,42 @@ ** */ -#include "curses.priv.h" +#include <curses.priv.h> + +MODULE_ID("Id: lib_touch.c,v 1.3 1997/02/02 00:26:15 tom Exp $") int is_linetouched(WINDOW *win, int line) { + T((T_CALLED("is_linetouched(%p,%d)"), win, line)); + + /* XSI doesn't define any error */ if (line > win->_maxy || line < 0) - return ERR; - if (win->_line[line].firstchar != _NOCHANGE) return TRUE; - return FALSE; + returnCode(ERR); + + returnCode(win->_line[line].firstchar != _NOCHANGE ? TRUE : FALSE); } int is_wintouched(WINDOW *win) { int i; + T((T_CALLED("is_wintouched(%p)"), win)); + for (i = 0; i <= win->_maxy; i++) if (win->_line[i].firstchar != _NOCHANGE) - return TRUE; - return FALSE; + returnCode(TRUE); + returnCode(FALSE); } int wtouchln(WINDOW *win, int y, int n, int changed) { int i; - T(("wtouchln(%p,%d,%d,%d)", win, y, n, changed)); + T((T_CALLED("wtouchln(%p,%d,%d,%d)"), win, y, n, changed)); for (i = y; i < y+n; i++) { win->_line[i].firstchar = changed ? 0 : _NOCHANGE; win->_line[i].lastchar = changed ? win->_maxx : _NOCHANGE; } - return OK; + returnCode(OK); } - |