summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/lib_mvwin.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-11-26 04:01:02 +0000
committermillert <millert@openbsd.org>1997-11-26 04:01:02 +0000
commit010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b (patch)
tree5ee5e7213ad9b412a927de7effdcb7c8ce4b489e /lib/libcurses/lib_mvwin.c
parentlibform from ncurses 4.1. Post 4.1 patches to be applied in a separate commit. (diff)
downloadwireguard-openbsd-010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b.tar.xz
wireguard-openbsd-010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b.zip
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_mvwin.c')
-rw-r--r--lib/libcurses/lib_mvwin.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libcurses/lib_mvwin.c b/lib/libcurses/lib_mvwin.c
index f84f6941239..22bdb4a2604 100644
--- a/lib/libcurses/lib_mvwin.c
+++ b/lib/libcurses/lib_mvwin.c
@@ -28,20 +28,22 @@
**
*/
-#include "curses.priv.h"
+#include <curses.priv.h>
+
+MODULE_ID("Id: lib_mvwin.c,v 1.3 1997/02/02 00:20:41 tom Exp $")
int mvwin(WINDOW *win, int by, int bx)
{
- T(("mvwin(%p,%d,%d) called", win, by, bx));
+ T((T_CALLED("mvwin(%p,%d,%d)"), win, by, bx));
if (win->_flags & _SUBWIN)
- return(ERR);
+ returnCode(ERR);
if (by + win->_maxy > screen_lines - 1
|| bx + win->_maxx > screen_columns - 1
|| by < 0
|| bx < 0)
- return(ERR);
+ returnCode(ERR);
/*
* Whether or not the window is moved, touch the window's contents so
@@ -51,5 +53,5 @@ int mvwin(WINDOW *win, int by, int bx)
*/
win->_begy = by;
win->_begx = bx;
- return touchwin(win);
+ returnCode(touchwin(win));
}