nttty topten output processing

switch back to using the safe routines
after tty port exits on Windows console
tty port.

Fixes H7758
1613
This commit is contained in:
nhmall
2018-12-29 12:26:33 -05:00
parent 5882832ef0
commit eed7c4bdd1
4 changed files with 33 additions and 7 deletions

View File

@@ -47,6 +47,7 @@ void FDECL(windows_raw_print, (const char *));
char FDECL(windows_yn_function, (const char *, const char *, CHAR_P));
void FDECL(windows_getlin, (const char *, char *));
extern int NDECL(windows_console_custom_nhgetch);
void NDECL(safe_routines);
char orgdir[PATHLEN];
char *dir;
@@ -93,11 +94,7 @@ char *argv[];
* Get a set of valid safe windowport function
* pointers during early startup initialization.
*/
if (!WINDOWPORT("safe-startup"))
windowprocs = *get_safe_procs(1);
if (!GUILaunched)
windowprocs.win_nhgetch = windows_console_custom_nhgetch;
safe_routines();
sys_early_init();
#ifdef _MSC_VER
# ifdef DEBUG
@@ -570,6 +567,19 @@ nhusage()
#undef ADD_USAGE
}
void
safe_routines(VOID_ARGS)
{
/*
* Get a set of valid safe windowport function
* pointers during early startup initialization.
*/
if (!WINDOWPORT("safe-startup"))
windowprocs = *get_safe_procs(1);
if (!GUILaunched)
windowprocs.win_nhgetch = windows_console_custom_nhgetch;
}
#ifdef PORT_HELP
void
port_help()