diff --git a/curspriv.h b/curspriv.h index 817ca04f..b020cb4b 100644 --- a/curspriv.h +++ b/curspriv.h @@ -15,7 +15,7 @@ * See the file maintain.er for details of the current maintainer. * ************************************************************************/ -/* $Id: curspriv.h,v 1.53 2006/03/27 14:15:53 wmcbrine Exp $ */ +/* $Id: curspriv.h,v 1.54 2006/03/27 14:33:00 wmcbrine Exp $ */ /* CURSPRIV.H @@ -249,7 +249,7 @@ int PDC_set_rows(int); void PDC_slk_calc(void); void PDC_sync(WINDOW *); int PDC_sysgetch(void); -bool PDC_transform_line(int); +void PDC_transform_line(int); int PDC_validchar(int); #if defined(OS2) && !defined(EMXVIDEO) diff --git a/dos/pdcdisp.c b/dos/pdcdisp.c index 2673c09c..15f47265 100644 --- a/dos/pdcdisp.c +++ b/dos/pdcdisp.c @@ -25,7 +25,7 @@ #ifdef PDCDEBUG const char *rcsid_PDCdisp = - "$Id: pdcdisp.c,v 1.25 2006/03/25 13:49:27 wmcbrine Exp $"; + "$Id: pdcdisp.c,v 1.26 2006/03/27 14:33:00 wmcbrine Exp $"; #endif extern unsigned char atrtab[MAX_ATRTAB]; @@ -365,20 +365,15 @@ int PDC_scroll(int urow, int lcol, int lrow, int rcol, int nlines, chtype attr) Updates the given physical line to look like the corresponding line in _curscr. - PDCurses Return Value: - This routine returns TRUE if a premature refresh end is allowed, - and there is an input character pending. Otherwise, FALSE is - returned. - PDCurses Errors: No errors are defined for this routine. Portability: - PDCurses bool PDC_transform_line(int lineno); + PDCurses void PDC_transform_line(int lineno); **man-end****************************************************************/ -bool PDC_transform_line(int lineno) +void PDC_transform_line(int lineno) { chtype *srcp; int j, x, len; @@ -393,7 +388,7 @@ bool PDC_transform_line(int lineno) PDC_LOG(("PDC_transform_line() - called: line %d\n", lineno)); if (curscr == (WINDOW *)NULL) - return FALSE; + return; x = curscr->_firstch[lineno]; len = curscr->_lastch[lineno] - x + 1; @@ -448,6 +443,4 @@ bool PDC_transform_line(int lineno) curscr->_firstch[lineno] = _NO_CHANGE; curscr->_lastch[lineno] = _NO_CHANGE; - - return FALSE; } diff --git a/os2/pdcdisp.c b/os2/pdcdisp.c index 6121f189..a5ab187d 100644 --- a/os2/pdcdisp.c +++ b/os2/pdcdisp.c @@ -21,7 +21,7 @@ #ifdef PDCDEBUG const char *rcsid_PDCdisp = - "$Id: pdcdisp.c,v 1.22 2006/03/27 04:35:41 wmcbrine Exp $"; + "$Id: pdcdisp.c,v 1.23 2006/03/27 14:33:00 wmcbrine Exp $"; #endif extern unsigned char atrtab[MAX_ATRTAB]; @@ -306,20 +306,15 @@ int PDC_scroll(int urow, int lcol, int lrow, int rcol, int nlines, chtype attr) Updates the given physical line to look like the corresponding line in _curscr. - PDCurses Return Value: - This routine returns TRUE if a premature refresh end is allowed, - and there is an input character pending. Otherwise, FALSE is - returned. - PDCurses Errors: No errors are defined for this routine. Portability: - PDCurses bool PDC_transform_line(int lineno); + PDCurses void PDC_transform_line(int lineno); **man-end****************************************************************/ -bool PDC_transform_line(int lineno) +void PDC_transform_line(int lineno) { /* this should be enough for the maximum width of a screen. */ @@ -331,7 +326,7 @@ bool PDC_transform_line(int lineno) PDC_LOG(("PDC_transform_line() - called: line %d\n", lineno)); if (curscr == (WINDOW *)NULL) - return FALSE; + return; x = curscr->_firstch[lineno]; len = curscr->_lastch[lineno] - x + 1; @@ -352,6 +347,4 @@ bool PDC_transform_line(int lineno) curscr->_firstch[lineno] = _NO_CHANGE; curscr->_lastch[lineno] = _NO_CHANGE; - - return FALSE; } diff --git a/pdcurses/refresh.c b/pdcurses/refresh.c index 393afb1d..21428639 100644 --- a/pdcurses/refresh.c +++ b/pdcurses/refresh.c @@ -40,7 +40,7 @@ #ifdef PDCDEBUG const char *rcsid_refresh = - "$Id: refresh.c,v 1.28 2006/03/27 14:24:42 wmcbrine Exp $"; + "$Id: refresh.c,v 1.29 2006/03/27 14:33:00 wmcbrine Exp $"; #endif /*man-start************************************************************** @@ -216,9 +216,8 @@ int doupdate(void) curscr->_lastch[i] = COLS - 1; } - if ((curscr->_firstch[i] != _NO_CHANGE) && - PDC_transform_line(i)) - break; + if (curscr->_firstch[i] != _NO_CHANGE) + PDC_transform_line(i); } curscr->_clear = FALSE; diff --git a/win32/pdcdisp.c b/win32/pdcdisp.c index c1de857e..3b7e8851 100644 --- a/win32/pdcdisp.c +++ b/win32/pdcdisp.c @@ -26,7 +26,7 @@ extern unsigned char atrtab[MAX_ATRTAB]; #ifdef PDCDEBUG const char *rcsid_PDCdisp = - "$Id: pdcdisp.c,v 1.19 2006/03/27 14:07:21 wmcbrine Exp $"; + "$Id: pdcdisp.c,v 1.20 2006/03/27 14:33:00 wmcbrine Exp $"; #endif /*man-start************************************************************** @@ -302,20 +302,15 @@ int PDC_scroll(int urow, int lcol, int lrow, int rcol, int nlines, chtype attr) Updates the given physical line to look like the corresponding line in _curscr. - PDCurses Return Value: - This routine returns TRUE if a premature refresh end - is allowed, and there is an input character pending. Otherwise, - FALSE is returned. - PDCurses Errors: No errors are defined for this routine. Portability: - PDCurses bool PDC_transform_line(int lineno); + PDCurses void PDC_transform_line(int lineno); **man-end****************************************************************/ -bool PDC_transform_line(int lineno) +void PDC_transform_line(int lineno) { CHAR_INFO ci[512]; int j, x, endx, len; @@ -326,7 +321,7 @@ bool PDC_transform_line(int lineno) PDC_LOG(("PDC_transform_line() - called: lineno=%d\n", lineno)); if (curscr == (WINDOW *)NULL) - return FALSE; + return; x = curscr->_firstch[lineno]; endx = curscr->_lastch[lineno]; @@ -353,6 +348,4 @@ bool PDC_transform_line(int lineno) curscr->_firstch[lineno] = _NO_CHANGE; curscr->_lastch[lineno] = _NO_CHANGE; - - return FALSE; } diff --git a/x11/pdcdisp.c b/x11/pdcdisp.c index 34397a36..19581bf2 100644 --- a/x11/pdcdisp.c +++ b/x11/pdcdisp.c @@ -21,7 +21,7 @@ #ifdef PDCDEBUG const char *rcsid_PDCdisp = - "$Id: pdcdisp.c,v 1.19 2006/03/25 03:17:37 wmcbrine Exp $"; + "$Id: pdcdisp.c,v 1.20 2006/03/27 14:33:00 wmcbrine Exp $"; #endif /*man-start************************************************************** @@ -113,20 +113,15 @@ int PDC_gotoxy(int row, int col) Updates the given physical line to look like the corresponding line in _curscr. - PDCurses Return Value: - This routine returns TRUE if a premature refresh end is allowed, - and there is an input character pending. Otherwise, FALSE is - returned. - PDCurses Errors: No errors are defined for this routine. Portability: - PDCurses bool PDC_transform_line(int lineno); + PDCurses void PDC_transform_line(int lineno); **man-end****************************************************************/ -bool PDC_transform_line(int lineno) +void PDC_transform_line(int lineno) { const chtype *dstp; int x, endx, len; @@ -134,7 +129,7 @@ bool PDC_transform_line(int lineno) PDC_LOG(("PDC_transform_line() - called: line %d\n", lineno)); if (curscr == (WINDOW *)NULL) - return FALSE; + return; x = curscr->_firstch[lineno]; endx = curscr->_lastch[lineno]; @@ -145,6 +140,4 @@ bool PDC_transform_line(int lineno) curscr->_firstch[lineno] = _NO_CHANGE; curscr->_lastch[lineno] = _NO_CHANGE; - - return FALSE; }