From: Pasi Kallinen Date: Wed, 3 Jun 2015 14:41:01 +0000 (+0300) Subject: Move struct istat_s above prototypes using it X-Git-Tag: NetHack-3.6.0_RC01~297^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19fe4ece8c3c5d95fcdb1a368f8fc678a18ea46c;p=nethack Move struct istat_s above prototypes using it --- diff --git a/src/botl.c b/src/botl.c index 210a21e13..527fe5669 100644 --- a/src/botl.c +++ b/src/botl.c @@ -285,17 +285,6 @@ char *buf; #ifdef STATUS_VIA_WINDOWPORT /* =======================================================================*/ -STATIC_DCL void NDECL(init_blstats); -STATIC_DCL char *FDECL(anything_to_s, (char *, anything *, int)); -STATIC_DCL void FDECL(s_to_anything, (anything *, char *, int)); -STATIC_OVL int FDECL(percentage, (struct istat_s *, struct istat_s *)); -STATIC_OVL int FDECL(compare_blstats, (struct istat_s *, struct istat_s *)); - -#ifdef STATUS_HILITES -STATIC_DCL boolean FDECL(assign_hilite, (char *, char *, char *, char *, BOOLEAN_P)); -STATIC_DCL const char *FDECL(clridx_to_s, (char *, int)); -#endif - /* structure that tracks the status details in the core */ struct istat_s { long time; @@ -307,6 +296,18 @@ struct istat_s { enum statusfields fld; }; + +STATIC_DCL void NDECL(init_blstats); +STATIC_DCL char *FDECL(anything_to_s, (char *, anything *, int)); +STATIC_DCL void FDECL(s_to_anything, (anything *, char *, int)); +STATIC_OVL int FDECL(percentage, (struct istat_s *, struct istat_s *)); +STATIC_OVL int FDECL(compare_blstats, (struct istat_s *, struct istat_s *)); + +#ifdef STATUS_HILITES +STATIC_DCL boolean FDECL(assign_hilite, (char *, char *, char *, char *, BOOLEAN_P)); +STATIC_DCL const char *FDECL(clridx_to_s, (char *, int)); +#endif + /* If entries are added to this, botl.h will require updating too */ STATIC_DCL struct istat_s initblstats[MAXBLSTATS] = { { 0L, ANY_STR, {(genericptr_t)0L}, (char *)0, 80, 0, BL_TITLE},