remove register from variable declarations
This commit is contained in:
@@ -33,7 +33,7 @@ extern char erase_char, kill_char; /* from appropriate tty.c file */
|
||||
* However, if there is no text yet (or anymore) then "\033" is returned.
|
||||
*/
|
||||
void
|
||||
tty_getlin(const char *query, register char *bufp)
|
||||
tty_getlin(const char *query, char *bufp)
|
||||
{
|
||||
suppress_history = FALSE;
|
||||
hooked_tty_getlin(query, bufp, (getlin_hook_proc) 0);
|
||||
@@ -42,11 +42,11 @@ tty_getlin(const char *query, register char *bufp)
|
||||
static void
|
||||
hooked_tty_getlin(
|
||||
const char *query,
|
||||
register char *bufp,
|
||||
char *bufp,
|
||||
getlin_hook_proc hook)
|
||||
{
|
||||
register char *obufp = bufp;
|
||||
register int c;
|
||||
char *obufp = bufp;
|
||||
int c;
|
||||
struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
boolean doprev = FALSE;
|
||||
|
||||
@@ -223,9 +223,9 @@ hooked_tty_getlin(
|
||||
}
|
||||
|
||||
void
|
||||
xwaitforspace(register const char *s) /* chars allowed besides return */
|
||||
xwaitforspace(const char *s) /* chars allowed besides return */
|
||||
{
|
||||
register int c, x = ttyDisplay ? (int) ttyDisplay->dismiss_more : '\n';
|
||||
int c, x = ttyDisplay ? (int) ttyDisplay->dismiss_more : '\n';
|
||||
|
||||
morc = 0;
|
||||
while (
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -19,7 +19,7 @@ static void free_msghistory_snapshot(boolean);
|
||||
int
|
||||
tty_doprev_message(void)
|
||||
{
|
||||
register struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
winid prevmsg_win;
|
||||
int i;
|
||||
|
||||
@@ -169,7 +169,7 @@ show_topl(const char *str)
|
||||
void
|
||||
remember_topl(void)
|
||||
{
|
||||
register struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
int idx = cw->maxrow;
|
||||
unsigned len = strlen(gt.toplines) + 1;
|
||||
|
||||
@@ -248,10 +248,10 @@ more(void)
|
||||
}
|
||||
|
||||
void
|
||||
update_topl(register const char *bp)
|
||||
update_topl(const char *bp)
|
||||
{
|
||||
register char *tl, *otl;
|
||||
register int n0;
|
||||
char *tl, *otl;
|
||||
int n0;
|
||||
int notdied = 1;
|
||||
struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
boolean skip = (cw->flags & (WIN_STOP | WIN_NOSTOP)) == WIN_STOP;
|
||||
@@ -304,7 +304,7 @@ update_topl(register const char *bp)
|
||||
static void
|
||||
topl_putsym(char c)
|
||||
{
|
||||
register struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
|
||||
if (cw == (struct WinDesc *) 0)
|
||||
panic("Putsym window MESSAGE nonexistent");
|
||||
@@ -351,7 +351,7 @@ putsyms(const char *str)
|
||||
}
|
||||
|
||||
static void
|
||||
removetopl(register int n)
|
||||
removetopl(int n)
|
||||
{
|
||||
/* assume addtopl() has been done, so ttyDisplay->toplin is already set */
|
||||
while (n-- > 0)
|
||||
@@ -379,7 +379,7 @@ tty_yn_function(
|
||||
* are allowed). If it includes an <esc>, anything beyond that won't
|
||||
* be shown in the prompt to the user but will be acceptable as input.
|
||||
*/
|
||||
register char q;
|
||||
char q;
|
||||
char rtmp[40];
|
||||
boolean digit_ok, allow_num, preserve_case = FALSE;
|
||||
struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
|
||||
@@ -658,7 +658,7 @@ void
|
||||
tty_askname(void)
|
||||
{
|
||||
static const char who_are_you[] = "Who are you? ";
|
||||
register int c, ct, tryct = 0;
|
||||
int c, ct, tryct = 0;
|
||||
|
||||
#ifdef SELECTSAVED
|
||||
if (iflags.wc2_selectsaved && !iflags.renameinprogress)
|
||||
@@ -1032,7 +1032,7 @@ void
|
||||
tty_clear_nhwindow(winid window)
|
||||
{
|
||||
int i, j, m, n;
|
||||
register struct WinDesc *cw = 0;
|
||||
struct WinDesc *cw = 0;
|
||||
|
||||
HUPSKIP();
|
||||
if (window == WIN_ERR || (cw = wins[window]) == (struct WinDesc *) 0)
|
||||
@@ -1741,7 +1741,7 @@ process_text_window(winid window, struct WinDesc *cw)
|
||||
{
|
||||
int i, n, attr;
|
||||
boolean linestart;
|
||||
register char *cp;
|
||||
char *cp;
|
||||
|
||||
for (n = 0, i = 0; i < cw->maxrow; i++) {
|
||||
HUPSKIP();
|
||||
@@ -1825,7 +1825,7 @@ tty_display_nhwindow(
|
||||
winid window,
|
||||
boolean blocking) /* with ttys, all windows are blocking */
|
||||
{
|
||||
register struct WinDesc *cw = 0;
|
||||
struct WinDesc *cw = 0;
|
||||
short s_maxcol;
|
||||
|
||||
HUPSKIP();
|
||||
@@ -1919,7 +1919,7 @@ tty_display_nhwindow(
|
||||
void
|
||||
tty_dismiss_nhwindow(winid window)
|
||||
{
|
||||
register struct WinDesc *cw = 0;
|
||||
struct WinDesc *cw = 0;
|
||||
|
||||
HUPSKIP();
|
||||
if (window == WIN_ERR || (cw = wins[window]) == (struct WinDesc *) 0)
|
||||
@@ -1974,7 +1974,7 @@ tty_dismiss_nhwindow(winid window)
|
||||
void
|
||||
tty_destroy_nhwindow(winid window)
|
||||
{
|
||||
register struct WinDesc *cw = 0;
|
||||
struct WinDesc *cw = 0;
|
||||
|
||||
if (window == WIN_ERR || (cw = wins[window]) == (struct WinDesc *) 0) {
|
||||
if (window == WIN_INVEN) /* Null wins[WIN_INVEN] is tolerated */
|
||||
@@ -2023,7 +2023,7 @@ erase_tty_screen(void)
|
||||
void
|
||||
tty_curs(
|
||||
winid window,
|
||||
register int x, register int y) /* not xchar: perhaps xchar is unsigned
|
||||
int x, int y) /* not xchar: perhaps xchar is unsigned
|
||||
* then curx-x would be unsigned too */
|
||||
{
|
||||
struct WinDesc *cw = 0;
|
||||
@@ -2125,7 +2125,7 @@ tty_curs(
|
||||
static void
|
||||
tty_putsym(winid window, int x, int y, char ch)
|
||||
{
|
||||
register struct WinDesc *cw = 0;
|
||||
struct WinDesc *cw = 0;
|
||||
|
||||
HUPSKIP();
|
||||
if (window == WIN_ERR || (cw = wins[window]) == (struct WinDesc *) 0)
|
||||
@@ -2189,12 +2189,12 @@ compress_str(const char *str)
|
||||
void
|
||||
tty_putstr(winid window, int attr, const char *str)
|
||||
{
|
||||
register struct WinDesc *cw = 0;
|
||||
register char *ob;
|
||||
register long i, n0;
|
||||
struct WinDesc *cw = 0;
|
||||
char *ob;
|
||||
long i, n0;
|
||||
#ifndef STATUS_HILITES
|
||||
register const char *nb;
|
||||
register long j;
|
||||
const char *nb;
|
||||
long j;
|
||||
#endif
|
||||
|
||||
HUPSKIP();
|
||||
@@ -2533,7 +2533,7 @@ tty_add_menu(
|
||||
unsigned int itemflags) /* itemflags such as MENU_ITEMFLAGS_SELECTED */
|
||||
{
|
||||
boolean preselected = ((itemflags & MENU_ITEMFLAGS_SELECTED) != 0);
|
||||
register struct WinDesc *cw = 0;
|
||||
struct WinDesc *cw = 0;
|
||||
tty_menu_item *item;
|
||||
const char *newstr;
|
||||
char buf[4 + BUFSZ];
|
||||
@@ -2737,7 +2737,7 @@ tty_end_menu(
|
||||
int
|
||||
tty_select_menu(winid window, int how, menu_item **menu_list)
|
||||
{
|
||||
register struct WinDesc *cw = 0;
|
||||
struct WinDesc *cw = 0;
|
||||
tty_menu_item *curr;
|
||||
menu_item *mi;
|
||||
int n, cancelled;
|
||||
@@ -3594,11 +3594,11 @@ tty_wait_synch(void)
|
||||
|
||||
void
|
||||
docorner(
|
||||
register int xmin, register int ymax,
|
||||
int xmin, int ymax,
|
||||
int ystart_between_menu_pages)
|
||||
{
|
||||
register int y;
|
||||
register struct WinDesc *cw = wins[WIN_MAP];
|
||||
int y;
|
||||
struct WinDesc *cw = wins[WIN_MAP];
|
||||
int ystart = 0;
|
||||
#ifdef TTY_PERM_INVENT
|
||||
struct WinDesc *icw = 0;
|
||||
@@ -3686,7 +3686,7 @@ end_glyphout(void)
|
||||
void
|
||||
g_putch(int in_ch)
|
||||
{
|
||||
register char ch = (char) in_ch;
|
||||
char ch = (char) in_ch;
|
||||
|
||||
HUPSKIP();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user