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

@@ -19,20 +19,20 @@
#include "hack.h"
static void get_wall_for_db(coordxy *, coordxy *);
static struct entity *e_at(coordxy, coordxy);
static void m_to_e(struct monst *, coordxy, coordxy, struct entity *);
static void u_to_e(struct entity *);
static void set_entity(coordxy, coordxy, struct entity *);
static const char *e_nam(struct entity *);
static const char *E_phrase(struct entity *, const char *);
static boolean e_survives_at(struct entity *, coordxy, coordxy);
static void e_died(struct entity *, int, int);
static boolean automiss(struct entity *);
static boolean e_missed(struct entity *, boolean);
static boolean e_jumps(struct entity *);
static void do_entity(struct entity *);
static void nokiller(void);
staticfn void get_wall_for_db(coordxy *, coordxy *);
staticfn struct entity *e_at(coordxy, coordxy);
staticfn void m_to_e(struct monst *, coordxy, coordxy, struct entity *);
staticfn void u_to_e(struct entity *);
staticfn void set_entity(coordxy, coordxy, struct entity *);
staticfn const char *e_nam(struct entity *);
staticfn const char *E_phrase(struct entity *, const char *);
staticfn boolean e_survives_at(struct entity *, coordxy, coordxy);
staticfn void e_died(struct entity *, int, int);
staticfn boolean automiss(struct entity *);
staticfn boolean e_missed(struct entity *, boolean);
staticfn boolean e_jumps(struct entity *);
staticfn void do_entity(struct entity *);
staticfn void nokiller(void);
boolean
is_waterwall(coordxy x, coordxy y)
@@ -205,7 +205,7 @@ find_drawbridge(coordxy *x, coordxy *y)
/*
* Find the drawbridge wall associated with a drawbridge.
*/
static void
staticfn void
get_wall_for_db(coordxy *x, coordxy *y)
{
switch (levl[*x][*y].drawbridgemask & DB_DIR) {
@@ -279,7 +279,7 @@ create_drawbridge(coordxy x, coordxy y, int dir, boolean flag)
return TRUE;
}
static struct entity *
staticfn struct entity *
e_at(coordxy x, coordxy y)
{
int entitycnt;
@@ -296,7 +296,7 @@ e_at(coordxy x, coordxy y)
: &(go.occupants[entitycnt]);
}
static void
staticfn void
m_to_e(struct monst *mtmp, coordxy x, coordxy y, struct entity *etmp)
{
etmp->emon = mtmp;
@@ -313,7 +313,7 @@ m_to_e(struct monst *mtmp, coordxy x, coordxy y, struct entity *etmp)
}
}
static void
staticfn void
u_to_e(struct entity *etmp)
{
etmp->emon = &gy.youmonst;
@@ -322,7 +322,7 @@ u_to_e(struct entity *etmp)
etmp->edata = gy.youmonst.data;
}
static void
staticfn void
set_entity(
coordxy x, coordxy y, /* location of span or portcullis */
struct entity *etmp) /* pointer to occupants[0] or occupants[1] */
@@ -343,7 +343,7 @@ set_entity(
/* #define e_strg(etmp, func) (is_u(etmp) ? (char *) 0 : func(etmp->emon)) */
static const char *
staticfn const char *
e_nam(struct entity *etmp)
{
return is_u(etmp) ? "you" : mon_nam(etmp->emon);
@@ -353,7 +353,7 @@ e_nam(struct entity *etmp)
* Generates capitalized entity name, makes 2nd -> 3rd person conversion on
* verb, where necessary.
*/
static const char *
staticfn const char *
E_phrase(struct entity *etmp, const char *verb)
{
static char wholebuf[80];
@@ -372,7 +372,7 @@ E_phrase(struct entity *etmp, const char *verb)
/*
* Simple-minded "can it be here?" routine
*/
static boolean
staticfn boolean
e_survives_at(struct entity *etmp, coordxy x, coordxy y)
{
if (noncorporeal(etmp->edata))
@@ -394,7 +394,7 @@ e_survives_at(struct entity *etmp, coordxy x, coordxy y)
return TRUE;
}
static void
staticfn void
e_died(struct entity *etmp, int xkill_flags, int how)
{
if (is_u(etmp)) {
@@ -456,7 +456,7 @@ e_died(struct entity *etmp, int xkill_flags, int how)
/*
* These are never directly affected by a bridge or portcullis.
*/
static boolean
staticfn boolean
automiss(struct entity *etmp)
{
return (boolean) ((is_u(etmp) ? Passes_walls : passes_walls(etmp->edata))
@@ -466,7 +466,7 @@ automiss(struct entity *etmp)
/*
* Does falling drawbridge or portcullis miss etmp?
*/
static boolean
staticfn boolean
e_missed(struct entity *etmp, boolean chunks)
{
int misses;
@@ -501,7 +501,7 @@ e_missed(struct entity *etmp, boolean chunks)
/*
* Can etmp jump from death?
*/
static boolean
staticfn boolean
e_jumps(struct entity *etmp)
{
int tmp = 4; /* out of 10 */
@@ -524,7 +524,7 @@ e_jumps(struct entity *etmp)
return (tmp >= rnd(10)) ? TRUE : FALSE;
}
static void
staticfn void
do_entity(struct entity *etmp)
{
coordxy newx, newy, oldx, oldy;
@@ -733,7 +733,7 @@ do_entity(struct entity *etmp)
}
/* clear stale reason for death and both 'entities' before returning */
static void
staticfn void
nokiller(void)
{
gk.killer.name[0] = '\0';