X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a..d83ae3073815d24b7f25631da96992bf92984230:/mille/end.c?ds=sidebyside diff --git a/mille/end.c b/mille/end.c index 6dcb9767..f6b82112 100644 --- a/mille/end.c +++ b/mille/end.c @@ -1,3 +1,5 @@ +/* $NetBSD: end.c,v 1.9 2009/05/25 23:34:50 dholland Exp $ */ + /* * Copyright (c) 1982, 1993 * The Regents of the University of California. All rights reserved. @@ -10,11 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,12 +29,16 @@ * SUCH DAMAGE. */ +#include #ifndef lint -/*static char sccsid[] = "from: @(#)end.c 8.1 (Berkeley) 5/31/93";*/ -static char rcsid[] = "$Id: end.c,v 1.3 1994/05/12 17:39:29 jtc Exp $"; +#if 0 +static char sccsid[] = "@(#)end.c 8.1 (Berkeley) 5/31/93"; +#else +__RCSID("$NetBSD: end.c,v 1.9 2009/05/25 23:34:50 dholland Exp $"); +#endif #endif /* not lint */ -# include "mille.h" +#include "mille.h" /* * @(#)end.c 1.1 (Berkeley) 4/1/82 @@ -46,10 +48,10 @@ static char rcsid[] = "$Id: end.c,v 1.3 1994/05/12 17:39:29 jtc Exp $"; * print out the score as if it was final, and add the totals for * the end-of-games points to the user who deserves it (if any). */ -finalscore(pp) -reg PLAY *pp; { - - reg int temp, tot, num; +void +finalscore(PLAY *pp) +{ + int temp, tot, num; if (pp->was_finished == Finished) return; @@ -83,15 +85,16 @@ reg PLAY *pp; { } } -# ifdef EXTRAP +#ifdef EXTRAP static int Last_tot[2]; /* last tot used for extrapolate */ /* * print out the score as if it was final, and add the totals for * the end-of-games points to the user who deserves it (if any). */ -extrapolate(pp) -reg PLAY *pp; { +void +extrapolate(PLAY *pp) +{ reg int x, num, tot, count; @@ -134,7 +137,9 @@ reg PLAY *pp; { Last_tot[num] = tot; } -undoex() { +void +undoex(void) +{ reg PLAY *pp; reg int i; @@ -145,5 +150,4 @@ undoex() { pp->hand_tot -= Last_tot[i++]; } } -# endif - +#endif /* EXTRAP */