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

@@ -88,7 +88,7 @@ boolean
pcmain(int argc, char *argv[])
{
NHFILE *nhfp;
register char *dir;
char *dir;
#if defined(MSDOS)
char *envp = NULL;
char *sptr = NULL;

View File

@@ -39,7 +39,7 @@ static int eraseoldlocks(void);
static int
eraseoldlocks(void)
{
register int i;
int i;
/* cannot use maxledgerno() here, because we need to find a lock name
* before starting everything (including the dungeon initialization
@@ -63,7 +63,7 @@ eraseoldlocks(void)
void
getlock(void)
{
register int fd, c, ci, ct;
int fd, c, ci, ct;
int fcmask = FCMASK;
char tbuf[BUFSZ];
const char *fq_lock;
@@ -201,13 +201,13 @@ gotlock:
#endif /* PC_LOCKING */
void
regularize(register char *s)
regularize(char *s)
/*
* normalize file name - we don't like .'s, /'s, spaces, and
* lots of other things
*/
{
register char *lp;
char *lp;
for (lp = s; *lp; lp++)
if (*lp <= ' ' || *lp == '"' || (*lp >= '*' && *lp <= ',')

View File

@@ -489,8 +489,8 @@ tputs(const char *string, /* characters to output */
int (*output_func)(int)) /* actual output routine;
* return value ignored */
{
register int c, num = 0;
register const char *p = string;
int c, num = 0;
const char *p = string;
if (!p || !*p)
return;

View File

@@ -254,7 +254,7 @@ outdec(char *p, FILE *f, int n)
char *
index(sp, c)
register char *sp, c;
char *sp, c;
{
do {
if (*sp == c)