X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/462fca95471224f85b85be911e72faee16cd1597..5a5bf2abf0d9a42df55b7ff2d902b35e0dd9b7de:/mille/types.c diff --git a/mille/types.c b/mille/types.c index 52da9fbd..a4cde54e 100644 --- a/mille/types.c +++ b/mille/types.c @@ -1,6 +1,8 @@ +/* $NetBSD: types.c,v 1.6 1997/10/12 00:54:40 lukem Exp $ */ + /* - * Copyright (c) 1982 Regents of the University of California. - * All rights reserved. + * Copyright (c) 1982, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,9 +33,13 @@ * SUCH DAMAGE. */ +#include #ifndef lint -/*static char sccsid[] = "from: @(#)types.c 5.4 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: types.c,v 1.2 1993/08/01 18:53:54 mycroft Exp $"; +#if 0 +static char sccsid[] = "@(#)types.c 8.1 (Berkeley) 5/31/93"; +#else +__RCSID("$NetBSD: types.c,v 1.6 1997/10/12 00:54:40 lukem Exp $"); +#endif #endif /* not lint */ # include "mille.h" @@ -42,15 +48,19 @@ static char rcsid[] = "$Id: types.c,v 1.2 1993/08/01 18:53:54 mycroft Exp $"; * @(#)types.c 1.1 (Berkeley) 4/1/82 */ +int isrepair(card) -reg CARD card; { + CARD card; +{ - return card == C_GAS || card == C_SPARE || card == C_REPAIRS || card == C_INIT; + return card == C_GAS || card == C_SPARE || + card == C_REPAIRS || card == C_INIT; } +int safety(card) -reg CARD card; { - + CARD card; +{ switch (card) { case C_EMPTY: case C_GAS: @@ -72,5 +82,5 @@ reg CARD card; { return C_RIGHT_WAY; } /* NOTREACHED */ + return(0); } -