From: nhmall Date: Wed, 6 May 2020 15:15:25 +0000 (-0400) Subject: move some text strings from drawing.c over to the file that uses them X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2ccebb0cfb9581d174071c8b027d16bfa4bb5e4;p=nethack move some text strings from drawing.c over to the file that uses them --- diff --git a/src/drawing.c b/src/drawing.c index cc752081b..aa32859a9 100644 --- a/src/drawing.c +++ b/src/drawing.c @@ -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(). diff --git a/src/pager.c b/src/pager.c index ad55cdc47..83856f30c 100644 --- a/src/pager.c +++ b/src/pager.c @@ -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;