+/* $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.
* 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.
*
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#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
* 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;
}
}
-# 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;
Last_tot[num] = tot;
}
-undoex() {
+void
+undoex(void)
+{
reg PLAY *pp;
reg int i;
pp->hand_tot -= Last_tot[i++];
}
}
-# endif
-
+#endif /* EXTRAP */