remove STATIC_DCL, STATIC_OVL, STATIC_VAR, STATIC_PTR from core
This commit is contained in:
64
src/uhitm.c
64
src/uhitm.c
@@ -5,24 +5,24 @@
|
||||
|
||||
#include "hack.h"
|
||||
|
||||
STATIC_DCL boolean FDECL(known_hitum, (struct monst *, struct obj *, int *,
|
||||
static boolean FDECL(known_hitum, (struct monst *, struct obj *, int *,
|
||||
int, int, struct attack *, int));
|
||||
STATIC_DCL boolean FDECL(theft_petrifies, (struct obj *));
|
||||
STATIC_DCL void FDECL(steal_it, (struct monst *, struct attack *));
|
||||
STATIC_DCL boolean FDECL(hitum_cleave, (struct monst *, struct attack *));
|
||||
STATIC_DCL boolean FDECL(hitum, (struct monst *, struct attack *));
|
||||
STATIC_DCL boolean FDECL(hmon_hitmon, (struct monst *, struct obj *, int,
|
||||
static boolean FDECL(theft_petrifies, (struct obj *));
|
||||
static void FDECL(steal_it, (struct monst *, struct attack *));
|
||||
static boolean FDECL(hitum_cleave, (struct monst *, struct attack *));
|
||||
static boolean FDECL(hitum, (struct monst *, struct attack *));
|
||||
static boolean FDECL(hmon_hitmon, (struct monst *, struct obj *, int,
|
||||
int));
|
||||
STATIC_DCL int FDECL(joust, (struct monst *, struct obj *));
|
||||
STATIC_DCL void NDECL(demonpet);
|
||||
STATIC_DCL boolean FDECL(m_slips_free, (struct monst *, struct attack *));
|
||||
STATIC_DCL int FDECL(explum, (struct monst *, struct attack *));
|
||||
STATIC_DCL void FDECL(start_engulf, (struct monst *));
|
||||
STATIC_DCL void NDECL(end_engulf);
|
||||
STATIC_DCL int FDECL(gulpum, (struct monst *, struct attack *));
|
||||
STATIC_DCL boolean FDECL(hmonas, (struct monst *));
|
||||
STATIC_DCL void FDECL(nohandglow, (struct monst *));
|
||||
STATIC_DCL boolean FDECL(shade_aware, (struct obj *));
|
||||
static int FDECL(joust, (struct monst *, struct obj *));
|
||||
static void NDECL(demonpet);
|
||||
static boolean FDECL(m_slips_free, (struct monst *, struct attack *));
|
||||
static int FDECL(explum, (struct monst *, struct attack *));
|
||||
static void FDECL(start_engulf, (struct monst *));
|
||||
static void NDECL(end_engulf);
|
||||
static int FDECL(gulpum, (struct monst *, struct attack *));
|
||||
static boolean FDECL(hmonas, (struct monst *));
|
||||
static void FDECL(nohandglow, (struct monst *));
|
||||
static boolean FDECL(shade_aware, (struct obj *));
|
||||
|
||||
#define PROJECTILE(obj) ((obj) && is_ammo(obj))
|
||||
|
||||
@@ -453,7 +453,7 @@ register struct monst *mtmp;
|
||||
}
|
||||
|
||||
/* really hit target monster; returns TRUE if it still lives */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
known_hitum(mon, weapon, mhit, rollneeded, armorpenalty, uattk, dieroll)
|
||||
register struct monst *mon;
|
||||
struct obj *weapon;
|
||||
@@ -513,7 +513,7 @@ int dieroll;
|
||||
|
||||
/* hit the monster next to you and the monsters to the left and right of it;
|
||||
return False if the primary target is killed, True otherwise */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
hitum_cleave(target, uattk)
|
||||
struct monst *target; /* non-Null; forcefight at nothing doesn't cleave... */
|
||||
struct attack *uattk; /* ... but we don't enforce that here; Null works ok */
|
||||
@@ -594,7 +594,7 @@ struct attack *uattk; /* ... but we don't enforce that here; Null works ok */
|
||||
}
|
||||
|
||||
/* hit target monster; returns TRUE if it still lives */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
hitum(mon, uattk)
|
||||
struct monst *mon;
|
||||
struct attack *uattk;
|
||||
@@ -660,7 +660,7 @@ int dieroll;
|
||||
}
|
||||
|
||||
/* guts of hmon() */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
hmon_hitmon(mon, obj, thrown, dieroll)
|
||||
struct monst *mon;
|
||||
struct obj *obj;
|
||||
@@ -1339,7 +1339,7 @@ int dieroll;
|
||||
return destroyed ? FALSE : TRUE;
|
||||
}
|
||||
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
shade_aware(obj)
|
||||
struct obj *obj;
|
||||
{
|
||||
@@ -1364,7 +1364,7 @@ struct obj *obj;
|
||||
|
||||
/* check whether slippery clothing protects from hug or wrap attack */
|
||||
/* [currently assumes that you are the attacker] */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
m_slips_free(mdef, mattk)
|
||||
struct monst *mdef;
|
||||
struct attack *mattk;
|
||||
@@ -1408,7 +1408,7 @@ struct attack *mattk;
|
||||
|
||||
/* used when hitting a monster with a lance while mounted;
|
||||
1: joust hit; 0: ordinary hit; -1: joust but break lance */
|
||||
STATIC_OVL int
|
||||
static int
|
||||
joust(mon, obj)
|
||||
struct monst *mon; /* target */
|
||||
struct obj *obj; /* weapon */
|
||||
@@ -1446,7 +1446,7 @@ struct obj *obj; /* weapon */
|
||||
* Complex."
|
||||
* Pulling it out makes it work.
|
||||
*/
|
||||
STATIC_OVL void
|
||||
static void
|
||||
demonpet()
|
||||
{
|
||||
int i;
|
||||
@@ -1461,7 +1461,7 @@ demonpet()
|
||||
exercise(A_WIS, TRUE);
|
||||
}
|
||||
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
theft_petrifies(otmp)
|
||||
struct obj *otmp;
|
||||
{
|
||||
@@ -1488,7 +1488,7 @@ struct obj *otmp;
|
||||
* If the target is wearing body armor, take all of its possessions;
|
||||
* otherwise, take one object. [Is this really the behavior we want?]
|
||||
*/
|
||||
STATIC_OVL void
|
||||
static void
|
||||
steal_it(mdef, mattk)
|
||||
struct monst *mdef;
|
||||
struct attack *mattk;
|
||||
@@ -1998,7 +1998,7 @@ int specialdmg; /* blessed and/or silver bonus against various things */
|
||||
return 1;
|
||||
}
|
||||
|
||||
STATIC_OVL int
|
||||
static int
|
||||
explum(mdef, mattk)
|
||||
register struct monst *mdef;
|
||||
register struct attack *mattk;
|
||||
@@ -2051,7 +2051,7 @@ register struct attack *mattk;
|
||||
return 1;
|
||||
}
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
start_engulf(mdef)
|
||||
struct monst *mdef;
|
||||
{
|
||||
@@ -2065,7 +2065,7 @@ struct monst *mdef;
|
||||
delay_output();
|
||||
}
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
end_engulf()
|
||||
{
|
||||
if (!Invisible) {
|
||||
@@ -2074,7 +2074,7 @@ end_engulf()
|
||||
}
|
||||
}
|
||||
|
||||
STATIC_OVL int
|
||||
static int
|
||||
gulpum(mdef, mattk)
|
||||
register struct monst *mdef;
|
||||
register struct attack *mattk;
|
||||
@@ -2312,7 +2312,7 @@ boolean wouldhavehit;
|
||||
}
|
||||
|
||||
/* attack monster as a monster; returns True if mon survives */
|
||||
STATIC_OVL boolean
|
||||
static boolean
|
||||
hmonas(mon)
|
||||
register struct monst *mon;
|
||||
{
|
||||
@@ -3045,7 +3045,7 @@ struct monst *mtmp;
|
||||
map_invisible(mtmp->mx, mtmp->my);
|
||||
}
|
||||
|
||||
STATIC_OVL void
|
||||
static void
|
||||
nohandglow(mon)
|
||||
struct monst *mon;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user