Changed PDC_transform_line() to void return. (With the removal of

typeahead checking, it always returned FALSE.)
This commit is contained in:
William McBrine
2006-03-27 14:33:00 +00:00
parent aaaaa7d365
commit de3982670c
6 changed files with 21 additions and 50 deletions

View File

@@ -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)

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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;
}