remove STATIC_DCL, STATIC_OVL, STATIC_VAR, STATIC_PTR from core
This commit is contained in:
44
src/hack.c
44
src/hack.c
@@ -7,17 +7,17 @@
|
||||
|
||||
/* #define DEBUG */ /* uncomment for debugging */
|
||||
|
||||
STATIC_DCL void NDECL(maybe_wail);
|
||||
STATIC_DCL int NDECL(moverock);
|
||||
STATIC_DCL int FDECL(still_chewing, (XCHAR_P, XCHAR_P));
|
||||
STATIC_DCL void NDECL(dosinkfall);
|
||||
STATIC_DCL boolean FDECL(findtravelpath, (int));
|
||||
STATIC_DCL boolean FDECL(trapmove, (int, int, struct trap *));
|
||||
STATIC_DCL struct monst *FDECL(monstinroom, (struct permonst *, int));
|
||||
STATIC_DCL boolean FDECL(doorless_door, (int, int));
|
||||
STATIC_DCL void FDECL(move_update, (BOOLEAN_P));
|
||||
STATIC_DCL void FDECL(maybe_smudge_engr, (int, int, int, int));
|
||||
STATIC_DCL void NDECL(domove_core);
|
||||
static void NDECL(maybe_wail);
|
||||
static int NDECL(moverock);
|
||||
static int FDECL(still_chewing, (XCHAR_P, XCHAR_P));
|
||||
static void NDECL(dosinkfall);
|
||||
static boolean FDECL(findtravelpath, (int));
|
||||
static boolean FDECL(trapmove, (int, int, struct trap *));
|
||||
static struct monst *FDECL(monstinroom, (struct permonst *, int));
|
||||
static boolean FDECL(doorless_door, (int, int));
|
||||
static void FDECL(move_update, (BOOLEAN_P));
|
||||
static void FDECL(maybe_smudge_engr, (int, int, int, int));
|
||||
static void NDECL(domove_core);
|
||||
|
||||
#define IS_SHOP(x) (g.rooms[x].rtype >= SHOPBASE)
|
||||
|
||||
@@ -99,7 +99,7 @@ const char *msg;
|
||||
return revived;
|
||||
}
|
||||
|
||||
STATIC_OVL int
|
||||
static int
|
||||
moverock()
|
||||
{
|
||||
register xchar rx, ry, sx, sy;
|
||||
@@ -366,7 +366,7 @@ moverock()
|
||||
* Chew on a wall, door, or boulder. [What about statues?]
|
||||
* Returns TRUE if still eating, FALSE when done.
|
||||
*/
|
||||
STATIC_OVL int
|
||||
static int
|
||||
still_chewing(x, y)
|
||||
xchar x, y;
|
||||
{
|
||||
@@ -531,7 +531,7 @@ register xchar ox, oy;
|
||||
|
||||
static NEARDATA const char fell_on_sink[] = "fell onto a sink";
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
dosinkfall()
|
||||
{
|
||||
register struct obj *obj;
|
||||
@@ -908,7 +908,7 @@ int mode;
|
||||
* inaccessible locations as valid intermediate path points.
|
||||
* Returns TRUE if a path was found.
|
||||
*/
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
findtravelpath(mode)
|
||||
int mode;
|
||||
{
|
||||
@@ -1173,7 +1173,7 @@ int x,y;
|
||||
/* try to escape being stuck in a trapped state by walking out of it;
|
||||
return true iff moving should continue to intended destination
|
||||
(all failures and most successful escapes leave hero at original spot) */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
trapmove(x, y, desttrap)
|
||||
int x, y; /* targetted destination, <u.ux+u.dx,u.uy+u.dy> */
|
||||
struct trap *desttrap; /* nonnull if another trap at <x,y> */
|
||||
@@ -1341,7 +1341,7 @@ domove()
|
||||
g.domove_attempting = 0L;
|
||||
}
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
domove_core()
|
||||
{
|
||||
register struct monst *mtmp;
|
||||
@@ -1939,7 +1939,7 @@ domove_core()
|
||||
}
|
||||
}
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
maybe_smudge_engr(x1,y1,x2,y2)
|
||||
int x1, y1, x2, y2;
|
||||
{
|
||||
@@ -2267,7 +2267,7 @@ boolean pick;
|
||||
}
|
||||
|
||||
/* returns first matching monster */
|
||||
STATIC_OVL struct monst *
|
||||
static struct monst *
|
||||
monstinroom(mdat, roomno)
|
||||
struct permonst *mdat;
|
||||
int roomno;
|
||||
@@ -2378,7 +2378,7 @@ register int x, y;
|
||||
return !has_subrooms;
|
||||
}
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
move_update(newlev)
|
||||
register boolean newlev;
|
||||
{
|
||||
@@ -2810,7 +2810,7 @@ lookaround()
|
||||
}
|
||||
|
||||
/* check for a doorway which lacks its door (NODOOR or BROKEN) */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
doorless_door(x, y)
|
||||
int x, y;
|
||||
{
|
||||
@@ -2925,7 +2925,7 @@ const char *msg_override;
|
||||
}
|
||||
}
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
maybe_wail()
|
||||
{
|
||||
static short powers[] = { TELEPORT, SEE_INVIS, POISON_RES, COLD_RES,
|
||||
|
||||
Reference in New Issue
Block a user