NOSTATICFN for src/*

This commit is contained in:
nhkeni
2024-03-14 17:41:51 -04:00
parent d523041b60
commit 9c0ed8ae63
111 changed files with 3871 additions and 3879 deletions

View File

@@ -5,11 +5,11 @@
#include "hack.h"
static int pet_type(void);
static struct permonst * pick_familiar_pm(struct obj *, boolean);
static void set_mon_lastmove(struct monst *);
static int mon_leave(struct monst *) NONNULLARG1;
static boolean keep_mon_accessible(struct monst *);
staticfn int pet_type(void);
staticfn struct permonst * pick_familiar_pm(struct obj *, boolean);
staticfn void set_mon_lastmove(struct monst *);
staticfn int mon_leave(struct monst *) NONNULLARG1;
staticfn boolean keep_mon_accessible(struct monst *);
enum arrival {
Before_you = 0, /* monsters kept on migrating_mons for accessibility;
@@ -63,7 +63,7 @@ initedog(struct monst *mtmp)
u.uconduct.pets++;
}
static int
staticfn int
pet_type(void)
{
if (gu.urole.petnum != NON_PM)
@@ -76,7 +76,7 @@ pet_type(void)
return rn2(2) ? PM_KITTEN : PM_LITTLE_DOG;
}
static struct permonst *
staticfn struct permonst *
pick_familiar_pm(struct obj *otmp, boolean quietly)
{
struct permonst *pm = (struct permonst *) 0;
@@ -235,7 +235,7 @@ makedog(void)
return mtmp;
}
static void
staticfn void
set_mon_lastmove(struct monst *mtmp)
{
mtmp->mlstmv = gm.moves;
@@ -667,7 +667,7 @@ mon_catchup_elapsed_time(
/* bookkeeping when mtmp is about to leave the current level;
common to keepdogs() and migrate_to_level() */
static int
staticfn int
mon_leave(struct monst *mtmp)
{
struct obj *obj;
@@ -706,7 +706,7 @@ mon_leave(struct monst *mtmp)
/* when hero leaves a level, some monsters should be placed on the
migrating_mons list instead of being stashed inside the level's file */
static boolean
staticfn boolean
keep_mon_accessible(struct monst *mon)
{
/* the Wizard is kept accessible so that his harassment can fetch