change references from winnt to windows

rename sys/winnt to sys/windows
move vs (visual studio) folder out of win/win32 and into sys/windows
rename include/ntconf.h to include/windconf.h
rename winnt.c to windsys.c
place visual studio projects into individual subfolders.

This will hopefully resolve GitHub issue #484 as well.
This commit is contained in:
nhmall
2021-06-03 12:14:27 -04:00
parent acfbf20958
commit 0a10bd632d
140 changed files with 1013 additions and 469 deletions

View File

@@ -475,7 +475,7 @@ tty_preference_update(const char *pref)
}
#if defined(WIN32)
nttty_preference_update(pref);
consoletty_preference_update(pref);
#else
genl_preference_update(pref);
#endif
@@ -1430,7 +1430,7 @@ tty_exit_nhwindows(const char *str)
tty_shutdown(); /* cleanup termcap/terminfo/whatever */
#endif
#ifdef WIN32
nttty_exit();
consoletty_exit();
#endif
iflags.window_inited = 0;
}
@@ -3566,7 +3566,7 @@ tty_nh_poskey(int *x UNUSED, int *y UNUSED, int *mod UNUSED)
*/
if (WIN_MESSAGE != WIN_ERR && wins[WIN_MESSAGE])
wins[WIN_MESSAGE]->flags &= ~WIN_STOP;
i = ntposkey(x, y, mod);
i = console_poskey(x, y, mod);
if (!i && mod && (*mod == 0 || *mod == EOF))
i = '\033'; /* map NUL or EOF to ESC, nethack doesn't expect either */
/* topline has been seen - we can clear need for more */