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

@@ -23,7 +23,7 @@ void mkmap(lev_init *);
static void
init_map(schar bg_typ)
{
register int i, j;
int i, j;
for (i = 1; i < COLNO; i++)
for (j = 0; j < ROWNO; j++) {
@@ -36,7 +36,7 @@ init_map(schar bg_typ)
static void
init_fill(schar bg_typ, schar fg_typ)
{
register int i, j;
int i, j;
long limit, count;
limit = (WIDTH * HEIGHT * 2) / 5;
@@ -67,7 +67,7 @@ static const int dirs[16] = {
static void
pass_one(schar bg_typ, schar fg_typ)
{
register int i, j;
int i, j;
short count, dr;
for (i = 2; i <= WIDTH; i++)
@@ -100,7 +100,7 @@ pass_one(schar bg_typ, schar fg_typ)
static void
pass_two(schar bg_typ, schar fg_typ)
{
register int i, j;
int i, j;
short count, dr;
for (i = 2; i <= WIDTH; i++)
@@ -123,7 +123,7 @@ pass_two(schar bg_typ, schar fg_typ)
static void
pass_three(schar bg_typ, schar fg_typ)
{
register int i, j;
int i, j;
short count, dr;
for (i = 2; i <= WIDTH; i++)
@@ -152,12 +152,12 @@ pass_three(schar bg_typ, schar fg_typ)
void
flood_fill_rm(
int sx,
register int sy,
register int rmno,
int sy,
int rmno,
boolean lit,
boolean anyroom)
{
register int i;
int i;
int nx;
schar fg_typ = levl[sx][sy].typ;
@@ -179,7 +179,7 @@ flood_fill_rm(
levl[i][sy].lit = lit;
if (anyroom) {
/* add walls to room as well */
register int ii, jj;
int ii, jj;
for (ii = (i == sx ? i - 1 : i); ii <= i + 1; ii++)
for (jj = sy - 1; jj <= sy + 1; jj++)
if (isok(ii, jj) && (IS_WALL(levl[ii][jj].typ)
@@ -258,9 +258,9 @@ join_map_cleanup(void)
static void
join_map(schar bg_typ, schar fg_typ)
{
register struct mkroom *croom, *croom2;
struct mkroom *croom, *croom2;
register int i, j;
int i, j;
int sx, sy;
coord sm, em;