summaryrefslogtreecommitdiffstats
path: root/games/robots
diff options
context:
space:
mode:
Diffstat (limited to 'games/robots')
-rw-r--r--games/robots/init_field.c6
-rw-r--r--games/robots/main.c8
-rw-r--r--games/robots/make_level.c8
-rw-r--r--games/robots/move.c10
-rw-r--r--games/robots/move_robs.c6
-rw-r--r--games/robots/play_level.c4
-rw-r--r--games/robots/query.c4
-rw-r--r--games/robots/rnd_pos.c2
-rw-r--r--games/robots/score.c18
9 files changed, 33 insertions, 33 deletions
diff --git a/games/robots/init_field.c b/games/robots/init_field.c
index 7ed38df..43bf89b 100644
--- a/games/robots/init_field.c
+++ b/games/robots/init_field.c
@@ -47,9 +47,9 @@ static char sccsid[] = "@(#)init_field.c 8.1 (Berkeley) 5/31/93";
*/
init_field()
{
- register int i;
- register WINDOW *wp;
- register int j;
+ int i;
+ WINDOW *wp;
+ int j;
static bool first = TRUE;
static char *desc[] = {
"Directions:",
diff --git a/games/robots/main.c b/games/robots/main.c
index 6ca6f88..0be8409 100644
--- a/games/robots/main.c
+++ b/games/robots/main.c
@@ -52,9 +52,9 @@ main(ac, av)
int ac;
char **av;
{
- register char *sp;
- register bool bad_arg;
- register bool show_only;
+ char *sp;
+ bool bad_arg;
+ bool show_only;
extern char *Scorefile;
extern int Max_per_uid;
void quit();
@@ -173,7 +173,7 @@ quit()
*/
another()
{
- register int y;
+ int y;
#ifdef FANCY
if ((Stand_still || Pattern_roll) && !Newscore)
diff --git a/games/robots/make_level.c b/games/robots/make_level.c
index a6f06ef..06e908e 100644
--- a/games/robots/make_level.c
+++ b/games/robots/make_level.c
@@ -45,10 +45,10 @@ static char sccsid[] = "@(#)make_level.c 8.1 (Berkeley) 5/31/93";
*/
make_level()
{
- register int i;
- register COORD *cp;
- register WINDOW *wp;
- register int x, *endp;
+ int i;
+ COORD *cp;
+ WINDOW *wp;
+ int x, *endp;
reset_count();
for (i = 1; i < Y_FIELDSIZE; i++)
diff --git a/games/robots/move.c b/games/robots/move.c
index d3f0d07..6c274b2 100644
--- a/games/robots/move.c
+++ b/games/robots/move.c
@@ -49,8 +49,8 @@ static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
*/
get_move()
{
- register int c;
- register int y, x, lastmove;
+ int c;
+ int y, x, lastmove;
static COORD newpos;
if (Waiting)
@@ -198,7 +198,7 @@ ret:
*/
must_telep()
{
- register int x, y;
+ int x, y;
static COORD newpos;
#ifdef FANCY
@@ -264,9 +264,9 @@ int dy, dx;
* Player would get eaten at this place
*/
eaten(pos)
-register COORD *pos;
+COORD *pos;
{
- register int x, y;
+ int x, y;
for (y = pos->y - 1; y <= pos->y + 1; y++) {
if (y <= 0 || y >= Y_FIELDSIZE)
diff --git a/games/robots/move_robs.c b/games/robots/move_robs.c
index bfc2c5c..560a1b4 100644
--- a/games/robots/move_robs.c
+++ b/games/robots/move_robs.c
@@ -48,9 +48,9 @@ void
move_robots(was_sig)
bool was_sig;
{
- register COORD *rp;
- register int y, x;
- register int mindist, d;
+ COORD *rp;
+ int y, x;
+ int mindist, d;
static COORD newpos;
if (Real_time)
diff --git a/games/robots/play_level.c b/games/robots/play_level.c
index dd72a15..ee33190 100644
--- a/games/robots/play_level.c
+++ b/games/robots/play_level.c
@@ -45,8 +45,8 @@ static char sccsid[] = "@(#)play_level.c 8.1 (Berkeley) 5/31/93";
*/
play_level()
{
- register COORD *cp;
- register int y, x, bonus;
+ COORD *cp;
+ int y, x, bonus;
move(My_pos.y, My_pos.x);
addch(PLAYER);
diff --git a/games/robots/query.c b/games/robots/query.c
index f7f046e..8f79499 100644
--- a/games/robots/query.c
+++ b/games/robots/query.c
@@ -47,8 +47,8 @@ static char sccsid[] = "@(#)query.c 8.1 (Berkeley) 5/31/93";
query(prompt)
char *prompt;
{
- register int c, retval;
- register int y, x;
+ int c, retval;
+ int y, x;
getyx(stdscr, y, x);
move(Y_PROMPT, X_PROMPT);
diff --git a/games/robots/rnd_pos.c b/games/robots/rnd_pos.c
index 971b331..933d765 100644
--- a/games/robots/rnd_pos.c
+++ b/games/robots/rnd_pos.c
@@ -51,7 +51,7 @@ rnd_pos()
{
static COORD pos;
static int call = 0;
- register int i = 0;
+ int i = 0;
do {
pos.y = rnd(Y_FIELDSIZE - 1) + 1;
diff --git a/games/robots/score.c b/games/robots/score.c
index 54c66ad..35e6167 100644
--- a/games/robots/score.c
+++ b/games/robots/score.c
@@ -63,10 +63,10 @@ static SCORE Top[MAXSCORES];
*/
score()
{
- register int inf;
- register SCORE *scp;
- register int uid;
- register bool done_show = FALSE;
+ int inf;
+ SCORE *scp;
+ int uid;
+ bool done_show = FALSE;
static int numscores, max_uid;
Newscore = FALSE;
@@ -139,9 +139,9 @@ score()
}
set_name(scp)
-register SCORE *scp;
+SCORE *scp;
{
- register PASSWD *pp;
+ PASSWD *pp;
if ((pp = getpwuid(scp->s_uid)) == NULL)
pp->pw_name = "???";
@@ -153,7 +153,7 @@ register SCORE *scp;
* Compare two scores.
*/
cmp_sc(s1, s2)
-register SCORE *s1, *s2;
+SCORE *s1, *s2;
{
return s2->s_score - s1->s_score;
}
@@ -164,8 +164,8 @@ register SCORE *s1, *s2;
*/
show_score()
{
- register SCORE *scp;
- register int inf;
+ SCORE *scp;
+ int inf;
static int max_score;
if ((inf = open(Scorefile, 0)) < 0) {
OpenPOWER on IntegriCloud