Macro implementation of wresize(). Will work in _some_ cases; not really

adequate.
This commit is contained in:
William McBrine
2005-12-25 22:01:30 +00:00
parent 7b5dc11caa
commit e0a98db009
2 changed files with 5 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
***************************************************************************
*/
/*
$Id: curses.h,v 1.58 2005/12/25 19:24:43 wmcbrine Exp $
$Id: curses.h,v 1.59 2005/12/25 22:01:29 wmcbrine Exp $
*/
/*
*----------------------------------------------------------------------
@@ -2036,6 +2036,7 @@ int PDC_CDECL PDC_set_line_color Args(( short ));
#define winchstr(w, c) (winchnstr( w, c, (w)->_maxx-(w)->_curx ) )
#define winsstr(w,str) winsnstr((w),(str),(-1))
#define winstr(w,str) winnstr((w),str,(w)->_maxx)
#define wresize(w,l,c) ((w = resize_window(w,l,c)) ? OK : ERR)
#define wstandend(w) wattrset(w, A_NORMAL)
#define wstandout(w) wattrset(w, A_STANDOUT)

View File

@@ -48,7 +48,7 @@
#endif
#ifdef PDCDEBUG
char *rcsid_window = "$Id: window.c,v 1.5 2005/11/12 20:54:58 wmcbrine Exp $";
char *rcsid_window = "$Id: window.c,v 1.6 2005/12/25 22:01:30 wmcbrine Exp $";
#endif
/*man-start*********************************************************************
@@ -542,6 +542,7 @@ extern void (*fre)();
return( new );
}
#if 0
/***********************************************************************/
#ifdef HAVE_PROTO
int PDC_CDECL wresize(WINDOW **win, int lins, int cols)
@@ -560,6 +561,7 @@ int cols;
*win = new;
return OK;
}
#endif
/***********************************************************************/
#ifdef HAVE_PROTO
WINDOW * PDC_CDECL resize_window(WINDOW *win, int lins, int cols)