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

@@ -74,8 +74,8 @@ void
tty_startup(int *wid, int *hgt)
{
#ifdef TERMLIB
register const char *term;
register char *tptr;
const char *term;
char *tptr;
char *tbufptr, *pc;
int i;
@@ -467,7 +467,7 @@ static void tty_ascgraphics_hilite_fixup(void);
static void
tty_ascgraphics_hilite_fixup(void)
{
register int c;
int c;
for (c = 0; c < CLR_MAX / 2; c++)
if (c != CLR_BLACK) {
@@ -579,7 +579,7 @@ nocmov(int x, int y)
}
void
cmov(register int x, register int y)
cmov(int x, int y)
{
xputs(tgoto(nh_CM, x, y));
ttyDisplay->cury = y;
@@ -624,7 +624,7 @@ cl_end(void)
if (CE) {
xputs(CE);
} else { /* no-CE fix - free after Harold Rynes */
register int cx = ttyDisplay->curx + 1;
int cx = ttyDisplay->curx + 1;
/* this looks terrible, especially on a slow terminal
but is better than nothing */
@@ -765,7 +765,7 @@ void
tty_delay_output(void)
{
#if defined(MICRO)
register int i;
int i;
#endif
if (iflags.debug_fuzzer)
return;
@@ -796,9 +796,9 @@ tty_delay_output(void)
} else if (ospeed > 0 && ospeed < SIZE(tmspc10) && nh_CM) {
/* delay by sending cm(here) an appropriate number of times */
register int cmlen =
int cmlen =
(int) strlen(tgoto(nh_CM, ttyDisplay->curx, ttyDisplay->cury));
register int i = 500 + tmspc10[ospeed] / 2;
int i = 500 + tmspc10[ospeed] / 2;
while (i > 0) {
cmov((int) ttyDisplay->curx, (int) ttyDisplay->cury);
@@ -815,7 +815,7 @@ cl_eos(void) /* free after Robert Viduya */
if (nh_CD) {
xputs(nh_CD);
} else {
register int cy = ttyDisplay->cury + 1;
int cy = ttyDisplay->cury + 1;
while (cy <= LI - 2) {
cl_end();
@@ -1079,7 +1079,7 @@ kill_hilite(void)
static void
analyze_seq(char *str, int *fg, int *bg)
{
register int c, code;
int c, code;
int len;
#ifdef MICRO
@@ -1140,7 +1140,7 @@ analyze_seq(char *str, int *fg, int *bg)
static void
init_hilite(void)
{
register int c;
int c;
#ifdef TOS
extern unsigned long tos_numcolors; /* in tos.c */
static char NOCOL[] = "\033b0", COLHE[] = "\033q\033b0";
@@ -1223,7 +1223,7 @@ static void
kill_hilite(void)
{
#ifndef TOS
register int c;
int c;
for (c = 0; c < CLR_MAX / 2; c++) {
if (hilites[c | BRIGHT] == hilites[c])
@@ -1245,7 +1245,7 @@ static char adef_nilstring[] = "";
static void
init_hilite(void)
{
register int c;
int c;
if (!hilites[CLR_BLACK])
hilites[CLR_BLACK] = adef_nilstring;
@@ -1289,7 +1289,7 @@ init_hilite(void)
static void
kill_hilite(void)
{
register int c;
int c;
for (c = 0; c < CLR_MAX / 2; c++) {
if (c == CLR_GRAY || hilites[c] == adef_nilstring)