X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/04f4d7044367099914cf1906ae27ac20c24e44cf..f10f12c30fc0f088e947a4836f528ac1d880664a:/cribbage/cribbage.h diff --git a/cribbage/cribbage.h b/cribbage/cribbage.h index 51dd3764..6abe6916 100644 --- a/cribbage/cribbage.h +++ b/cribbage/cribbage.h @@ -1,4 +1,4 @@ -/* $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 @@ -12,11 +12,7 @@ * 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. * @@ -57,58 +53,35 @@ extern BOOLEAN iwon; /* if comp won last */ 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);