-/* $NetBSD: cribbage.h,v 1.5 1999/09/08 21:17:47 jsm Exp $ */
+/* $NetBSD: cribbage.h,v 1.17 2012/10/13 20:36:06 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
* 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.
*
extern BOOLEAN explain; /* player mistakes explained */
extern BOOLEAN rflag; /* if all cuts random */
extern BOOLEAN quiet; /* if suppress random mess */
-extern BOOLEAN playing; /* currently playing game */
-extern char expl[]; /* string for explanation */
+extern char explan[]; /* string for explanation */
-void addmsg __P((const char *, ...));
-int adjust __P((const CARD [], CARD));
-int anymove __P((const CARD [], int, int));
-int anysumto __P((const CARD [], int, int, int));
-void bye __P((void));
-int cchose __P((const CARD [], int, int));
-void cdiscard __P((BOOLEAN));
-int chkscr __P((int *, int));
-int comphand __P((const CARD [], const char *));
-void cremove __P((CARD, CARD [], int));
-int cut __P((BOOLEAN, int));
-int deal __P((int));
-void discard __P((BOOLEAN));
-void do_wait __P((void));
-void endmsg __P((void));
-int eq __P((CARD, CARD));
-int fifteens __P((const CARD [], int));
-void game __P((void));
-void gamescore __P((void));
-char *getline __P((void));
-int getuchar __P((void));
-int incard __P((CARD *));
-int infrom __P((const CARD [], int, const char *));
-void instructions __P((void));
-int is_one __P((CARD, const CARD [], int));
-void makeboard __P((void));
-void makedeck __P((CARD []));
-void makeknown __P((const CARD [], int));
-void msg __P((const char *, ...));
-int msgcard __P((CARD, BOOLEAN));
-int msgcrd __P((CARD, BOOLEAN, const char *, BOOLEAN));
-int number __P((int, int, const char *));
-int numofval __P((const CARD [], int, int));
-int pairuns __P((const CARD [], int));
-int peg __P((BOOLEAN));
-int pegscore __P((CARD, const CARD [], int, int));
-int playhand __P((BOOLEAN));
-int plyrhand __P((const CARD [], const char *));
-void prcard __P((WINDOW *, int, int, CARD, BOOLEAN));
-void prcrib __P((BOOLEAN, BOOLEAN));
-void prhand __P((const CARD [], int, WINDOW *, BOOLEAN));
-void printcard __P((WINDOW *, int, CARD, BOOLEAN));
-void prpeg __P((int, int, BOOLEAN));
-void prtable __P((int));
-int readchar __P((void));
-void rint __P((int)) __attribute__((__noreturn__));
-int score __P((BOOLEAN));
-int scorehand __P((const CARD [], CARD, int, BOOLEAN, BOOLEAN));
-void shuffle __P((CARD []));
-void sorthand __P((CARD [], int));
-void wait_for __P((int));
+void addmsg(const char *, ...) __printflike(1, 2);
+int adjust(const CARD [], CARD);
+int anymove(const CARD [], int, int);
+void bye(void);
+int cchose(const CARD [], int, int);
+void cdiscard(BOOLEAN);
+int chkscr(int *, int);
+int comphand(const CARD [], const char *);
+void cremove(CARD, CARD [], int);
+void do_wait(void);
+void endmsg(void);
+char *get_line(void);
+int getuchar(void);
+int infrom(const CARD [], int, const char *);
+void instructions(void);
+int is_one(CARD, const CARD [], int);
+void makedeck(CARD []);
+void makeknown(const CARD [], int);
+void msg(const char *, ...) __printflike(1, 2);
+int msgcard(CARD, BOOLEAN);
+int number(int, int, const char *);
+int pegscore(CARD, const CARD [], unsigned, int);
+int plyrhand(const CARD [], const char *);
+void prcard(WINDOW *, int, int, CARD, BOOLEAN);
+void prhand(const CARD [], unsigned, WINDOW *, BOOLEAN);
+void receive_intr(int) __dead;
+int scorehand(const CARD [], CARD, int, BOOLEAN, BOOLEAN);
+void shuffle(CARD []);
+void sorthand(CARD [], int);