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

@@ -979,7 +979,7 @@ sel_set_wall_property(coordxy x, coordxy y, genericptr_t arg)
static void
set_wall_property(coordxy x1, coordxy y1, coordxy x2, coordxy y2, int prop)
{
register coordxy x, y;
coordxy x, y;
x1 = max(x1, 1);
x2 = min(x2, COLNO - 1);
@@ -1216,7 +1216,7 @@ get_location(
break;
} while (++cpt < 100);
if (cpt >= 100) {
register int xx, yy;
int xx, yy;
/* last try */
for (xx = 0; xx < sx; xx++)
@@ -1258,7 +1258,7 @@ set_ok_location_func(boolean (*func)(coordxy, coordxy))
static boolean
is_ok_location(coordxy x, coordxy y, getloc_flags_t humidity)
{
register int typ = levl[x][y].typ;
int typ = levl[x][y].typ;
if (Is_waterlevel(&u.uz))
return TRUE; /* accept any spot */
@@ -1367,7 +1367,7 @@ get_free_room_loc(
packed_coord pos)
{
coordxy try_x, try_y;
register int trycnt = 0;
int trycnt = 0;
get_location_coord(&try_x, &try_y, DRY, croom, pos);
if (levl[try_x][try_y].typ != ROOM) {
@@ -1388,8 +1388,8 @@ check_room(
coordxy *lowy, coordxy *ddy,
boolean vault)
{
register int x, y, hix = *lowx + *ddx, hiy = *lowy + *ddy;
register struct rm *lev;
int x, y, hix = *lowx + *ddx, hiy = *lowy + *ddy;
struct rm *lev;
int xlim, ylim, ymax;
coordxy s_lowx, s_ddx, s_lowy, s_ddy;
@@ -2571,7 +2571,7 @@ dig_corridor(
/* do we have to change direction ? */
if (dy && dix > diy) {
register int ddx = (xx > tx) ? -1 : 1;
int ddx = (xx > tx) ? -1 : 1;
crm = &levl[xx + ddx][yy];
if (crm->typ == btyp || crm->typ == ftyp || crm->typ == SCORR) {
@@ -2580,7 +2580,7 @@ dig_corridor(
continue;
}
} else if (dx && diy > dix) {
register int ddy = (yy > ty) ? -1 : 1;
int ddy = (yy > ty) ? -1 : 1;
crm = &levl[xx][yy + ddy];
if (crm->typ == btyp || crm->typ == ftyp || crm->typ == SCORR) {
@@ -2788,10 +2788,10 @@ build_room(room *r, struct mkroom *mkr)
static void
light_region(region *tmpregion)
{
register boolean litstate = tmpregion->rlit ? 1 : 0;
register int hiy = tmpregion->y2;
register int x, y;
register struct rm *lev;
boolean litstate = tmpregion->rlit ? 1 : 0;
int hiy = tmpregion->y2;
int x, y;
struct rm *lev;
int lowy = tmpregion->y1;
int lowx = tmpregion->x1, hix = tmpregion->x2;
@@ -2849,7 +2849,7 @@ wallify_map(coordxy x1, coordxy y1, coordxy x2, coordxy y2)
static void
maze1xy(coord *m, int humidity)
{
register int x, y, tryct = 2000;
int x, y, tryct = 2000;
/* tryct: normally it won't take more than ten or so tries due
to the circumstances under which we'll be called, but the
`humidity' screening might drastically change the chances */
@@ -6203,7 +6203,7 @@ int
lspo_region(lua_State *L)
{
coordxy dx1, dy1, dx2, dy2;
register struct mkroom *troom;
struct mkroom *troom;
boolean do_arrival_room = FALSE, room_not_needed,
irregular = FALSE, joined = TRUE;
int rtype = OROOM, rlit = 1, needfill = 0;