pointer decl style consistency; use any_types enum

This commit is contained in:
nhmall
2025-03-06 07:20:16 -05:00
parent 78ca37290b
commit ceee6aff31
8 changed files with 9 additions and 9 deletions

View File

@@ -249,7 +249,7 @@ enum hlattribs {
struct hilite_s { struct hilite_s {
enum statusfields fld; enum statusfields fld;
boolean set; boolean set;
unsigned anytype; enum any_types anytype;
anything value; anything value;
int behavior; int behavior;
char textmatch[MAXVALWIDTH]; char textmatch[MAXVALWIDTH];
@@ -271,7 +271,7 @@ struct istat_s {
boolean chg; /* need to recalc time? */ boolean chg; /* need to recalc time? */
boolean percent_matters; boolean percent_matters;
short percent_value; short percent_value;
unsigned anytype; enum any_types anytype;
anything a, rawval; anything a, rawval;
char *val; char *val;
int valwidth; int valwidth;

View File

@@ -230,7 +230,7 @@ static const struct instance_globals_a g_init_a = {
static const struct instance_globals_b g_init_b = { static const struct instance_globals_b g_init_b = {
/* botl.c */ /* botl.c */
{ { { NULL, NULL, 0L, FALSE, FALSE, 0, 0U, { 0 }, { 0 }, NULL, 0, 0, 0 { { { NULL, NULL, 0L, FALSE, FALSE, 0, ANY_INVALID, { 0 }, { 0 }, NULL, 0, 0, 0
#ifdef STATUS_HILITES #ifdef STATUS_HILITES
, UNDEFINED_PTR, UNDEFINED_PTR , UNDEFINED_PTR, UNDEFINED_PTR
#endif #endif

View File

@@ -1486,7 +1486,7 @@ meatmetal(struct monst *mtmp)
/* monster eats a pile of objects */ /* monster eats a pile of objects */
int int
meatobj(struct monst* mtmp) /* for gelatinous cubes */ meatobj(struct monst *mtmp) /* for gelatinous cubes */
{ {
struct obj *otmp, *otmp2; struct obj *otmp, *otmp2;
struct permonst *ptr, *original_ptr = mtmp->data; struct permonst *ptr, *original_ptr = mtmp->data;

View File

@@ -69,7 +69,7 @@ dev_name(void)
} }
staticfn void staticfn void
get_mplname(struct monst* mtmp, char *nam) get_mplname(struct monst *mtmp, char *nam)
{ {
boolean fmlkind = is_female(mtmp->data); boolean fmlkind = is_female(mtmp->data);
const char *devnam; const char *devnam;

View File

@@ -159,7 +159,7 @@ calm_nymphs(int distance)
/* Awake soldiers anywhere the level (and any nearby monster). */ /* Awake soldiers anywhere the level (and any nearby monster). */
void void
awaken_soldiers(struct monst* bugler /* monster that played instrument */) awaken_soldiers(struct monst *bugler /* monster that played instrument */)
{ {
struct monst *mtmp; struct monst *mtmp;
int distance, distm; int distance, distm;

View File

@@ -347,7 +347,7 @@ shuffle_all(void)
/* Return TRUE if the provided string matches the unidentified description of /* Return TRUE if the provided string matches the unidentified description of
* the provided object. */ * the provided object. */
boolean boolean
objdescr_is(struct obj* obj, const char * descr) objdescr_is(struct obj *obj, const char *descr)
{ {
const char *objdescr; const char *objdescr;

View File

@@ -2323,7 +2323,7 @@ drop_boulder_on_monster(coordxy x, coordxy y, boolean confused, boolean byu)
/* overcharging any wand or zapping/engraving cursed wand */ /* overcharging any wand or zapping/engraving cursed wand */
void void
wand_explode(struct obj* obj, int chg /* recharging */) wand_explode(struct obj *obj, int chg /* recharging */)
{ {
const char *expl = !chg ? "suddenly" : "vibrates violently and"; const char *expl = !chg ? "suddenly" : "vibrates violently and";
int dmg, n, k; int dmg, n, k;

View File

@@ -2726,7 +2726,7 @@ DISABLE_WARNING_FORMAT_NONLITERAL
/* to support '#stats' wizard-mode command */ /* to support '#stats' wizard-mode command */
void void
timer_stats(const char* hdrfmt, char *hdrbuf, long *count, long *size) timer_stats(const char *hdrfmt, char *hdrbuf, long *count, long *size)
{ {
timer_element *te; timer_element *te;