-/* $NetBSD: print.c,v 1.3 1995/03/23 08:35:05 cgd Exp $ */
+/* $NetBSD: print.c,v 1.4 1997/10/12 17:45:22 christos Exp $ */
/*
* Copyright (c) 1980, 1993
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: print.c,v 1.3 1995/03/23 08:35:05 cgd Exp $";
+__RCSID("$NetBSD: print.c,v 1.4 1997/10/12 17:45:22 christos Exp $");
#endif
#endif /* not lint */
# include "monop.ext"
-static char buf[80], /* output buffer */
- *header = "Name Own Price Mg # Rent";
+static char *header = "Name Own Price Mg # Rent";
+
+static void printmorg __P((SQUARE *));
/*
* This routine prints out the current board
*/
-printboard() {
+void
+printboard()
+{
- reg int i;
+ int i;
printf("%s\t%s\n", header, header);
for (i = 0; i < N_SQRS/2; i++) {
/*
* This routine lists where each player is.
*/
-where() {
+void
+where()
+{
- reg int i;
- char *bsp;
+ int i;
printf("%s Player\n", header);
for (i = 0; i < num_play; i++) {
/*
* This routine prints out an individual square
*/
+void
printsq(sqn, eoln)
int sqn;
-reg bool eoln; {
+bool eoln;
+{
- reg int rnt;
- reg PROP *pp;
- reg SQUARE *sqp;
- int i;
+ int rnt;
+ PROP *pp;
+ SQUARE *sqp;
sqp = &board[sqn];
printf("%-10.10s", sqp->name);
case GOTO_J:
case LUX_TAX:
case IN_JAIL:
-spec:
if (!eoln)
printf(" ");
break;
/*
* This routine prints out the mortgage flag.
*/
+static void
printmorg(sqp)
-reg SQUARE *sqp; {
+SQUARE *sqp;
+{
if (sqp->desc->morg)
printf(" * ");
/*
* This routine lists the holdings of the player given
*/
+void
printhold(pl)
-reg int pl; {
+int pl;
+{
- reg OWN *op;
- reg PLAY *pp;
- char *bsp;
+ OWN *op;
+ PLAY *pp;
pp = &play[pl];
printf("%s's (%d) holdings (Total worth: $%d):\n", name_list[pl], pl+1,