]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - mille/print.c
defined(attron) does not mean there is a <term.h>
[bsdgames-darwin.git] / mille / print.c
index 1d32a09707b759793ebb460a536549072a9f2225..dee19d4abdd75ce9f43f7c5d3362cf52b16406ce 100644 (file)
@@ -1,6 +1,8 @@
+/*     $NetBSD: print.c,v 1.6 1997/10/12 00:54:24 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
  * SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
 #ifndef lint
-static char sccsid[] = "@(#)print.c    5.4 (Berkeley) 6/1/90";
+#if 0
+static char sccsid[] = "@(#)print.c    8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: print.c,v 1.6 1997/10/12 00:54:24 lukem Exp $");
+#endif
 #endif /* not lint */
 
 # include      "mille.h"
@@ -44,10 +51,11 @@ static char sccsid[] = "@(#)print.c 5.4 (Berkeley) 6/1/90";
 # define       COMP_STRT       20
 # define       CARD_STRT       2
 
-prboard() {
-
-       reg PLAY        *pp;
-       reg int         i, j, k, temp;
+void
+prboard()
+{
+       PLAY    *pp;
+       int     i, j, k, temp;
 
        for (k = 0; k < 2; k++) {
                pp = &Player[k];
@@ -62,8 +70,8 @@ prboard() {
                show_card(14, temp, pp->battle, &pp->sh_battle);
                show_card(16, temp, pp->speed, &pp->sh_speed);
                for (i = C_25; i <= C_200; i++) {
-                       reg char        *name;
-                       reg int         end;
+                       char    *name;
+                       int     end;
 
                        if (pp->nummiles[i] == pp->sh_nummiles[i])
                                continue;
@@ -98,9 +106,10 @@ prboard() {
  * show_card:
  *     Show the given card if it is different from the last one shown
  */
+void
 show_card(y, x, c, lc)
-int            y, x;
-register CARD  c, *lc;
+       int     y, x;
+       CARD    c, *lc;
 {
        if (c == *lc)
                return;
@@ -111,11 +120,12 @@ register CARD     c, *lc;
 
 static char    Score_fmt[] = "%4d";
 
+void
 prscore(for_real)
-reg bool       for_real; {
-
-       reg PLAY        *pp;
-       reg int         x;
+       bool    for_real; 
+{
+       PLAY    *pp;
+       int     x;
 
        stdscr = Score;
        for (pp = Player; pp < &Player[2]; pp++) {
@@ -157,9 +167,10 @@ reg bool   for_real; {
  *     Show a score value if it is different from the last time we
  *     showed it.
  */
+void
 show_score(y, x, s, ls)
-int            y, x;
-register int   s, *ls;
+       int     y, x;
+       int     s, *ls;
 {
        if (s == *ls)
                return;