Add copyright
[unix-history] / usr / src / games / cribbage / score.c
index ef1e493..0c90dd1 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+static char sccsid[] = "@(#)score.c    5.1 (Berkeley) %G%";
+#endif not lint
 
 #include       <stdio.h>
 #include       "deck.h"
 
 #include       <stdio.h>
 #include       "deck.h"
@@ -73,12 +82,12 @@ BOOLEAN                     do_explain;     /* true if must explain this hand */
        CARD                    h[(CINHAND + 1)];
        register int            i, k;
        register int            score;
        CARD                    h[(CINHAND + 1)];
        register int            i, k;
        register int            score;
-       BOOLEAN                 flag;
+       register BOOLEAN        flag;
        char                    buf[32];
 
        expl[0] = NULL;         /* initialize explanation */
        score = 0;
        char                    buf[32];
 
        expl[0] = NULL;         /* initialize explanation */
        score = 0;
-       flag = !crb;
+       flag = TRUE;
        k = hand[0].suit;
        for (i = 0; i < n; i++) {                       /* check for flush */
            flag = (flag && (hand[i].suit == k));
        k = hand[0].suit;
        for (i = 0; i < n; i++) {                       /* check for flush */
            flag = (flag && (hand[i].suit == k));