Some nttty.c clean-up.

This commit is contained in:
Bart House
2018-05-12 15:58:44 -07:00
parent 3467b9f087
commit 1d31a49661
7 changed files with 412 additions and 462 deletions

View File

@@ -1620,6 +1620,7 @@ E int NDECL(tgetch);
E int FDECL(ntposkey, (int *, int *, int *));
E void FDECL(set_output_mode, (int));
E void NDECL(synch_cursor);
E void NDECL(nethack_enter_nttty);
#endif
/* ### o_init.c ### */
@@ -2779,6 +2780,11 @@ E void NDECL(dump_close_log);
E void FDECL(dump_redirect, (BOOLEAN_P));
E void FDECL(dump_forward_putstr, (winid, int, const char*, int));
/* ### winnt.c ### */
#ifdef WIN32
E void NDECL(nethack_enter_winnt);
#endif
/* ### wizard.c ### */
E void NDECL(amulet);

View File

@@ -352,4 +352,10 @@ struct savefile_info {
#define PANICTRACE_GDB
#endif
/* Supply nethack_enter macro if not supplied by port */
#ifndef nethack_enter
#define nethack_enter(argc, argv) ((void) 0)
#endif
#endif /* GLOBAL_H */

View File

@@ -256,4 +256,6 @@ extern void FDECL(ntassert_failed, (const char * exp, const char * file,
(ntassert_failed(#expression, __FILE__, __LINE__), 0))
#endif
#define nethack_enter(argc, argv) nethack_enter_winnt()
#endif /* NTCONF_H */