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

View File

@@ -9,31 +9,31 @@
/* croom->lx etc are schar (width <= int), so % arith ensures that */
/* conversion of result to int is reasonable */
STATIC_DCL void FDECL(mkfount, (int, struct mkroom *));
STATIC_DCL void FDECL(mksink, (struct mkroom *));
STATIC_DCL void FDECL(mkaltar, (struct mkroom *));
STATIC_DCL void FDECL(mkgrave, (struct mkroom *));
STATIC_DCL void NDECL(makevtele);
STATIC_DCL void NDECL(clear_level_structures);
STATIC_DCL void NDECL(makelevel);
STATIC_DCL boolean FDECL(bydoor, (XCHAR_P, XCHAR_P));
STATIC_DCL struct mkroom *FDECL(find_branch_room, (coord *));
STATIC_DCL struct mkroom *FDECL(pos_to_room, (XCHAR_P, XCHAR_P));
STATIC_DCL boolean FDECL(place_niche, (struct mkroom *, int *, int *, int *));
STATIC_DCL void FDECL(makeniche, (int));
STATIC_DCL void NDECL(make_niches);
STATIC_PTR int FDECL(CFDECLSPEC do_comp, (const genericptr,
static void FDECL(mkfount, (int, struct mkroom *));
static void FDECL(mksink, (struct mkroom *));
static void FDECL(mkaltar, (struct mkroom *));
static void FDECL(mkgrave, (struct mkroom *));
static void NDECL(makevtele);
static void NDECL(clear_level_structures);
static void NDECL(makelevel);
static boolean FDECL(bydoor, (XCHAR_P, XCHAR_P));
static struct mkroom *FDECL(find_branch_room, (coord *));
static struct mkroom *FDECL(pos_to_room, (XCHAR_P, XCHAR_P));
static boolean FDECL(place_niche, (struct mkroom *, int *, int *, int *));
static void FDECL(makeniche, (int));
static void NDECL(make_niches);
static int FDECL(CFDECLSPEC do_comp, (const genericptr,
const genericptr));
STATIC_DCL void FDECL(dosdoor, (XCHAR_P, XCHAR_P, struct mkroom *, int));
STATIC_DCL void FDECL(join, (int, int, BOOLEAN_P));
STATIC_DCL void FDECL(do_room_or_subroom, (struct mkroom *, int, int,
static void FDECL(dosdoor, (XCHAR_P, XCHAR_P, struct mkroom *, int));
static void FDECL(join, (int, int, BOOLEAN_P));
static void FDECL(do_room_or_subroom, (struct mkroom *, int, int,
int, int, BOOLEAN_P,
SCHAR_P, BOOLEAN_P, BOOLEAN_P));
STATIC_DCL void NDECL(makerooms);
STATIC_DCL void FDECL(finddpos, (coord *, XCHAR_P, XCHAR_P,
static void NDECL(makerooms);
static void FDECL(finddpos, (coord *, XCHAR_P, XCHAR_P,
XCHAR_P, XCHAR_P));
STATIC_DCL void FDECL(mkinvpos, (XCHAR_P, XCHAR_P, int));
STATIC_DCL void FDECL(mk_knox_portal, (XCHAR_P, XCHAR_P));
static void FDECL(mkinvpos, (XCHAR_P, XCHAR_P, int));
static void FDECL(mk_knox_portal, (XCHAR_P, XCHAR_P));
#define create_vault() create_room(-1, -1, 2, 2, -1, -1, VAULT, TRUE)
#define init_vault() g.vault_x = -1
@@ -41,7 +41,7 @@ STATIC_DCL void FDECL(mk_knox_portal, (XCHAR_P, XCHAR_P));
/* Args must be (const genericptr) so that qsort will always be happy. */
STATIC_PTR int CFDECLSPEC
static int CFDECLSPEC
do_comp(vx, vy)
const genericptr vx;
const genericptr vy;
@@ -63,7 +63,7 @@ const genericptr vy;
#endif /* LINT */
}
STATIC_OVL void
static void
finddpos(cc, xl, yl, xh, yh)
coord *cc;
xchar xl, yl, xh, yh;
@@ -105,7 +105,7 @@ sort_rooms()
#undef CAST_nroom
}
STATIC_OVL void
static void
do_room_or_subroom(croom, lowx, lowy, hix, hiy, lit, rtype, special, is_room)
register struct mkroom *croom;
int lowx, lowy;
@@ -217,7 +217,7 @@ boolean special;
g.nsubroom++;
}
STATIC_OVL void
static void
makerooms()
{
boolean tried_vault = FALSE;
@@ -238,7 +238,7 @@ makerooms()
return;
}
STATIC_OVL void
static void
join(a, b, nxcor)
register int a, b;
boolean nxcor;
@@ -378,7 +378,7 @@ register struct mkroom *aroom;
g.doors[aroom->fdoor].y = y;
}
STATIC_OVL void
static void
dosdoor(x, y, aroom, type)
register xchar x, y;
struct mkroom *aroom;
@@ -445,7 +445,7 @@ int type;
add_door(x, y, aroom);
}
STATIC_OVL boolean
static boolean
place_niche(aroom, dy, xx, yy)
register struct mkroom *aroom;
int *dy, *xx, *yy;
@@ -478,7 +478,7 @@ static NEARDATA const char *trap_engravings[TRAPNUM] = {
(char *) 0, (char *) 0, (char *) 0, (char *) 0, (char *) 0,
};
STATIC_OVL void
static void
makeniche(trap_type)
int trap_type;
{
@@ -543,7 +543,7 @@ int trap_type;
}
}
STATIC_OVL void
static void
make_niches()
{
int ct = rnd((g.nroom >> 1) + 1), dep = depth(&u.uz);
@@ -562,7 +562,7 @@ make_niches()
}
}
STATIC_OVL void
static void
makevtele()
{
makeniche(TELEP_TRAP);
@@ -573,7 +573,7 @@ makevtele()
* special) but it's easier to put it all in one place than make sure
* each type initializes what it needs to separately.
*/
STATIC_OVL void
static void
clear_level_structures()
{
static struct rm zerorm = { cmap_to_glyph(S_stone),
@@ -644,7 +644,7 @@ clear_level_structures()
clear_regions();
}
STATIC_OVL void
static void
makelevel()
{
register struct mkroom *croom, *troom;
@@ -1096,7 +1096,7 @@ struct mkroom *croom;
}
/* Find an unused room for a branch location. */
STATIC_OVL struct mkroom *
static struct mkroom *
find_branch_room(mp)
coord *mp;
{
@@ -1127,7 +1127,7 @@ coord *mp;
}
/* Find the room for (x,y). Return null if not in a room. */
STATIC_OVL struct mkroom *
static struct mkroom *
pos_to_room(x, y)
xchar x, y;
{
@@ -1201,7 +1201,7 @@ xchar x, y; /* location */
g.made_branch = TRUE;
}
STATIC_OVL boolean
static boolean
bydoor(x, y)
register xchar x, y;
{
@@ -1562,7 +1562,7 @@ struct mkroom *croom;
levl[x][y].ladder = up ? LA_UP : LA_DOWN;
}
STATIC_OVL void
static void
mkfount(mazeflag, croom)
int mazeflag;
struct mkroom *croom;
@@ -1588,7 +1588,7 @@ struct mkroom *croom;
g.level.flags.nfountains++;
}
STATIC_OVL void
static void
mksink(croom)
struct mkroom *croom;
{
@@ -1608,7 +1608,7 @@ struct mkroom *croom;
g.level.flags.nsinks++;
}
STATIC_OVL void
static void
mkaltar(croom)
struct mkroom *croom;
{
@@ -1759,7 +1759,7 @@ mkinvokearea()
/* Change level topology. Boulders in the vicinity are eliminated.
* Temporarily overrides vision in the name of a nice effect.
*/
STATIC_OVL void
static void
mkinvpos(x, y, dist)
xchar x, y;
int dist;
@@ -1856,7 +1856,7 @@ int dist;
*
* Ludios will remain isolated until the branch is corrected by this function.
*/
STATIC_OVL void
static void
mk_knox_portal(x, y)
xchar x, y;
{