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
+2 -2
View File
@@ -422,8 +422,8 @@ nhApproxColor(
long cdiff = 16777216; /* 2^24; hopefully our map is smaller */
XColor tmp;
static XColor *table = 0;
register int i, j;
register long tdiff;
int i, j;
long tdiff;
/* if the screen doesn't have a big colormap, don't waste our time
or if it's huge, and _some_ match should have been possible */
+6 -6
View File
@@ -124,11 +124,11 @@ X11_print_glyph(
}
{
X11_map_symbol ch;
register X11_map_symbol *ch_ptr;
X11_map_symbol *ch_ptr;
X11_color color;
unsigned special;
int colordif;
register X11_color *co_ptr;
X11_color *co_ptr;
color = glyphinfo->gm.sym.color;
special = glyphinfo->gm.glyphflags;
@@ -979,7 +979,7 @@ display_cursor(struct xwindow *wp)
void
display_map_window(struct xwindow *wp)
{
register int row;
int row;
struct map_info_t *map_info = wp->map_information;
if ((Is_rogue_level(&u.uz) ? map_info->is_tile
@@ -998,7 +998,7 @@ display_map_window(struct xwindow *wp)
check_cursor_visibility(wp);
highlight_yn(TRUE); /* change fg/bg to match map */
} else if (wp->prevx != wp->cursx || wp->prevy != wp->cursy) {
register coordxy x = wp->prevx, y = wp->prevy;
coordxy x = wp->prevx, y = wp->prevy;
/*
* Previous cursor position is not the same as the current
@@ -1355,7 +1355,7 @@ map_update(struct xwindow *wp, int start_row, int stop_row, int start_col, int s
{
struct map_info_t *map_info = wp->map_information;
int row;
register int count;
int count;
if (start_row < 0 || stop_row >= ROWNO) {
impossible("map_update: bad row range %d-%d\n", start_row, stop_row);
@@ -1465,7 +1465,7 @@ map_update(struct xwindow *wp, int start_row, int stop_row, int start_col, int s
struct text_map_info_t *text_map = &map_info->text_map;
{
register X11_color *c_ptr;
X11_color *c_ptr;
X11_map_symbol *t_ptr;
int cur_col, win_ystart;
X11_color color;
+5 -5
View File
@@ -391,8 +391,8 @@ split(char *s,
static void
add_line(struct mesg_info_t *mesg_info, const char *s)
{
register struct line_element *curr = mesg_info->head;
register int new_line_length = strlen(s);
struct line_element *curr = mesg_info->head;
int new_line_length = strlen(s);
if (new_line_length + 1 > curr->buf_length) {
if (curr->line)
@@ -420,7 +420,7 @@ add_line(struct mesg_info_t *mesg_info, const char *s)
void
set_last_pause(struct xwindow *wp)
{
register struct mesg_info_t *mesg_info = wp->mesg_information;
struct mesg_info_t *mesg_info = wp->mesg_information;
#ifdef ERASE_LINE
/*
@@ -448,8 +448,8 @@ static void
redraw_message_window(struct xwindow *wp)
{
struct mesg_info_t *mesg_info = wp->mesg_information;
register struct line_element *curr;
register int row, y_base;
struct line_element *curr;
int row, y_base;
/*
* Do this the cheap and easy way. Clear the window and just redraw
+1 -1
View File
@@ -482,7 +482,7 @@ calculate_rip_text(int how, time_t when)
/* Put death type on stone */
for (line = DEATH_LINE, dpx = buf; line < YEAR_LINE; line++) {
register int i, i0;
int i, i0;
char tmpchar;
if ((i0 = strlen(dpx)) > STONE_LINE_LEN) {