github PR #891 - tty #if HANGUPHANDLING misspelled
Pull request from entrez: the conditional hangup handling in wintty.c hasn't been getting used because the HANGUPHANDLING macro from the core was misspelled as HANGUP_HANDLING. The old testing was probably invalid since it was most likely done with the same misspelled #if. I haven't done any new testing so since this should be considered potentially buggy. Fixes #891
This commit is contained in:
+3
-3
@@ -69,7 +69,7 @@ extern void msmsg(const char *, ...);
|
|||||||
#define AVTC_SOUND_PLAY 4
|
#define AVTC_SOUND_PLAY 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HANGUP_HANDLING
|
#ifdef HANGUPHANDLING
|
||||||
/*
|
/*
|
||||||
* NetHack's core switches to a dummy windowing interface when it
|
* NetHack's core switches to a dummy windowing interface when it
|
||||||
* detects SIGHUP, but that's no help for any interface routine which
|
* detects SIGHUP, but that's no help for any interface routine which
|
||||||
@@ -91,10 +91,10 @@ extern void msmsg(const char *, ...);
|
|||||||
if (g.program_state.done_hup) \
|
if (g.program_state.done_hup) \
|
||||||
return (RES); \
|
return (RES); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else /* !HANGUP_HANDLING */
|
#else /* !HANGUPHANDLING */
|
||||||
#define HUPSKIP() /*empty*/
|
#define HUPSKIP() /*empty*/
|
||||||
#define HUPSKIP_RESULT(RES) /*empty*/
|
#define HUPSKIP_RESULT(RES) /*empty*/
|
||||||
#endif /* ?HANGUP_HANDLING */
|
#endif /* ?HANGUPHANDLING */
|
||||||
|
|
||||||
/* Interface definition, for windows.c */
|
/* Interface definition, for windows.c */
|
||||||
struct window_procs tty_procs = {
|
struct window_procs tty_procs = {
|
||||||
|
|||||||
Reference in New Issue
Block a user