summaryrefslogtreecommitdiffstats
path: root/games/phantasia
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-11-16 02:58:06 +0000
committerbillf <billf@FreeBSD.org>1999-11-16 02:58:06 +0000
commit44fac3a89d25ca434f91c4f961a363ea590faae8 (patch)
treea0cca4d47c73890ff2acd4b0d9331509ac360eb2 /games/phantasia
parentecc8d489403ddff78c214db39def15049d5dae6a (diff)
downloadFreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.zip
FreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.tar.gz
Sync our register usage with NetBSD's (non-)usage.
Diffstat (limited to 'games/phantasia')
-rw-r--r--games/phantasia/fight.c6
-rw-r--r--games/phantasia/gamesupport.c8
-rw-r--r--games/phantasia/interplayer.c6
-rw-r--r--games/phantasia/io.c8
-rw-r--r--games/phantasia/main.c10
-rw-r--r--games/phantasia/misc.c28
-rw-r--r--games/phantasia/setup.c2
7 files changed, 34 insertions, 34 deletions
diff --git a/games/phantasia/fight.c b/games/phantasia/fight.c
index 021b89b..ae778d4 100644
--- a/games/phantasia/fight.c
+++ b/games/phantasia/fight.c
@@ -1166,7 +1166,7 @@ struct monster Othermonster; /* to find a name for mimics */
awardtreasure()
{
-register int whichtreasure; /* calculated treasure to grant */
+int whichtreasure; /* calculated treasure to grant */
int temp; /* temporary */
int ch; /* input */
double treasuretype; /* monster's treasure type */
@@ -1659,8 +1659,8 @@ scramblestats()
{
double dbuf[6]; /* to put statistic in */
double dtemp1, dtemp2; /* for swapping values */
-register int first, second; /* indices for swapping */
-register double *dptr; /* pointer for filling and emptying buf[] */
+int first, second; /* indices for swapping */
+double *dptr; /* pointer for filling and emptying buf[] */
/* fill buffer */
dptr = &dbuf[0];
diff --git a/games/phantasia/gamesupport.c b/games/phantasia/gamesupport.c
index 14d6bdc..23711d2 100644
--- a/games/phantasia/gamesupport.c
+++ b/games/phantasia/gamesupport.c
@@ -58,8 +58,8 @@ bool ingameflag;
{
static char flag[2] = /* for printing values of bools */
{'F', 'T'};
-register struct player *playerp;/* pointer to structure to alter */
-register char *prompt; /* pointer to prompt string */
+struct player *playerp;/* pointer to structure to alter */
+char *prompt; /* pointer to prompt string */
int c; /* input */
int today; /* day of year of today */
int temp; /* temporary variable */
@@ -515,7 +515,7 @@ BALTER:
monstlist()
{
-register int count = 0; /* count in file */
+int count = 0; /* count in file */
puts(" #) Name Str Brain Quick Energy Exper Treas Type Flock%\n");
fseek(Monstfp, 0L, 0);
@@ -552,7 +552,7 @@ register int count = 0; /* count in file */
scorelist()
{
struct scoreboard sbuf; /* for reading entries */
-register FILE *fp; /* to open the file */
+FILE *fp; /* to open the file */
if ((fp = fopen(_PATH_SCORE, "r")) != NULL)
{
diff --git a/games/phantasia/interplayer.c b/games/phantasia/interplayer.c
index 16ef1a6..6a7f9ec 100644
--- a/games/phantasia/interplayer.c
+++ b/games/phantasia/interplayer.c
@@ -114,7 +114,7 @@ long foeplace;
{
double dtemp; /* for temporary calculations */
double oldhits = 0.0; /* previous damage inflicted by foe */
-register int loop; /* for timing out */
+int loop; /* for timing out */
int ch; /* input */
short oldtampered; /* old value of foe's p_tampered */
@@ -733,7 +733,7 @@ long loc; /* location in file of other players */
userlist(ingameflag)
bool ingameflag;
{
-register int numusers = 0; /* number of users on file */
+int numusers = 0; /* number of users on file */
if (ingameflag && Player.p_blindness)
{
@@ -1160,7 +1160,7 @@ FILE *fp; /* for opening gold file */
*************************************************************************/
writevoid(vp, loc)
-register struct energyvoid *vp;
+struct energyvoid *vp;
long loc;
{
diff --git a/games/phantasia/io.c b/games/phantasia/io.c
index af74b56..bfd2564 100644
--- a/games/phantasia/io.c
+++ b/games/phantasia/io.c
@@ -43,10 +43,10 @@
*************************************************************************/
getstring(cp, mx)
-register char *cp;
-register int mx;
+char *cp;
+int mx;
{
-register char *inptr; /* pointer into string for next string */
+char *inptr; /* pointer into string for next string */
int x, y; /* original x, y coordinates on screen */
int ch; /* input */
@@ -234,7 +234,7 @@ inputoption()
interrupt()
{
char line[81]; /* a place to store data already on screen */
-register int loop; /* counter */
+int loop; /* counter */
int x, y; /* coordinates on screen */
int ch; /* input */
unsigned savealarm; /* to save alarm value */
diff --git a/games/phantasia/main.c b/games/phantasia/main.c
index e17630c..8840bae 100644
--- a/games/phantasia/main.c
+++ b/games/phantasia/main.c
@@ -524,7 +524,7 @@ double x; /* desired new x coordinate */
double y; /* desired new y coordinate */
double temp; /* for temporary calculations */
FILE *fp; /* for opening files */
-register int loop; /* a loop counter */
+int loop; /* a loop counter */
bool hasmoved = FALSE; /* set if player has moved */
ch = inputoption();
@@ -752,7 +752,7 @@ bool hasmoved = FALSE; /* set if player has moved */
titlelist()
{
-register FILE *fp; /* used for opening various files */
+FILE *fp; /* used for opening various files */
bool councilfound = FALSE; /* set if we find a member of the council */
bool kingfound = FALSE; /* set if we find a king */
double hiexp, nxtexp; /* used for finding the two highest players */
@@ -887,7 +887,7 @@ long
recallplayer()
{
long loc = 0L; /* location in player file */
-register int loop; /* loop counter */
+int loop; /* loop counter */
int ch; /* input */
clear();
@@ -1106,8 +1106,8 @@ int ch; /* input */
genchar(type)
int type;
{
-register int subscript; /* used for subscripting into Stattable */
-register struct charstats *statptr;/* for pointing into Stattable */
+int subscript; /* used for subscripting into Stattable */
+struct charstats *statptr;/* for pointing into Stattable */
subscript = type - '1';
diff --git a/games/phantasia/misc.c b/games/phantasia/misc.c
index 28035cb..d0fbecc 100644
--- a/games/phantasia/misc.c
+++ b/games/phantasia/misc.c
@@ -37,7 +37,7 @@
movelevel()
{
-register struct charstats *statptr; /* for pointing into Stattable */
+struct charstats *statptr; /* for pointing into Stattable */
double new; /* new level */
double inc; /* increment between new and old levels */
@@ -121,8 +121,8 @@ struct player *playerp;
bool shortflag;
{
double circle; /* corresponding circle for coordinates */
-register int quadrant; /* quandrant of grid */
-register char *label; /* pointer to place name */
+int quadrant; /* quandrant of grid */
+char *label; /* pointer to place name */
static char *nametable[4][4] = /* names of places */
{
"Anorien", "Ithilien", "Rohan", "Lorien",
@@ -222,8 +222,8 @@ double numitems; /* number of items to purchase */
double cost; /* cost of purchase */
double blessingcost; /* cost of blessing */
int ch; /* input */
-register int size; /* size of the trading post */
-register int loop; /* loop counter */
+int size; /* size of the trading post */
+int loop; /* loop counter */
int cheat = 0; /* number of times player has tried to cheat */
bool dishonest = FALSE;/* set when merchant is dishonest */
@@ -604,7 +604,7 @@ descrtype(playerp, shortflag)
struct player *playerp;
bool shortflag;
{
-register int type; /* for caluculating result subscript */
+int type; /* for caluculating result subscript */
static char *results[] = /* description table */
{
" Magic User", " MU",
@@ -694,8 +694,8 @@ static char *results[] = /* description table */
long
findname(name, playerp)
-register char *name;
-register struct player *playerp;
+char *name;
+struct player *playerp;
{
long loc = 0; /* location in the file */
@@ -997,7 +997,7 @@ static char *deathmesg[] =
*************************************************************************/
writerecord(playerp, place)
-register struct player *playerp;
+struct player *playerp;
long place;
{
fseek(Playersfp, place, 0);
@@ -1065,9 +1065,9 @@ double experience;
*************************************************************************/
truncstring(string)
-register char *string;
+char *string;
{
-register int length; /* length of string */
+int length; /* length of string */
length = strlen(string);
while (string[--length] == ' ')
@@ -1178,7 +1178,7 @@ int operation;
*************************************************************************/
readrecord(playerp, loc)
-register struct player *playerp;
+struct player *playerp;
long loc;
{
fseek(Playersfp, loc, 0);
@@ -1327,7 +1327,7 @@ double dtemp; /* for temporary calculations */
*************************************************************************/
initplayer(playerp)
-register struct player *playerp;
+struct player *playerp;
{
playerp->p_experience =
playerp->p_level =
@@ -1559,7 +1559,7 @@ int whichsig;
char *
descrstatus(playerp)
-register struct player *playerp;
+struct player *playerp;
{
switch (playerp->p_status)
{
diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c
index a6f2d6e..fddf7f4 100644
--- a/games/phantasia/setup.c
+++ b/games/phantasia/setup.c
@@ -60,7 +60,7 @@ main(argc, argv)
int argc;
char *argv[];
{
- register char **filename; /* for pointing to file names */
+ char **filename; /* for pointing to file names */
register int fd; /* file descriptor */
FILE *fp; /* for opening files */
struct stat fbuf; /* for getting files statistics */
OpenPOWER on IntegriCloud