remove register from variable declarations
This commit is contained in:
@@ -249,7 +249,7 @@ same_dir(const char *d1, const char *d2)
|
||||
int
|
||||
c__translate(int code)
|
||||
{
|
||||
register int trans;
|
||||
int trans;
|
||||
|
||||
/* clang-format off */
|
||||
/* *INDENT-OFF* */
|
||||
@@ -309,7 +309,7 @@ vms_basename(const char *name, boolean keep_suffix)
|
||||
{
|
||||
unsigned len;
|
||||
char *base, *base_p, *xtra_p;
|
||||
register const char *name_p;
|
||||
const char *name_p;
|
||||
|
||||
/* skip directory/path */
|
||||
if ((name_p = strrchr(name, ']')) != 0)
|
||||
|
||||
@@ -125,7 +125,7 @@ parse_brdcst(char *buf) /* called by parse_next_broadcast() */
|
||||
char *txt;
|
||||
const char *nam, *cmd;
|
||||
#ifdef SHELL /* only parse if spawned commands are enabled */
|
||||
register char *p, *q;
|
||||
char *p, *q;
|
||||
boolean is_jnet_send;
|
||||
char user[127 + 1], node[127 + 1], sentinel;
|
||||
|
||||
@@ -305,10 +305,10 @@ parse_brdcst(char *buf) /* called by parse_next_broadcast() */
|
||||
|
||||
/* filter out non-printable characters and redundant noise
|
||||
*/
|
||||
static void filter_brdcst(register char *buf) /* called by parse_next_broadcast() */
|
||||
static void filter_brdcst(char *buf) /* called by parse_next_broadcast() */
|
||||
/* in: original text; out: filtered text */
|
||||
{
|
||||
register char c, *p, *buf_p;
|
||||
char c, *p, *buf_p;
|
||||
|
||||
/* filter the text; restrict consecutive spaces or dots to just two */
|
||||
for (p = buf_p = buf; *buf_p; buf_p++) {
|
||||
|
||||
@@ -40,7 +40,7 @@ main(int argc, char *argv[])
|
||||
{
|
||||
NHFILE *nhfp;
|
||||
#ifdef CHDIR
|
||||
register char *dir;
|
||||
char *dir;
|
||||
#endif
|
||||
boolean resuming = FALSE; /* assume new game */
|
||||
|
||||
@@ -388,7 +388,7 @@ whoami(void)
|
||||
* Note that we trust the user here; it is possible to play under
|
||||
* somebody else's name.
|
||||
*/
|
||||
register char *s;
|
||||
char *s;
|
||||
|
||||
if (!*gp.plname && (s = nh_getenv("USER")))
|
||||
(void) lcase(strncpy(gp.plname, s, sizeof(gp.plname) - 1));
|
||||
|
||||
@@ -293,7 +293,7 @@ static const char *arrow_or_PF = "ABCDPQRS", /* suffix char */
|
||||
/* Ultimate return value is (index into smg_keypad_codes[] + 256). */
|
||||
|
||||
static short
|
||||
parse_function_key(register int c)
|
||||
parse_function_key(int c)
|
||||
{
|
||||
struct _rd_iosb iosb;
|
||||
unsigned long sts;
|
||||
@@ -319,8 +319,8 @@ parse_function_key(register int c)
|
||||
} else
|
||||
sts = SS$_NORMAL;
|
||||
if (vms_ok(sts) || sts == SS$_TIMEOUT) {
|
||||
register int cnt = iosb.trm_offset + iosb.trm_siz + inc;
|
||||
register char *p = seq_buf;
|
||||
int cnt = iosb.trm_offset + iosb.trm_siz + inc;
|
||||
char *p = seq_buf;
|
||||
|
||||
if (c == ESC) /* check for 7-bit vt100/ANSI, or vt52 */
|
||||
if (*p == '[' || *p == 'O')
|
||||
@@ -328,7 +328,7 @@ parse_function_key(register int c)
|
||||
else if (strchr(arrow_or_PF, *p))
|
||||
c = SS3; /*CSI*/
|
||||
if (cnt > 0 && (c == SS3 || (c == CSI && strchr(arrow_or_PF, *p)))) {
|
||||
register char *q = strchr(smg_keypad_codes, *p);
|
||||
char *q = strchr(smg_keypad_codes, *p);
|
||||
|
||||
if (q)
|
||||
result = 256 + (q - smg_keypad_codes);
|
||||
|
||||
@@ -57,7 +57,7 @@ static void hack_resume(boolean);
|
||||
static int
|
||||
veryold(int fd)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
time_t date;
|
||||
struct stat buf;
|
||||
|
||||
@@ -99,7 +99,7 @@ veryold(int fd)
|
||||
void
|
||||
getlock(void)
|
||||
{
|
||||
register int i = 0, fd;
|
||||
int i = 0, fd;
|
||||
|
||||
/* idea from rpick%ucqais@uccba.uc.edu
|
||||
* prevent automated rerolling of characters
|
||||
@@ -165,9 +165,9 @@ getlock(void)
|
||||
}
|
||||
|
||||
/* normalize file name */
|
||||
void regularize(register char *s)
|
||||
void regularize(char *s)
|
||||
{
|
||||
register char *lp;
|
||||
char *lp;
|
||||
|
||||
for (lp = s; *lp; lp++) /* note: '-' becomes '_' */
|
||||
if (!(isalpha(*lp) || isdigit(*lp) || *lp == '$'))
|
||||
@@ -308,7 +308,7 @@ verify_term(void)
|
||||
|
||||
if (devtype && vms_ok(smg$init_term_table_by_type(&devtype, &termtab,
|
||||
&smgdsc))) {
|
||||
register char *p = &smgdevtyp[smgdsc.dsc$w_length];
|
||||
char *p = &smgdevtyp[smgdsc.dsc$w_length];
|
||||
/* strip trailing blanks */
|
||||
while (p > smgdevtyp && *--p == ' ')
|
||||
*p = '\0';
|
||||
|
||||
Reference in New Issue
Block a user