mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
new upstream
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.18 2003/08/07 09:36:56 agc Exp $ */
|
||||
/* $NetBSD: main.c,v 1.20 2004/02/08 22:23:50 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.18 2003/08/07 09:36:56 agc Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.20 2004/02/08 22:23:50 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: data.c,v 1.6 2003/08/07 09:36:58 agc Exp $ */
|
||||
/* $NetBSD: data.c,v 1.7 2004/01/01 15:59:09 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@@ -34,7 +34,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)data.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: data.c,v 1.6 2003/08/07 09:36:58 agc Exp $");
|
||||
__RCSID("$NetBSD: data.c,v 1.7 2004/01/01 15:59:09 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: teach.c,v 1.14 2003/08/07 09:36:58 agc Exp $ */
|
||||
/* $NetBSD: teach.c,v 1.15 2004/02/08 22:23:50 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: teach.c,v 1.14 2003/08/07 09:36:58 agc Exp $");
|
||||
__RCSID("$NetBSD: teach.c,v 1.15 2004/02/08 22:23:50 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
||||
@@ -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__));
|
||||
|
||||
Reference in New Issue
Block a user