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

@@ -93,7 +93,7 @@ obj_to_any(struct obj *obj)
boolean
revive_nasty(coordxy x, coordxy y, const char *msg)
{
register struct obj *otmp, *otmp2;
struct obj *otmp, *otmp2;
struct monst *mtmp;
coord cc;
boolean revived = FALSE;
@@ -153,7 +153,7 @@ could_move_onto_boulder(coordxy sx, coordxy sy)
static int
moverock(void)
{
register coordxy rx, ry, sx, sy;
coordxy rx, ry, sx, sy;
struct obj *otmp;
struct trap *ttmp;
struct monst *mtmp, *shkp;
@@ -838,7 +838,7 @@ dosinkfall(void)
/* intended to be called only on ROCKs or TREEs */
boolean
may_dig(register coordxy x, register coordxy y)
may_dig(coordxy x, coordxy y)
{
struct rm *lev = &levl[x][y];
@@ -847,14 +847,14 @@ may_dig(register coordxy x, register coordxy y)
}
boolean
may_passwall(register coordxy x, register coordxy y)
may_passwall(coordxy x, coordxy y)
{
return (boolean) !(IS_STWALL(levl[x][y].typ)
&& (levl[x][y].wall_info & W_NONPASSWALL));
}
boolean
bad_rock(struct permonst *mdat, register coordxy x, register coordxy y)
bad_rock(struct permonst *mdat, coordxy x, coordxy y)
{
return (boolean) ((Sokoban && sobj_at(BOULDER, x, y))
|| (IS_ROCK(levl[x][y].typ)
@@ -2296,7 +2296,7 @@ static boolean
impaired_movement(coordxy *x, coordxy *y)
{
if (u_maybe_impaired()) {
register int tries = 0;
int tries = 0;
do {
if (tries++ > 50) {
@@ -2500,8 +2500,8 @@ domove(void)
static void
domove_core(void)
{
register struct monst *mtmp;
register struct rm *tmpr;
struct monst *mtmp;
struct rm *tmpr;
coordxy x, y;
struct trap *trap = NULL;
int glyph;
@@ -3182,7 +3182,7 @@ spoteffects(boolean pick)
static struct monst *
monstinroom(struct permonst *mdat, int roomno)
{
register struct monst *mtmp;
struct monst *mtmp;
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
if (DEADMONSTER(mtmp))
@@ -3212,12 +3212,12 @@ furniture_present(int furniture, int roomno)
}
char *
in_rooms(register coordxy x, register coordxy y, register int typewanted)
in_rooms(coordxy x, coordxy y, int typewanted)
{
static char buf[5];
char rno, *ptr = &buf[4];
int typefound, min_x, min_y, max_x, max_y_offset, step;
register struct rm *lev;
struct rm *lev;
#define goodtype(rno) \
(!typewanted \
@@ -3280,7 +3280,7 @@ in_rooms(register coordxy x, register coordxy y, register int typewanted)
boolean
in_town(coordxy x, coordxy y)
{
register struct mkroom *sroom;
struct mkroom *sroom;
boolean has_subrooms = FALSE;
if (!gl.level.flags.has_town)
@@ -3302,7 +3302,7 @@ in_town(coordxy x, coordxy y)
}
static void
move_update(register boolean newlev)
move_update(boolean newlev)
{
char c, *ptr1, *ptr2, *ptr3, *ptr4;
@@ -3541,7 +3541,7 @@ pickup_checks(void)
}
}
if (!OBJ_AT(u.ux, u.uy)) {
register struct rm *lev = &levl[u.ux][u.uy];
struct rm *lev = &levl[u.ux][u.uy];
if (IS_THRONE(lev->typ))
pline("It must weigh%s a ton!", lev->looted ? " almost" : "");
@@ -3613,7 +3613,7 @@ dopickup(void)
void
lookaround(void)
{
register coordxy x, y;
coordxy x, y;
coordxy i, x0 = 0, y0 = 0, m0 = 1, i0 = 9;
int corrct = 0, noturn = 0;
struct monst *mtmp;
@@ -3820,8 +3820,8 @@ crawl_destination(coordxy x, coordxy y)
int
monster_nearby(void)
{
register coordxy x, y;
register struct monst *mtmp;
coordxy x, y;
struct monst *mtmp;
/* Also see the similar check in dochugw() in monmove.c */
for (x = u.ux - 1; x <= u.ux + 1; x++)
@@ -4061,8 +4061,8 @@ weight_cap(void)
int
inv_weight(void)
{
register struct obj *otmp = gi.invent;
register int wt = 0;
struct obj *otmp = gi.invent;
int wt = 0;
while (otmp) {
if (otmp->oclass == COIN_CLASS)
@@ -4122,8 +4122,8 @@ check_capacity(const char *str)
int
inv_cnt(boolean incl_gold)
{
register struct obj *otmp = gi.invent;
register int ct = 0;
struct obj *otmp = gi.invent;
int ct = 0;
while (otmp) {
if (incl_gold || otmp->invlet != GOLD_SYM)