summaryrefslogtreecommitdiffstats
path: root/backgammon
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2004-01-27 20:30:28 +0000
committerjsm <jsm@NetBSD.org>2004-01-27 20:30:28 +0000
commita43fb158d0c5c90291b792d683aa0221403f1893 (patch)
treeabc8b57813f81300bc2b7a4ad80223e666d05d7d /backgammon
parent5572d7c395d19f949cb8a29c96791307e744681c (diff)
downloadbsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.gz
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.zst
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.zip
Remove uses of __P.
Diffstat (limited to 'backgammon')
-rw-r--r--backgammon/backgammon/backlocal.h22
-rw-r--r--backgammon/backgammon/move.c18
-rw-r--r--backgammon/common_source/back.h110
-rw-r--r--backgammon/teachgammon/tutor.h10
4 files changed, 80 insertions, 80 deletions
diff --git a/backgammon/backgammon/backlocal.h b/backgammon/backgammon/backlocal.h
index 792d796d..f3b49a28 100644
--- a/backgammon/backgammon/backlocal.h
+++ b/backgammon/backgammon/backlocal.h
@@ -1,4 +1,4 @@
-/* $NetBSD: backlocal.h,v 1.1 1997/10/10 08:59:35 lukem Exp $ */
+/* $NetBSD: backlocal.h,v 1.2 2004/01/27 20:30:28 jsm Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -36,13 +36,13 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-void dble __P((void));
-int dblgood __P((void));
-int eval __P((void));
-int freemen __P((int));
-void movcmp __P((void));
-void move __P((int));
-int movegood __P((void));
-void pickmove __P((void));
-int trapped __P((int, int));
-void trymove __P((int, int));
+void dble(void);
+int dblgood(void);
+int eval(void);
+int freemen(int);
+void movcmp(void);
+void move(int);
+int movegood(void);
+void pickmove(void);
+int trapped(int, int);
+void trymove(int, int);
diff --git a/backgammon/backgammon/move.c b/backgammon/backgammon/move.c
index 47b49f37..81cc6450 100644
--- a/backgammon/backgammon/move.c
+++ b/backgammon/backgammon/move.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.7 2003/08/07 09:36:56 agc Exp $ */
+/* $NetBSD: move.c,v 1.8 2004/01/27 20:30:28 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move.c,v 1.7 2003/08/07 09:36:56 agc Exp $");
+__RCSID("$NetBSD: move.c,v 1.8 2004/01/27 20:30:28 jsm Exp $");
#endif
#endif /* not lint */
@@ -83,13 +83,13 @@ static int cg[5]; /* candidate finish position */
static int race; /* game reduced to a race */
-static int bcomp __P((struct BOARD *, struct BOARD *));
-static struct BOARD *bsave __P((void));
-static void binsert __P((struct BOARD *));
-static void boardcopy __P((struct BOARD *));
-static void makefree __P((struct BOARD *));
-static void mvcheck __P((struct BOARD *, struct BOARD *));
-static struct BOARD *nextfree __P((void));
+static int bcomp(struct BOARD *, struct BOARD *);
+static struct BOARD *bsave(void);
+static void binsert(struct BOARD *);
+static void boardcopy(struct BOARD *);
+static void makefree(struct BOARD *);
+static void mvcheck(struct BOARD *, struct BOARD *);
+static struct BOARD *nextfree(void);
void
diff --git a/backgammon/common_source/back.h b/backgammon/common_source/back.h
index d974d7e6..468d0e0b 100644
--- a/backgammon/common_source/back.h
+++ b/backgammon/common_source/back.h
@@ -1,4 +1,4 @@
-/* $NetBSD: back.h,v 1.13 2003/08/07 09:36:56 agc Exp $ */
+/* $NetBSD: back.h,v 1.14 2004/01/27 20:30:28 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -129,57 +129,57 @@ extern int curc; /* column position of cursor */
extern int begscr; /* 'beginning' of screen
(not including board) */
-int addbuf __P((int));
-void backone __P((int));
-void bsect __P((int, int, int, int));
-void buflush __P((void));
-int canhit __P((int, int));
-int checkd __P((int));
-int checkmove __P((int));
-void clear __P((void));
-void clend __P((void));
-void cline __P((void));
-int count __P((void));
-void curmove __P((int, int));
-int dotable __P((char, int));
-void errexit __P((const char *)) __attribute__((__noreturn__));
-void fancyc __P((int));
-void fboard __P((void));
-void fixcol __P((int, int, int, int, int));
-void fixpos __P((int, int, int, int, int));
-void fixtty __P((struct termios *));
-void getarg __P((char ***));
-int getcaps __P((const char *));
-void getmove __P((void));
-void getout __P((int)) __attribute__((__noreturn__));
-void gwrite __P((void));
-void init __P((void));
-int last __P((void));
-int main __P((int, char *[]));
-int makmove __P((int));
-int movallow __P((void));
-void movback __P((int));
-void moverr __P((int));
-int movokay __P((int));
-void newline __P((void));
-void newpos __P((void));
-void nexturn __P((void));
-void norec __P((const char *)) __attribute__((__noreturn__));
-void odds __P((int, int, int));
-void proll __P((void));
-int quit __P((void));
-int readc __P((void));
-void recover __P((const char *));
-void refresh __P((void));
-void roll __P((void));
-int rsetbrd __P((void));
-void save __P((int));
-int text __P((const char *const *));
-void wrboard __P((void));
-void wrbsub __P((void));
-void wrhit __P((int));
-void wrint __P((int));
-void writec __P((char));
-void writel __P((const char *));
-void wrscore __P((void));
-int yorn __P((char));
+int addbuf(int);
+void backone(int);
+void bsect(int, int, int, int);
+void buflush(void);
+int canhit(int, int);
+int checkd(int);
+int checkmove(int);
+void clear(void);
+void clend(void);
+void cline(void);
+int count(void);
+void curmove(int, int);
+int dotable(char, int);
+void errexit(const char *) __attribute__((__noreturn__));
+void fancyc(int);
+void fboard(void);
+void fixcol(int, int, int, int, int);
+void fixpos(int, int, int, int, int);
+void fixtty(struct termios *);
+void getarg(char ***);
+int getcaps(const char *);
+void getmove(void);
+void getout(int) __attribute__((__noreturn__));
+void gwrite(void);
+void init(void);
+int last(void);
+int main(int, char *[]);
+int makmove(int);
+int movallow(void);
+void movback(int);
+void moverr(int);
+int movokay(int);
+void newline(void);
+void newpos(void);
+void nexturn(void);
+void norec(const char *) __attribute__((__noreturn__));
+void odds(int, int, int);
+void proll(void);
+int quit(void);
+int readc(void);
+void recover(const char *);
+void refresh(void);
+void roll(void);
+int rsetbrd(void);
+void save(int);
+int text(const char *const *);
+void wrboard(void);
+void wrbsub(void);
+void wrhit(int);
+void wrint(int);
+void writec(char);
+void writel(const char *);
+void wrscore(void);
+int yorn(char);
diff --git a/backgammon/teachgammon/tutor.h b/backgammon/teachgammon/tutor.h
index d0544bf4..6fcceffd 100644
--- a/backgammon/teachgammon/tutor.h
+++ b/backgammon/teachgammon/tutor.h
@@ -1,4 +1,4 @@
-/* $NetBSD: tutor.h,v 1.7 2003/08/07 09:36:59 agc Exp $ */
+/* $NetBSD: tutor.h,v 1.8 2004/01/27 20:30:28 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -62,7 +62,7 @@ extern const char *const stragy[];
extern const struct situatn test[];
-int brdeq __P((const int *, const int *));
-void clrest __P((void));
-void leave __P((void)) __attribute__((__noreturn__));
-void tutor __P((void)) __attribute__((__noreturn__));
+int brdeq(const int *, const int *);
+void clrest(void);
+void leave(void) __attribute__((__noreturn__));
+void tutor(void) __attribute__((__noreturn__));