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

@@ -65,7 +65,7 @@ learnscrolltyp(short scrolltyp)
/* also called from teleport.c for scroll of teleportation */
void
learnscroll(struct obj* sobj)
learnscroll(struct obj *sobj)
{
/* it's implied that sobj->dknown is set;
we couldn't be reading this scroll otherwise */
@@ -75,7 +75,7 @@ learnscroll(struct obj* sobj)
/* max spe is +99, min is -99 */
static void
cap_spe(struct obj* obj)
cap_spe(struct obj *obj)
{
if (obj) {
if (abs(obj->spe) > SPE_LIM)
@@ -84,7 +84,7 @@ cap_spe(struct obj* obj)
}
static char *
erode_obj_text(struct obj* otmp, char* buf)
erode_obj_text(struct obj *otmp, char *buf)
{
int erosion = greatest_erosion(otmp);
@@ -95,7 +95,7 @@ erode_obj_text(struct obj* otmp, char* buf)
}
char *
tshirt_text(struct obj* tshirt, char* buf)
tshirt_text(struct obj *tshirt, char *buf)
{
static const char *const shirt_msgs[] = {
/* Scott Bigham */
@@ -248,7 +248,7 @@ hawaiian_design(struct obj *shirt, char *buf)
}
char *
apron_text(struct obj* apron, char* buf)
apron_text(struct obj *apron, char *buf)
{
static const char *const apron_msgs[] = {
"Kiss the cook",
@@ -290,7 +290,7 @@ static const char *const candy_wrappers[] = {
/* return the text of a candy bar's wrapper */
const char *
candy_wrapper_text(struct obj* obj)
candy_wrapper_text(struct obj *obj)
{
/* modulo operation is just bullet proofing; 'spe' is already in range */
return candy_wrappers[obj->spe % SIZE(candy_wrappers)];
@@ -298,7 +298,7 @@ candy_wrapper_text(struct obj* obj)
/* assign a wrapper to a candy bar stack */
void
assign_candy_wrapper(struct obj* obj)
assign_candy_wrapper(struct obj *obj)
{
if (obj->otyp == CANDY_BAR) {
/* skips candy_wrappers[0] */
@@ -309,7 +309,7 @@ assign_candy_wrapper(struct obj* obj)
/* getobj callback for object to read */
static int
read_ok(struct obj* obj)
read_ok(struct obj *obj)
{
if (!obj)
return GETOBJ_EXCLUDE;
@@ -644,7 +644,7 @@ doread(void)
RESTORE_WARNING_FORMAT_NONLITERAL
static void
stripspe(struct obj* obj)
stripspe(struct obj *obj)
{
if (obj->blessed || obj->spe <= 0) {
pline1(nothing_happens);
@@ -659,13 +659,13 @@ stripspe(struct obj* obj)
}
static void
p_glow1(struct obj* otmp)
p_glow1(struct obj *otmp)
{
pline("%s briefly.", Yobjnam2(otmp, Blind ? "vibrate" : "glow"));
}
static void
p_glow2(struct obj* otmp, const char* color)
p_glow2(struct obj *otmp, const char *color)
{
pline("%s%s%s for a moment.", Yobjnam2(otmp, Blind ? "vibrate" : "glow"),
Blind ? "" : " ", Blind ? "" : hcolor(color));
@@ -673,7 +673,7 @@ p_glow2(struct obj* otmp, const char* color)
/* getobj callback for object to charge */
int
charge_ok(struct obj* obj)
charge_ok(struct obj *obj)
{
if (!obj)
return GETOBJ_EXCLUDE;
@@ -713,7 +713,7 @@ charge_ok(struct obj* obj)
/* recharge an object; curse_bless is -1 if the recharging implement
was cursed, +1 if blessed, 0 otherwise. */
void
recharge(struct obj* obj, int curse_bless)
recharge(struct obj *obj, int curse_bless)
{
int n;
boolean is_cursed, is_blessed;
@@ -2882,7 +2882,7 @@ do_genocide(
}
void
punish(struct obj* sobj)
punish(struct obj *sobj)
{
/* angrygods() calls this with NULL sobj arg */
struct obj *reuse_ball = (sobj && sobj->otyp == HEAVY_IRON_BALL)