X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/13a26126791f719a62e09dc51634c290ba9fdf5f..9853b17d101ca569d22656507e9da0092cfad0ff:/mille/move.c diff --git a/mille/move.c b/mille/move.c index 422e8db7..0008301b 100644 --- a/mille/move.c +++ b/mille/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.4 1995/03/24 05:01:57 cgd Exp $ */ +/* $NetBSD: move.c,v 1.6 1997/05/23 23:09:41 jtc Exp $ */ /* * Copyright (c) 1983, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: move.c,v 1.4 1995/03/24 05:01:57 cgd Exp $"; +static char rcsid[] = "$NetBSD: move.c,v 1.6 1997/05/23 23:09:41 jtc Exp $"; #endif #endif /* not lint */ @@ -50,7 +50,6 @@ static char rcsid[] = "$NetBSD: move.c,v 1.4 1995/03/24 05:01:57 cgd Exp $"; # ifdef attron # include -# define _tty cur_term->Nttyb # endif attron /* @@ -66,9 +65,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 +168,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 +197,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 @@ -342,13 +341,13 @@ protected: if (pp == &Player[PLAYER]) account(card); pp->hand[Card_no] = C_INIT; - Next = (Next == -1 ? FALSE : TRUE); + Next = (Next == (bool)-1 ? FALSE : TRUE); return TRUE; } getmove() { - reg char c, *sp; + register char c, *sp; #ifdef EXTRAP static bool last_ex = FALSE; /* set if last command was E */ @@ -477,9 +476,9 @@ ret: * return whether or not the player has picked */ haspicked(pp) -reg PLAY *pp; { - - reg int card; +register PLAY *pp; +{ + register int card; if (Topcard <= Deck) return TRUE; @@ -496,9 +495,9 @@ reg PLAY *pp; { } account(card) -reg CARD card; { - - reg CARD oppos; +register CARD card; +{ + register CARD oppos; if (card == C_INIT) return; @@ -552,10 +551,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;