Unneeded references to FAST_VIDEO. To Do: INT_MAX is not necessarily the

best return value for baudrate(), although it's probably better than
19200 (which was being used for all ports except DOS).
This commit is contained in:
William McBrine
2006-01-15 18:20:24 +00:00
parent 7b819a0f36
commit 17d33eb901
3 changed files with 8 additions and 22 deletions

View File

@@ -42,7 +42,7 @@
#endif
#ifdef PDCDEBUG
char *rcsid_termattr = "$Id: termattr.c,v 1.9 2006/01/15 18:03:32 wmcbrine Exp $";
char *rcsid_termattr = "$Id: termattr.c,v 1.10 2006/01/15 18:20:16 wmcbrine Exp $";
#endif
/*man-start*********************************************************************
@@ -92,11 +92,9 @@ char *rcsid_termattr = "$Id: termattr.c,v 1.9 2006/01/15 18:03:32 wmcbrine Exp $
supported by the terminal.
PDCurses Description:
If FAST_VIDEO is true, then this is the largest possible
(portable) int value (INT_MAX from limits.h) IF direct video is
possible, OR the approximate guess at BIOS speeds, 19200. If
FAST_VIDEO is false, this is an approximate guess at BIOS
speeds, 19200.
baudrate() returns the largest possible (portable) int value
(INT_MAX from limits.h) IF direct video is possible, OR the
approximate guess at BIOS speeds, 19200.
erasechar(), killchar() and wordchar() all return values that
are hardcoded at this time. There may be future development to
@@ -150,11 +148,7 @@ int PDC_CDECL baudrate()
{
PDC_LOG(("baudrate() - called\n"));
#ifdef FAST_VIDEO
return SP->direct_video ? INT_MAX : 19200;
#else
return 19200; /* Approx. guess at BIOS speeds.*/
#endif
}
/***********************************************************************/

View File

@@ -22,7 +22,7 @@
#include <curses.h>
#ifdef PDCDEBUG
char *rcsid_PDCgetsc = "$Id: pdcgetsc.c,v 1.5 2006/01/08 11:53:43 wmcbrine Exp $";
char *rcsid_PDCgetsc = "$Id: pdcgetsc.c,v 1.6 2006/01/15 18:20:24 wmcbrine Exp $";
#endif
extern HANDLE hConOut, hConIn;
@@ -192,15 +192,11 @@ int PDC_get_cursor_mode(void)
PDCurses Description:
This is a private PDCurses routine.
This function returns the current font size. This function only
works if the #define FAST_VIDEO is true.
This function returns the current font size.
PDCurses Return Value:
This function returns OK on success and ERR on error.
PDCurses Errors:
An ERR will be returned if FAST_VIDEO is not true.
Portability:
PDCurses int PDC_get_font(void);

View File

@@ -24,7 +24,7 @@
#include <curses.h>
#ifdef PDCDEBUG
char *rcsid_PDCgetsc = "$Id: pdcgetsc.c,v 1.3 2006/01/11 06:46:24 wmcbrine Exp $";
char *rcsid_PDCgetsc = "$Id: pdcgetsc.c,v 1.4 2006/01/15 18:20:24 wmcbrine Exp $";
#endif
/*man-start*********************************************************************
@@ -102,15 +102,11 @@ int PDC_get_rows()
PDCurses Description:
This is a private PDCurses routine.
This function returns the current font size. This function only
works if the #define FAST_VIDEO is true.
This function returns the current font size.
PDCurses Return Value:
This function returns OK on success and ERR on error.
PDCurses Errors:
An ERR will be returned if FAST_VIDEO is not true.
Portability:
PDCurses int PDC_get_font(void);