summaryrefslogtreecommitdiff
path: root/games/mille/move.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-06-02 19:47:13 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-06-02 19:47:13 +0000
commit53bde7aa54dba785761adf2e07bce713745dca5c (patch)
tree1a25d53d4d9eacde0eb46375ec056b291107f010 /games/mille/move.c
parent1ff7940dde0b51ff9be56ffa751f4a93c90d65e5 (diff)
Update for modern curses implementation
Diffstat (limited to 'games/mille/move.c')
-rw-r--r--games/mille/move.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/games/mille/move.c b/games/mille/move.c
index 422e8db72df..c7c1a007a83 100644
--- a/games/mille/move.c
+++ b/games/mille/move.c
@@ -44,9 +44,6 @@ static char rcsid[] = "$NetBSD: move.c,v 1.4 1995/03/24 05:01:57 cgd Exp $";
#include <termios.h>
#include "mille.h"
-#ifndef unctrl
-#include "unctrl.h"
-#endif
# ifdef attron
# include <term.h>
@@ -66,9 +63,9 @@ char *Movenames[] = {
domove()
{
- reg PLAY *pp;
- reg int i, j;
- reg bool goodplay;
+ register PLAY *pp;
+ register int i, j;
+ register bool goodplay;
pp = &Player[Play];
if (Play == PLAYER)
@@ -169,9 +166,9 @@ acc:
*/
check_go() {
- reg CARD card;
- reg PLAY *pp, *op;
- reg int i;
+ register CARD card;
+ register PLAY *pp, *op;
+ register int i;
for (pp = Player; pp < &Player[2]; pp++) {
op = (pp == &Player[COMP] ? &Player[PLAYER] : &Player[COMP]);
@@ -198,10 +195,10 @@ check_go() {
}
playcard(pp)
-reg PLAY *pp;
+register PLAY *pp;
{
- reg int v;
- reg CARD card;
+ register int v;
+ register CARD card;
/*
* check and see if player has picked
@@ -348,7 +345,7 @@ protected:
getmove()
{
- reg char c, *sp;
+ register char c, *sp;
#ifdef EXTRAP
static bool last_ex = FALSE; /* set if last command was E */
@@ -477,9 +474,9 @@ ret:
* return whether or not the player has picked
*/
haspicked(pp)
-reg PLAY *pp; {
+register PLAY *pp; {
- reg int card;
+ register int card;
if (Topcard <= Deck)
return TRUE;
@@ -496,9 +493,9 @@ reg PLAY *pp; {
}
account(card)
-reg CARD card; {
+register CARD card; {
- reg CARD oppos;
+ register CARD oppos;
if (card == C_INIT)
return;
@@ -552,10 +549,10 @@ int promptno;
}
sort(hand)
-reg CARD *hand;
+register CARD *hand;
{
- reg CARD *cp, *tp;
- reg CARD temp;
+ register CARD *cp, *tp;
+ register CARD temp;
cp = hand;
hand += HAND_SZ;