From f03523b62a64b55ca309b90aecba74cb798c59ed Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Mon, 11 Nov 1985 00:13:19 +0000 Subject: [PATCH] add LCC - a better C-Compiler for WEGA --- WEGA/contrib/lcc/contrib/libcurses/move.c | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 WEGA/contrib/lcc/contrib/libcurses/move.c diff --git a/WEGA/contrib/lcc/contrib/libcurses/move.c b/WEGA/contrib/lcc/contrib/libcurses/move.c new file mode 100644 index 0000000..1b3a647 --- /dev/null +++ b/WEGA/contrib/lcc/contrib/libcurses/move.c @@ -0,0 +1,31 @@ +/* + * Copyright (c) 1980 Regents of the University of California. + * All rights reserved. The Berkeley software License Agreement + * specifies the terms and conditions for redistribution. + */ + +#ifndef lint +static char sccsid[] = "@(#)move.c 5.2 (Berkeley) 10/8/85"; +#endif not lint + +# include "curses.ext" + +/* + * This routine moves the cursor to the given point + * + */ +wmove(win, y, x) +reg WINDOW *win; +reg int y, x; { + +# ifdef DEBUG + fprintf(outf, "MOVE to (%d, %d)\n", y, x); +# endif + if (x < 0 || y < 0) + return ERR; + if (x >= win->_maxx || y >= win->_maxy) + return ERR; + win->_curx = x; + win->_cury = y; + return OK; +}