diff options
author | billf <billf@FreeBSD.org> | 1999-11-16 02:58:06 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-11-16 02:58:06 +0000 |
commit | 44fac3a89d25ca434f91c4f961a363ea590faae8 (patch) | |
tree | a0cca4d47c73890ff2acd4b0d9331509ac360eb2 /games/battlestar | |
parent | ecc8d489403ddff78c214db39def15049d5dae6a (diff) | |
download | FreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.zip FreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.tar.gz |
Sync our register usage with NetBSD's (non-)usage.
Diffstat (limited to 'games/battlestar')
-rw-r--r-- | games/battlestar/com1.c | 4 | ||||
-rw-r--r-- | games/battlestar/com2.c | 4 | ||||
-rw-r--r-- | games/battlestar/com3.c | 6 | ||||
-rw-r--r-- | games/battlestar/com4.c | 2 | ||||
-rw-r--r-- | games/battlestar/com5.c | 4 | ||||
-rw-r--r-- | games/battlestar/cypher.c | 2 | ||||
-rw-r--r-- | games/battlestar/fly.c | 8 | ||||
-rw-r--r-- | games/battlestar/getcom.c | 4 | ||||
-rw-r--r-- | games/battlestar/misc.c | 4 | ||||
-rw-r--r-- | games/battlestar/parse.c | 12 | ||||
-rw-r--r-- | games/battlestar/room.c | 6 | ||||
-rw-r--r-- | games/battlestar/save.c | 6 |
12 files changed, 31 insertions, 31 deletions
diff --git a/games/battlestar/com1.c b/games/battlestar/com1.c index 643f037..6dd600a 100644 --- a/games/battlestar/com1.c +++ b/games/battlestar/com1.c @@ -66,7 +66,7 @@ convert(tothis) /* Converts day to night and vice versa. */ int tothis; /* Day objects are permanent. Night objects are added*/ { /* at dusk, and subtracted at dawn. */ const struct objs *p; - register i, j; + int i, j; if (tothis == TONIGHT) { for (i = 1; i <= NUMOFROOMS; i++) @@ -87,7 +87,7 @@ int tothis; /* Day objects are permanent. Night objects are added*/ news() { - register int n; + int n; int hurt; if (gtime > 30 && position < 32){ diff --git a/games/battlestar/com2.c b/games/battlestar/com2.c index 45a91318..4f2dc1d 100644 --- a/games/battlestar/com2.c +++ b/games/battlestar/com2.c @@ -41,7 +41,7 @@ static char sccsid[] = "@(#)com2.c 8.1 (Berkeley) 5/31/93"; wearit() /* synonyms = {sheathe, sheath} */ { - register int n; + int n; int firstnumber, value; firstnumber = wordnumber; @@ -160,7 +160,7 @@ use() murder() { - register int n; + int n; for (n=0; !((n == SWORD || n == KNIFE || n == TWO_HANDED || n == MACE || n == CLEAVER || n == BROAD || n == CHAIN || n == SHOVEL || n == HALBERD) && testbit(inven,n)) && n < NUMOFOBJECTS; n++); if (n == NUMOFOBJECTS) diff --git a/games/battlestar/com3.c b/games/battlestar/com3.c index bd9dd74..e0184d2 100644 --- a/games/battlestar/com3.c +++ b/games/battlestar/com3.c @@ -65,7 +65,7 @@ dig() jump() { - register int n; + int n; switch(position){ default: @@ -167,7 +167,7 @@ bury() drink() { - register int n; + int n; if (testbit(inven,POTION)){ puts("The cool liquid runs down your throat but turns to fire and you choke."); @@ -188,7 +188,7 @@ drink() shoot() { int firstnumber, value; - register int n; + int n; firstnumber = wordnumber; if (!testbit(inven,LASER)) diff --git a/games/battlestar/com4.c b/games/battlestar/com4.c index 9af086b..ab610fd 100644 --- a/games/battlestar/com4.c +++ b/games/battlestar/com4.c @@ -44,7 +44,7 @@ take(from) unsigned int from[]; { int firstnumber, heavy, bulky, value; - register int n; + int n; firstnumber = wordnumber; if (wordnumber < wordcount && wordvalue[wordnumber+1] == OFF){ diff --git a/games/battlestar/com5.c b/games/battlestar/com5.c index d3b18fb..f3cb6a8 100644 --- a/games/battlestar/com5.c +++ b/games/battlestar/com5.c @@ -80,7 +80,7 @@ kiss() love() { - register int n; + int n; while (wordtype[++wordnumber] != NOUNS && wordnumber <= wordcount); if (wordtype[wordnumber] == NOUNS && testbit(location[position].objects,wordvalue[wordnumber])){ @@ -126,7 +126,7 @@ love() zzz() { int oldtime; - register int n; + int n; oldtime = gtime; if ((snooze - gtime) < (0.75 * CYCLE)){ diff --git a/games/battlestar/cypher.c b/games/battlestar/cypher.c index af65af4..f15d816 100644 --- a/games/battlestar/cypher.c +++ b/games/battlestar/cypher.c @@ -41,7 +41,7 @@ static char sccsid[] = "@(#)cypher.c 8.1 (Berkeley) 5/31/93"; cypher() { - register int n; + int n; int junk; int lflag = -1; char buffer[10]; diff --git a/games/battlestar/fly.c b/games/battlestar/fly.c index 9d229be..80f23b7 100644 --- a/games/battlestar/fly.c +++ b/games/battlestar/fly.c @@ -178,7 +178,7 @@ visual() screen() { - register int r,c,n; + int r,c,n; int i; clear(); @@ -194,7 +194,7 @@ screen() target() { - register int n; + int n; move(MIDR,MIDC-10); addstr("------- + -------"); @@ -206,7 +206,7 @@ target() notarget() { - register int n; + int n; move(MIDR,MIDC-10); addstr(" "); @@ -218,7 +218,7 @@ notarget() blast() { - register int n; + int n; alarm(0); move(LINES-1, 24); diff --git a/games/battlestar/getcom.c b/games/battlestar/getcom.c index 7d3a37e..f2772bf 100644 --- a/games/battlestar/getcom.c +++ b/games/battlestar/getcom.c @@ -69,8 +69,8 @@ getcom(buf, size, prompt, error) */ char * getword(buf1, buf2, flag) - register char *buf1, *buf2; - register flag; + char *buf1, *buf2; + int flag; { while (isspace(*buf1)) buf1++; diff --git a/games/battlestar/misc.c b/games/battlestar/misc.c index 1581671..45e9ec2 100644 --- a/games/battlestar/misc.c +++ b/games/battlestar/misc.c @@ -45,7 +45,7 @@ card(array, size) /* for beenthere, injuries */ int size; { const char *end = array + size; - register int i = 0; + int i = 0; while (array < end) if (*array++) @@ -57,7 +57,7 @@ int ucard(array) const unsigned int *array; { - register int j = 0, n; + int j = 0, n; for (n = 0; n < NUMOFOBJECTS; n++) if (testbit(array, n)) diff --git a/games/battlestar/parse.c b/games/battlestar/parse.c index 7eb72ee..abab858 100644 --- a/games/battlestar/parse.c +++ b/games/battlestar/parse.c @@ -41,7 +41,7 @@ static char sccsid[] = "@(#)parse.c 8.1 (Berkeley) 5/31/93"; wordinit() { - register struct wlist *w; + struct wlist *w; for (w = wlist; w->string; w++) install(w); @@ -51,7 +51,7 @@ int hash(s) const char *s; { - register hashval = 0; + int hashval = 0; while (*s) { hashval += *s++; @@ -65,7 +65,7 @@ struct wlist * lookup(s) const char *s; { - register struct wlist *wp; + struct wlist *wp; for (wp = hashtab[hash(s)]; wp != NULL; wp = wp->next) if (*s == *wp->string && strcmp(s, wp->string) == 0) @@ -74,7 +74,7 @@ lookup(s) } install(wp) - register struct wlist *wp; + struct wlist *wp; { int hashval; @@ -88,8 +88,8 @@ install(wp) parse() { - register struct wlist *wp; - register n; + struct wlist *wp; + int n; wordnumber = 0; /* for cypher */ for (n = 0; n <= wordcount; n++) { diff --git a/games/battlestar/room.c b/games/battlestar/room.c index 8992919..d78cc00 100644 --- a/games/battlestar/room.c +++ b/games/battlestar/room.c @@ -43,7 +43,7 @@ writedes() { int compass; const char *p; - register c; + int c; printf("\n\t%s\n", location[position].name); if (beenthere[position] < 3) { @@ -61,8 +61,8 @@ writedes() printobjs() { - register int *p = location[position].objects; - register n; + int *p = location[position].objects; + int n; printf("\n"); for (n = 0; n < NUMOFOBJECTS; n++) diff --git a/games/battlestar/save.c b/games/battlestar/save.c index c91070a0..627f821 100644 --- a/games/battlestar/save.c +++ b/games/battlestar/save.c @@ -50,9 +50,9 @@ restore() { char *home; char home1[MAXPATHLEN]; - register int n; + int n; int tmp; - register FILE *fp; + FILE *fp; if ( (home = getenv("HOME")) != NULL) sprintf(home1, "%.*s/Bstar", MAXPATHLEN - 7, home); @@ -108,7 +108,7 @@ save() struct stat sbuf; char *home; char home1[MAXPATHLEN]; - register int n; + int n; int tmp, fd; FILE *fp; |