make style consistent for function ptr arguments

This commit is contained in:
nhmall
2024-02-19 17:21:04 -05:00
parent 688ac6ffbe
commit 0a985459f0
24 changed files with 207 additions and 207 deletions

View File

@@ -8,7 +8,7 @@
static int monmulti(struct monst *, struct obj *, struct obj *);
static void monshoot(struct monst *, struct obj *, struct obj *);
static boolean ucatchgem(struct obj *, struct monst *);
static const char* breathwep_name(int);
static const char *breathwep_name(int);
static boolean drop_throw(struct obj *, boolean, coordxy, coordxy);
static boolean blocking_terrain(coordxy, coordxy);
static int m_lined_up(struct monst *, struct monst *) NONNULLARG12;
@@ -53,7 +53,7 @@ rnd_hallublast(void)
}
boolean
m_has_launcher_and_ammo(struct monst* mtmp)
m_has_launcher_and_ammo(struct monst *mtmp)
{
struct obj *mwep = MON_WEP(mtmp);
@@ -196,7 +196,7 @@ drop_throw(
/* calculate multishot volley count for mtmp throwing otmp (if not ammo) or
shooting otmp with mwep (if otmp is ammo and mwep appropriate launcher) */
static int
monmulti(struct monst* mtmp, struct obj* otmp, struct obj* mwep)
monmulti(struct monst *mtmp, struct obj *otmp, struct obj *mwep)
{
int multishot = 1;
@@ -255,7 +255,7 @@ monmulti(struct monst* mtmp, struct obj* otmp, struct obj* mwep)
/* mtmp throws otmp, or shoots otmp with mwep, at hero or at monster mtarg */
static void
monshoot(struct monst* mtmp, struct obj* otmp, struct obj* mwep)
monshoot(struct monst *mtmp, struct obj *otmp, struct obj *mwep)
{
struct monst *mtarg = gm.mtarget;
int dm = distmin(mtmp->mx, mtmp->my,
@@ -776,7 +776,7 @@ m_throw(
/* Monster throws item at another monster */
int
thrwmm(struct monst* mtmp, struct monst* mtarg)
thrwmm(struct monst *mtmp, struct monst *mtarg)
{
struct obj *otmp, *mwep;
coordxy x, y;
@@ -823,7 +823,7 @@ thrwmm(struct monst* mtmp, struct monst* mtarg)
/* monster spits substance at monster */
int
spitmm(struct monst* mtmp, struct attack* mattk, struct monst* mtarg)
spitmm(struct monst *mtmp, struct attack *mattk, struct monst *mtarg)
{
struct obj *otmp;
@@ -899,7 +899,7 @@ breathwep_name(int typ)
/* monster breathes at monster (ranged) */
int
breamm(struct monst* mtmp, struct attack* mattk, struct monst* mtarg)
breamm(struct monst *mtmp, struct attack *mattk, struct monst *mtarg)
{
int typ = get_atkdam_type(mattk->adtyp);
@@ -960,7 +960,7 @@ breamm(struct monst* mtmp, struct attack* mattk, struct monst* mtarg)
/* remove an entire item from a monster's inventory; destroy that item */
void
m_useupall(struct monst* mon, struct obj* obj)
m_useupall(struct monst *mon, struct obj *obj)
{
extract_from_minvent(mon, obj, TRUE, FALSE);
obfree(obj, (struct obj *) 0);
@@ -968,7 +968,7 @@ m_useupall(struct monst* mon, struct obj* obj)
/* remove one instance of an item from a monster's inventory */
void
m_useup(struct monst* mon, struct obj* obj)
m_useup(struct monst *mon, struct obj *obj)
{
if (obj->quan > 1L) {
obj->quan--;
@@ -980,7 +980,7 @@ m_useup(struct monst* mon, struct obj* obj)
/* monster attempts ranged weapon attack against player */
void
thrwmu(struct monst* mtmp)
thrwmu(struct monst *mtmp)
{
struct obj *otmp, *mwep;
coordxy x, y;
@@ -1065,14 +1065,14 @@ thrwmu(struct monst* mtmp)
/* monster spits substance at you */
int
spitmu(struct monst* mtmp, struct attack* mattk)
spitmu(struct monst *mtmp, struct attack *mattk)
{
return spitmm(mtmp, mattk, &gy.youmonst);
}
/* monster breathes at you (ranged) */
int
breamu(struct monst* mtmp, struct attack* mattk)
breamu(struct monst *mtmp, struct attack *mattk)
{
return breamm(mtmp, mattk, &gy.youmonst);
}
@@ -1173,7 +1173,7 @@ linedup(
}
static int
m_lined_up(struct monst* mtarg, struct monst* mtmp)
m_lined_up(struct monst *mtarg, struct monst *mtmp)
{
boolean utarget = (mtarg == &gy.youmonst);
coordxy tx = utarget ? mtmp->mux : mtarg->mx;
@@ -1195,7 +1195,7 @@ m_lined_up(struct monst* mtarg, struct monst* mtmp)
/* is mtmp in position to use ranged attack on hero? */
boolean
lined_up(struct monst* mtmp)
lined_up(struct monst *mtmp)
{
return m_lined_up(&gy.youmonst, mtmp) ? TRUE : FALSE;
}