]> granicus.if.org Git - nethack/commitdiff
move some text strings from drawing.c over to the file that uses them
authornhmall <nhmall@nethack.org>
Wed, 6 May 2020 15:15:25 +0000 (11:15 -0400)
committernhmall <nhmall@nethack.org>
Wed, 6 May 2020 15:15:25 +0000 (11:15 -0400)
src/drawing.c
src/pager.c

index cc752081b65a5707250430feb407b010ba8ec234..aa32859a9753e9eacc0b81acfc419f81b1b01319 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 drawing.c       $NHDT-Date: 1573943500 2019/11/16 22:31:40 $  $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.64 $ */
+/* NetHack 3.6 drawing.c       $NHDT-Date: 1588778111 2020/05/06 15:15:11 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.76 $ */
 /* Copyright (c) NetHack Development Team 1992.                   */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -21,9 +21,6 @@
 #define C(n)
 #endif
 
-const char invisexplain[] = "remembered, unseen, creature",
-           altinvisexplain[] = "unseen creature"; /* for clairvoyance */
-           
 /* Default object class symbols.  See objclass.h.
  * {symbol, name, explain}
  *     name:    used in object_detect().
index ad55cdc4778e2d9f7bcc670e8067fb0ccc1b42a4..83856f30c2aa3c8d49b4f41e880833a50df59dc7 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 pager.c $NHDT-Date: 1585776162 2020/04/01 21:22:42 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.186 $ */
+/* NetHack 3.6 pager.c $NHDT-Date: 1588778117 2020/05/06 15:15:17 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.188 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Robert Patrick Rankin, 2018. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -37,6 +37,9 @@ static void NDECL(domenucontrols);
 extern void NDECL(port_help);
 #endif
 
+static const char invisexplain[] = "remembered, unseen, creature",
+           altinvisexplain[] = "unseen creature"; /* for clairvoyance */
+
 /* Returns "true" for characters that could represent a monster's stomach. */
 static boolean
 is_swallow_sym(c)
@@ -980,7 +983,6 @@ struct permonst **for_supplement;
     }
 
     if (sym == DEF_INVISIBLE) {
-        extern const char altinvisexplain[]; /* drawing.c */
         /* for active clairvoyance, use alternate "unseen creature" */
         boolean usealt = (EDetect_monsters & I_SPECIAL) != 0L;
         const char *unseen_explain = !usealt ? invisexplain : altinvisexplain;