NOSTATICFN for src/*
This commit is contained in:
@@ -11,15 +11,15 @@
|
||||
#define DOG_WEAK 500
|
||||
#define DOG_STARVE 750
|
||||
|
||||
static void dog_starve(struct monst *);
|
||||
static boolean dog_hunger(struct monst *, struct edog *);
|
||||
static int dog_invent(struct monst *, struct edog *, int);
|
||||
static int dog_goal(struct monst *, struct edog *, int, int, int);
|
||||
static struct monst *find_targ(struct monst *, int, int, int);
|
||||
static int find_friends(struct monst *, struct monst *, int);
|
||||
static struct monst *best_target(struct monst *);
|
||||
static long score_targ(struct monst *, struct monst *);
|
||||
static boolean can_reach_location(struct monst *, coordxy, coordxy, coordxy,
|
||||
staticfn void dog_starve(struct monst *);
|
||||
staticfn boolean dog_hunger(struct monst *, struct edog *);
|
||||
staticfn int dog_invent(struct monst *, struct edog *, int);
|
||||
staticfn int dog_goal(struct monst *, struct edog *, int, int, int);
|
||||
staticfn struct monst *find_targ(struct monst *, int, int, int);
|
||||
staticfn int find_friends(struct monst *, struct monst *, int);
|
||||
staticfn struct monst *best_target(struct monst *);
|
||||
staticfn long score_targ(struct monst *, struct monst *);
|
||||
staticfn boolean can_reach_location(struct monst *, coordxy, coordxy, coordxy,
|
||||
coordxy) NONNULLARG1;
|
||||
|
||||
/* pick a carried item for pet to drop */
|
||||
@@ -135,7 +135,7 @@ static NEARDATA const char nofetch[] = { BALL_CLASS, CHAIN_CLASS, ROCK_CLASS,
|
||||
0 };
|
||||
|
||||
|
||||
static void wantdoor(coordxy, coordxy, genericptr_t);
|
||||
staticfn void wantdoor(coordxy, coordxy, genericptr_t);
|
||||
|
||||
boolean
|
||||
cursed_object_at(coordxy x, coordxy y)
|
||||
@@ -325,7 +325,7 @@ dog_eat(struct monst *mtmp,
|
||||
return (DEADMONSTER(mtmp)) ? 2 : 1;
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
dog_starve(struct monst *mtmp)
|
||||
{
|
||||
if (mtmp->mleashed && mtmp != u.usteed)
|
||||
@@ -339,7 +339,7 @@ dog_starve(struct monst *mtmp)
|
||||
}
|
||||
|
||||
/* hunger effects -- returns TRUE on starvation */
|
||||
static boolean
|
||||
staticfn boolean
|
||||
dog_hunger(struct monst *mtmp, struct edog *edog)
|
||||
{
|
||||
if (gm.moves > edog->hungrytime + DOG_WEAK) {
|
||||
@@ -377,7 +377,7 @@ dog_hunger(struct monst *mtmp, struct edog *edog)
|
||||
/* do something with object (drop, pick up, eat) at current position
|
||||
* returns 1 if object eaten (since that counts as dog's move), 2 if died
|
||||
*/
|
||||
static int
|
||||
staticfn int
|
||||
dog_invent(struct monst *mtmp, struct edog *edog, int udist)
|
||||
{
|
||||
coordxy omx, omy;
|
||||
@@ -459,7 +459,7 @@ dog_invent(struct monst *mtmp, struct edog *edog, int udist)
|
||||
|
||||
/* set dog's goal -- gtyp, gx, gy;
|
||||
returns -1/0/1 (dog's desire to approach player) or -2 (abort move) */
|
||||
static int
|
||||
staticfn int
|
||||
dog_goal(
|
||||
struct monst *mtmp,
|
||||
struct edog *edog,
|
||||
@@ -626,7 +626,7 @@ dog_goal(
|
||||
#undef FARAWAY
|
||||
}
|
||||
|
||||
static struct monst *
|
||||
staticfn struct monst *
|
||||
find_targ(
|
||||
struct monst *mtmp,
|
||||
int dx, int dy,
|
||||
@@ -670,7 +670,7 @@ find_targ(
|
||||
return targ;
|
||||
}
|
||||
|
||||
static int
|
||||
staticfn int
|
||||
find_friends(struct monst *mtmp, struct monst *mtarg, int maxdist)
|
||||
{
|
||||
struct monst *pal;
|
||||
@@ -714,7 +714,7 @@ find_friends(struct monst *mtmp, struct monst *mtarg, int maxdist)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static long
|
||||
staticfn long
|
||||
score_targ(struct monst *mtmp, struct monst *mtarg)
|
||||
{
|
||||
long score = 0L;
|
||||
@@ -814,7 +814,7 @@ score_targ(struct monst *mtmp, struct monst *mtarg)
|
||||
return score;
|
||||
}
|
||||
|
||||
static struct monst *
|
||||
staticfn struct monst *
|
||||
best_target(struct monst *mtmp) /* Pet */
|
||||
{
|
||||
int dx, dy;
|
||||
@@ -1331,7 +1331,7 @@ could_reach_item(struct monst *mon, coordxy nx, coordxy ny)
|
||||
* Since the maximum food distance is 5, this should never be more than 5
|
||||
* calls deep.
|
||||
*/
|
||||
static boolean
|
||||
staticfn boolean
|
||||
can_reach_location(struct monst *mon, coordxy mx, coordxy my, coordxy fx, coordxy fy)
|
||||
{
|
||||
int i, j;
|
||||
@@ -1367,7 +1367,7 @@ can_reach_location(struct monst *mon, coordxy mx, coordxy my, coordxy fx, coordx
|
||||
}
|
||||
|
||||
/* do_clear_area client */
|
||||
static void
|
||||
staticfn void
|
||||
wantdoor(coordxy x, coordxy y, genericptr_t distance)
|
||||
{
|
||||
int ndist, *dist_ptr = (int *) distance;
|
||||
|
||||
Reference in New Issue
Block a user