remove STATIC_DCL, STATIC_OVL, STATIC_VAR, STATIC_PTR from core

This commit is contained in:
nhmall
2019-07-14 17:24:58 -04:00
parent e3b5e7f95a
commit 0d34f43830
96 changed files with 2339 additions and 2370 deletions
+59 -59
View File
@@ -36,47 +36,47 @@ struct lchoice {
};
static void FDECL(Fread, (genericptr_t, int, int, dlb *));
STATIC_DCL xchar FDECL(dname_to_dnum, (const char *));
STATIC_DCL int FDECL(find_branch, (const char *, struct proto_dungeon *));
STATIC_DCL xchar FDECL(parent_dnum, (const char *, struct proto_dungeon *));
STATIC_DCL int FDECL(level_range, (XCHAR_P, int, int, int,
static xchar FDECL(dname_to_dnum, (const char *));
static int FDECL(find_branch, (const char *, struct proto_dungeon *));
static xchar FDECL(parent_dnum, (const char *, struct proto_dungeon *));
static int FDECL(level_range, (XCHAR_P, int, int, int,
struct proto_dungeon *, int *));
STATIC_DCL xchar FDECL(parent_dlevel, (const char *, struct proto_dungeon *));
STATIC_DCL int FDECL(correct_branch_type, (struct tmpbranch *));
STATIC_DCL branch *FDECL(add_branch, (int, int, struct proto_dungeon *));
STATIC_DCL void FDECL(add_level, (s_level *));
STATIC_DCL void FDECL(init_level, (int, int, struct proto_dungeon *));
STATIC_DCL int FDECL(possible_places, (int, boolean *,
static xchar FDECL(parent_dlevel, (const char *, struct proto_dungeon *));
static int FDECL(correct_branch_type, (struct tmpbranch *));
static branch *FDECL(add_branch, (int, int, struct proto_dungeon *));
static void FDECL(add_level, (s_level *));
static void FDECL(init_level, (int, int, struct proto_dungeon *));
static int FDECL(possible_places, (int, boolean *,
struct proto_dungeon *));
STATIC_DCL xchar FDECL(pick_level, (boolean *, int));
STATIC_DCL boolean FDECL(place_level, (int, struct proto_dungeon *));
STATIC_DCL boolean FDECL(unplaced_floater, (struct dungeon *));
STATIC_DCL boolean FDECL(unreachable_level, (d_level *, BOOLEAN_P));
STATIC_DCL void FDECL(tport_menu, (winid, char *, struct lchoice *, d_level *,
static xchar FDECL(pick_level, (boolean *, int));
static boolean FDECL(place_level, (int, struct proto_dungeon *));
static boolean FDECL(unplaced_floater, (struct dungeon *));
static boolean FDECL(unreachable_level, (d_level *, BOOLEAN_P));
static void FDECL(tport_menu, (winid, char *, struct lchoice *, d_level *,
BOOLEAN_P));
STATIC_DCL const char *FDECL(br_string, (int));
STATIC_DCL char FDECL(chr_u_on_lvl, (d_level *));
STATIC_DCL void FDECL(print_branch, (winid, int, int, int, BOOLEAN_P,
static const char *FDECL(br_string, (int));
static char FDECL(chr_u_on_lvl, (d_level *));
static void FDECL(print_branch, (winid, int, int, int, BOOLEAN_P,
struct lchoice *));
/* SAVE2018 */
STATIC_DCL mapseen *FDECL(load_mapseen, (NHFILE *));
STATIC_DCL void FDECL(save_mapseen, (NHFILE *, mapseen *));
STATIC_DCL mapseen *FDECL(find_mapseen, (d_level *));
STATIC_DCL mapseen *FDECL(find_mapseen_by_str, (const char *));
STATIC_DCL void FDECL(print_mapseen, (winid, mapseen *, int, int, BOOLEAN_P));
STATIC_DCL boolean FDECL(interest_mapseen, (mapseen *));
STATIC_DCL void FDECL(traverse_mapseenchn, (BOOLEAN_P, winid,
static mapseen *FDECL(load_mapseen, (NHFILE *));
static void FDECL(save_mapseen, (NHFILE *, mapseen *));
static mapseen *FDECL(find_mapseen, (d_level *));
static mapseen *FDECL(find_mapseen_by_str, (const char *));
static void FDECL(print_mapseen, (winid, mapseen *, int, int, BOOLEAN_P));
static boolean FDECL(interest_mapseen, (mapseen *));
static void FDECL(traverse_mapseenchn, (BOOLEAN_P, winid,
int, int, int *));
STATIC_DCL const char *FDECL(seen_string, (XCHAR_P, const char *));
STATIC_DCL const char *FDECL(br_string2, (branch *));
STATIC_DCL const char *FDECL(shop_string, (int));
STATIC_DCL char *FDECL(tunesuffix, (mapseen *, char *));
static const char *FDECL(seen_string, (XCHAR_P, const char *));
static const char *FDECL(br_string2, (branch *));
static const char *FDECL(shop_string, (int));
static char *FDECL(tunesuffix, (mapseen *, char *));
#ifdef DEBUG
#define DD g.dungeons[i]
STATIC_DCL void NDECL(dumpit);
static void NDECL(dumpit);
STATIC_OVL void
static void
dumpit()
{
int i;
@@ -310,7 +310,7 @@ dlb *stream;
}
}
STATIC_OVL xchar
static xchar
dname_to_dnum(s)
const char *s;
{
@@ -337,7 +337,7 @@ const char *s;
}
/* Find the branch that links the named dungeon. */
STATIC_OVL int
static int
find_branch(s, pd)
const char *s; /* dungeon name */
struct proto_dungeon *pd;
@@ -370,7 +370,7 @@ struct proto_dungeon *pd;
* Find the "parent" by searching the prototype branch list for the branch
* listing, then figuring out to which dungeon it belongs.
*/
STATIC_OVL xchar
static xchar
parent_dnum(s, pd)
const char *s; /* dungeon name */
struct proto_dungeon *pd;
@@ -402,7 +402,7 @@ struct proto_dungeon *pd;
* a negative random component means from the (adjusted) base to the
* end of the dungeon.
*/
STATIC_OVL int
static int
level_range(dgn, base, randc, chain, pd, adjusted_base)
xchar dgn;
int base, randc, chain;
@@ -437,7 +437,7 @@ int *adjusted_base;
return 1;
}
STATIC_OVL xchar
static xchar
parent_dlevel(s, pd)
const char *s;
struct proto_dungeon *pd;
@@ -464,7 +464,7 @@ struct proto_dungeon *pd;
}
/* Convert from the temporary branch type to the dungeon branch type. */
STATIC_OVL int
static int
correct_branch_type(tbr)
struct tmpbranch *tbr;
{
@@ -538,7 +538,7 @@ boolean extract_first;
}
/* Add a dungeon branch to the branch list. */
STATIC_OVL branch *
static branch *
add_branch(dgn, child_entry_level, pd)
int dgn;
int child_entry_level;
@@ -570,7 +570,7 @@ struct proto_dungeon *pd;
* level that has a dungeon number less than the dungeon number of the
* last entry.
*/
STATIC_OVL void
static void
add_level(new_lev)
s_level *new_lev;
{
@@ -592,7 +592,7 @@ s_level *new_lev;
}
}
STATIC_OVL void
static void
init_level(dgn, proto_index, pd)
int dgn, proto_index;
struct proto_dungeon *pd;
@@ -626,7 +626,7 @@ struct proto_dungeon *pd;
new_level->next = (s_level *) 0;
}
STATIC_OVL int
static int
possible_places(idx, map, pd)
int idx; /* prototype index */
boolean *map; /* array MAXLEVEL+1 in length */
@@ -658,7 +658,7 @@ struct proto_dungeon *pd;
}
/* Pick the nth TRUE entry in the given boolean array. */
STATIC_OVL xchar
static xchar
pick_level(map, nth)
boolean *map; /* an array MAXLEVEL+1 in size */
int nth;
@@ -690,7 +690,7 @@ int d;
* all possible places have been tried. If all possible places have
* been exhausted, return false.
*/
STATIC_OVL boolean
static boolean
place_level(proto_index, pd)
int proto_index;
struct proto_dungeon *pd;
@@ -1780,7 +1780,7 @@ const char *nam;
return lev;
}
STATIC_OVL boolean
static boolean
unplaced_floater(dptr)
struct dungeon *dptr;
{
@@ -1796,7 +1796,7 @@ struct dungeon *dptr;
return FALSE;
}
STATIC_OVL boolean
static boolean
unreachable_level(lvl_p, unplaced)
d_level *lvl_p;
boolean unplaced;
@@ -1847,7 +1847,7 @@ boolean unreachable;
}
/* Convert a branch type to a string usable by print_dungeon(). */
STATIC_OVL const char *
static const char *
br_string(type)
int type;
{
@@ -1864,7 +1864,7 @@ int type;
return " (unknown)";
}
STATIC_OVL char
static char
chr_u_on_lvl(dlev)
d_level *dlev;
{
@@ -1872,7 +1872,7 @@ d_level *dlev;
}
/* Print all child branches between the lower and upper bounds. */
STATIC_OVL void
static void
print_branch(win, dnum, lower_bound, upper_bound, bymenu, lchoices_p)
winid win;
int dnum;
@@ -2157,7 +2157,7 @@ donamelevel()
}
/* find the particular mapseen object in the chain; may return null */
STATIC_OVL mapseen *
static mapseen *
find_mapseen(lev)
d_level *lev;
{
@@ -2170,7 +2170,7 @@ d_level *lev;
return mptr;
}
STATIC_OVL mapseen *
static mapseen *
find_mapseen_by_str(s)
const char *s;
{
@@ -2247,7 +2247,7 @@ int ledger_num;
}
}
STATIC_OVL void
static void
save_mapseen(nhfp, mptr)
NHFILE *nhfp;
mapseen *mptr;
@@ -2295,7 +2295,7 @@ mapseen *mptr;
savecemetery(nhfp, &mptr->final_resting_place);
}
STATIC_OVL mapseen *
static mapseen *
load_mapseen(nhfp)
NHFILE *nhfp;
{
@@ -2469,7 +2469,7 @@ d_level *lev;
/* || (feat).water || (feat).ice || (feat).lava */
/* returns true if this level has something interesting to print out */
STATIC_OVL boolean
static boolean
interest_mapseen(mptr)
mapseen *mptr;
{
@@ -2868,7 +2868,7 @@ int reason; /* how hero died; used when disclosing end-of-game level */
}
/* display endgame levels or non-endgame levels, not both */
STATIC_OVL void
static void
traverse_mapseenchn(viewendgame, win, why, reason, lastdun_p)
boolean viewendgame;
winid win;
@@ -2890,7 +2890,7 @@ int why, reason, *lastdun_p;
}
}
STATIC_OVL const char *
static const char *
seen_string(x, obj)
xchar x;
const char *obj;
@@ -2912,7 +2912,7 @@ const char *obj;
}
/* better br_string */
STATIC_OVL const char *
static const char *
br_string2(br)
branch *br;
{
@@ -2967,7 +2967,7 @@ int indx;
return outbuf;
}
STATIC_OVL const char *
static const char *
shop_string(rtype)
int rtype;
{
@@ -3019,7 +3019,7 @@ int rtype;
/* if player knows about the mastermind tune, append it to Castle annotation;
if drawbridge has been destroyed, flags.castletune will be zero */
STATIC_OVL char *
static char *
tunesuffix(mptr, outbuf)
mapseen *mptr;
char *outbuf;
@@ -3060,7 +3060,7 @@ char *outbuf;
Sprintf(eos(buf), "%s%s", COMMA, (nam)); \
} while (0)
STATIC_OVL void
static void
print_mapseen(win, mptr, final, how, printdun)
winid win;
mapseen *mptr;