From: Ty S. <ts...@us...> - 2000-10-12 02:52:22
|
Update of /cvsroot/firebird/interbase/pyxis In directory slayer.i.sourceforge.net:/tmp/cvs-serv18269/pyxis Modified Files: cdm.c Log Message: NetBSD support. Thanks to Geoffrey C. Speicher for the FreeBSD port, which made this much easier. Index: cdm.c =================================================================== RCS file: /cvsroot/firebird/interbase/pyxis/cdm.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** cdm.c 2000/08/03 20:53:44 1.1.1.1 --- cdm.c 2000/10/12 02:52:18 1.2 *************** *** 71,74 **** --- 71,79 ---- #endif + #ifndef NETBSD + define getmaxx(s) ((s)->_maxx) + define getmaxy(s) ((s)->_maxy) + #endif + static USHORT disabled = 1; static USHORT debug_curses = 0; *************** *** 266,273 **** window->win_width = (window->win_width) ? ! MIN (stdscr->_maxx, window->win_width) : stdscr->_maxx; window->win_height = (window->win_height) ? ! MIN (stdscr->_maxy, window->win_height) : stdscr->_maxy; for (p = keypad_equiv; *p; p += 2) --- 271,278 ---- window->win_width = (window->win_width) ? ! MIN (getmaxx(stdscr), window->win_width) : getmaxx(stdscr); window->win_height = (window->win_height) ? ! MIN (getmaxy(stdscr), window->win_height) : getmaxy(stdscr); for (p = keypad_equiv; *p; p += 2) *************** *** 323,327 **** return; ! wmove (stdscr, stdscr->_maxy - 1, 0); clear(); wrefresh (stdscr); --- 328,332 ---- return; ! wmove (stdscr, getmaxy(stdscr) - 1, 0); clear(); wrefresh (stdscr); |