]> granicus.if.org Git - nethack/commitdiff
NOSUSPEND
authorPatR <rankin@nethack.org>
Tue, 8 Dec 2020 20:58:36 +0000 (12:58 -0800)
committerPatR <rankin@nethack.org>
Tue, 8 Dec 2020 20:58:36 +0000 (12:58 -0800)
Provide a hook to inhibit unixconf.h from defining SUSPEND
without the need to modify it:  #define NOSUSPEND in config.h
or add -DNOSUSPEND to CFLAGS.  Similar to long-standing NOSHELL
for inhibiting SHELL.

doc/fixes37.0
include/unixconf.h

index c424affbc27c3ccf397d0e20c9e4349e03e1fba5..dcc080db7b293986f0eb0f426e334018902fe3f4 100644 (file)
@@ -1,4 +1,4 @@
-NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.377 $ $NHDT-Date: 1607373999 2020/12/07 20:46:39 $
+NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.379 $ $NHDT-Date: 1607461111 2020/12/08 20:58:31 $
 
 General Fixes and Modified Features
 -----------------------------------
@@ -670,6 +670,8 @@ Qt: add Filter, Layout, and Reset buttons to the extended command selector;
        mode only"; Layout redisplays the grid of command buttons, toggling
        from down columns to across rows or vice versa; Reset puts both back
        to their default settings and clears any pending typed input
+Unix: can define NOSUSPEND in config.h or src/Makefile's CFLAGS to prevent
+       unixconf.h from enabling SUSPEND without need to modify unixconf.h
 
 
 NetHack Community Patches (or Variation) Included
index e97481d7d5f5d765b889a43a921d10aec11006b7..698adfc56394c642098e4173fef8c1f4be16ec5b 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.7 unixconf.h      $NHDT-Date: 1596498567 2020/08/03 23:49:27 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.47 $ */
+/* NetHack 3.7 unixconf.h      $NHDT-Date: 1607461111 2020/12/08 20:58:31 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.49 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Pasi Kallinen, 2018. */
 /* NetHack may be freely redistributed.  See license for details. */
 #endif
 #endif
 #endif
+
+#ifndef NOSUSPEND
 #if defined(BSD_JOB_CONTROL) || defined(POSIX_JOB_CONTROL) || defined(AUX)
-#define SUSPEND /* let ^Z suspend the game */
+#define SUSPEND /* let ^Z suspend the game (push to background) */
+#endif
 #endif
 
 /*