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/adventure/io.c | |
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/adventure/io.c')
-rw-r--r-- | games/adventure/io.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/games/adventure/io.c b/games/adventure/io.c index 4b53659..7b929f6 100644 --- a/games/adventure/io.c +++ b/games/adventure/io.c @@ -53,7 +53,7 @@ static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93"; getin(wrd1,wrd2) /* get command from user */ char **wrd1,**wrd2; /* no prompt, usually */ -{ register char *s; +{ char *s; static char wd1buf[MAXSTR],wd2buf[MAXSTR]; int first, numch; @@ -98,7 +98,7 @@ char **wrd1,**wrd2; /* no prompt, usually */ yes(x,y,z) /* confirm with rspeak */ int x,y,z; -{ register int result; +{ int result; int ch; for (;;) { rspeak(x); /* tell him what we want*/ @@ -120,7 +120,7 @@ int x,y,z; yesm(x,y,z) /* confirm with mspeak */ int x,y,z; -{ register int result; +{ int result; int ch; for (;;) { mspeak(x); /* tell him what we want*/ @@ -165,8 +165,8 @@ next() /* next virtual char, bump adr */ char breakch; /* tell which char ended rnum */ rdata() /* "read" data from virtual file*/ -{ register int sect; - register char ch; +{ int sect; + char ch; inptr = data_file; /* Pointer to virtual data file */ srandom(SEED); /* which is lightly encrypted. */ @@ -235,7 +235,7 @@ char nbf[12]; rnum() /* read initial location num */ -{ register char *s; +{ char *s; tape = iotape; /* restart encryption tape */ for (s=nbf,*s=0;; s++) if ((*s=next())==TAB || *s=='\n' || *s==LF) @@ -250,8 +250,8 @@ char *seekhere; rdesc(sect) /* read description-format msgs */ int sect; -{ register char *s,*t; - register int locc; +{ char *s,*t; + int locc; char *seekstart, *maystart, *adrstart; char *entry; @@ -314,9 +314,9 @@ int sect; rtrav() /* read travel table */ -{ register int locc; - register struct travlist *t; - register char *s; +{ int locc; + struct travlist *t; + char *s; char buf[12]; int len,m,n,entries; for (oldloc= -1;;) /* get another line */ @@ -367,7 +367,7 @@ rtrav() /* read travel table */ twrite(loq) /* travel options from this loc */ int loq; -{ register struct travlist *t; +{ struct travlist *t; printf("If"); speak(<ext[loq]); printf("then\n"); @@ -386,8 +386,8 @@ int loq; #endif DEBUG rvoc() -{ register char *s; /* read the vocabulary */ - register int index; +{ char *s; /* read the vocabulary */ + int index; char buf[6]; for (;;) { index=rnum(); @@ -423,7 +423,7 @@ rdflt() /* default verb messages */ } rliq() /* liquid assets &c: cond bits */ -{ register int bitnum; +{ int bitnum; for (;;) /* read new bit list */ { if ((bitnum=rnum())<0) break; for (;;) /* read locs for bits */ @@ -434,7 +434,7 @@ rliq() /* liquid assets &c: cond bits */ } rhints() -{ register int hintnum,i; +{ int hintnum,i; hntmax=0; for (;;) { if ((hintnum=rnum())<0) break; @@ -460,7 +460,7 @@ int msg; speak(msg) /* read, decrypt, and print a message (not ptext) */ const struct text *msg;/* msg is a pointer to seek address and length of mess */ { - register char *s, nonfirst; + char *s, nonfirst; s = msg->seekadr; nonfirst=0; @@ -485,7 +485,7 @@ pspeak(m,skip) /* read, decrypt an print a ptext message */ int m; /* msg is the number of all the p msgs for this place */ int skip; /* assumes object 1 doesn't have prop 1, obj 2 no prop 2 &c*/ { - register char *s,nonfirst; + char *s,nonfirst; char *numst, save; struct text *msg; char *tbuf; |