remove register from variable declarations

This commit is contained in:
nhmall
2024-02-19 16:30:07 -05:00
parent 6f569f0a27
commit 688ac6ffbe
113 changed files with 836 additions and 835 deletions

View File

@@ -244,8 +244,8 @@ artifact_name(
short *otyp_p, /* secondary output */
boolean fuzzy) /* whether to allow extra or omitted spaces or dashes */
{
register const struct artifact *a;
register const char *aname;
const struct artifact *a;
const char *aname;
if (!strncmpi(name, "the ", 4))
name += 4;
@@ -268,7 +268,7 @@ artifact_name(
boolean
exist_artifact(int otyp, const char *name)
{
register const struct artifact *a;
const struct artifact *a;
struct arti_info *arex;
if (otyp && *name)
@@ -287,7 +287,7 @@ artifact_exists(
boolean mod, /* True: exists, False: being un-created */
unsigned flgs) /* ONAME_xyz flags; not relevant if !mod */
{
register const struct artifact *a;
const struct artifact *a;
if (otmp && *name)
for (a = artilist + 1; a->otyp; a++)
@@ -487,7 +487,7 @@ shade_glare(struct obj *obj)
boolean
restrict_name(struct obj *otmp, const char *name)
{
register const struct artifact *a;
const struct artifact *a;
const char *aname, *odesc, *other;
boolean sametype[NUM_OBJECTS];
int i, lo, hi, otyp = otmp->otyp, ocls = objects[otyp].oc_class;
@@ -629,10 +629,10 @@ void
set_artifact_intrinsic(struct obj *otmp, boolean on, long wp_mask)
{
long *mask = 0;
register const struct artifact *art, *oart = get_artifact(otmp);
register struct obj *obj;
register uchar dtyp;
register long spfx;
const struct artifact *art, *oart = get_artifact(otmp);
struct obj *obj;
uchar dtyp;
long spfx;
if (oart == &artilist[ART_NONARTIFACT])
return;
@@ -809,7 +809,7 @@ static boolean touch_blasted; /* for retouch_object() */
int
touch_artifact(struct obj *obj, struct monst *mon)
{
register const struct artifact *oart = get_artifact(obj);
const struct artifact *oart = get_artifact(obj);
boolean badclass, badalign, self_willed, yours;
touch_blasted = FALSE;
@@ -880,7 +880,7 @@ touch_artifact(struct obj *obj, struct monst *mon)
boolean
arti_immune(struct obj *obj, int dtyp)
{
register const struct artifact *weap = get_artifact(obj);
const struct artifact *weap = get_artifact(obj);
if (weap == &artilist[ART_NONARTIFACT])
return FALSE;
@@ -992,7 +992,7 @@ spec_abon(struct obj *otmp, struct monst *mon)
int
spec_dbon(struct obj *otmp, struct monst *mon, int tmp)
{
register const struct artifact *weap = get_artifact(otmp);
const struct artifact *weap = get_artifact(otmp);
if ((weap == &artilist[ART_NONARTIFACT])
|| (weap->attk.adtyp == AD_PHYS /* check for `NO_ATTK' */
@@ -1665,7 +1665,7 @@ doinvoke(void)
static int
arti_invoke(struct obj *obj)
{
register const struct artifact *oart = get_artifact(obj);
const struct artifact *oart = get_artifact(obj);
if (!obj) {
impossible("arti_invoke without obj");
return ECMD_OK;