new upstream

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2004-02-14 21:35:37 +00:00
parent 26fb70d304
commit a02c126403
224 changed files with 5624 additions and 2217 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: gomoku.h,v 1.8 2003/08/07 09:37:17 agc Exp $ */
/* $NetBSD: gomoku.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1994
@@ -35,10 +35,8 @@
*/
#include <sys/types.h>
#include <sys/endian.h>
#include <stdio.h>
#ifdef __linux__
#include <endian.h>
#endif
/* board dimensions */
#define BSZ 19
@@ -263,42 +261,42 @@ extern int debug;
#define ASSERT(x)
void bdinit __P((struct spotstr *));
void init_overlap __P((void));
int getline __P((char *, int));
void ask __P((const char *));
void dislog __P((const char *));
void bdump __P((FILE *));
void bdisp __P((void));
void bdisp_init __P((void));
void cursfini __P((void));
void cursinit __P((void));
void bdwho __P((int));
void panic __P((const char *)) __attribute__((__noreturn__));
void glog __P((const char *));
void dlog __P((const char *));
void quit __P((void)) __attribute__((__noreturn__));
void quitsig __P((int)) __attribute__((__noreturn__));
void whatsup __P((int));
int readinput __P((FILE *));
const char *stoc __P((int));
int lton __P((int));
int ctos __P((const char *));
void update_overlap __P((struct spotstr *));
int makemove __P((int, int));
int list_eq __P((struct combostr **, struct combostr **, int));
void clearcombo __P((struct combostr *, int));
void makeempty __P((struct combostr *));
void appendcombo __P((struct combostr *, int));
void updatecombo __P((struct combostr *, int));
void markcombo __P((struct combostr *));
void printcombo __P((struct combostr *, char *));
void makecombo __P((struct combostr *, struct spotstr *, int, int));
void makecombo2 __P((struct combostr *, struct spotstr *, int, int));
int sortcombo __P((struct combostr **, struct combostr **, struct combostr *));
int checkframes __P((struct combostr *, struct combostr *, struct spotstr *,
int, struct ovlp_info *));
void addframes __P((int));
void scanframes __P((int));
int better __P((const struct spotstr *, const struct spotstr *, int));
int pickmove __P((int));
void bdinit(struct spotstr *);
void init_overlap(void);
int getline(char *, int);
void ask(const char *);
void dislog(const char *);
void bdump(FILE *);
void bdisp(void);
void bdisp_init(void);
void cursfini(void);
void cursinit(void);
void bdwho(int);
void panic(const char *) __attribute__((__noreturn__));
void glog(const char *);
void dlog(const char *);
void quit(void) __attribute__((__noreturn__));
void quitsig(int) __attribute__((__noreturn__));
void whatsup(int);
int readinput(FILE *);
const char *stoc(int);
int lton(int);
int ctos(const char *);
void update_overlap(struct spotstr *);
int makemove(int, int);
int list_eq(struct combostr **, struct combostr **, int);
void clearcombo(struct combostr *, int);
void makeempty(struct combostr *);
void appendcombo(struct combostr *, int);
void updatecombo(struct combostr *, int);
void markcombo(struct combostr *);
void printcombo(struct combostr *, char *);
void makecombo(struct combostr *, struct spotstr *, int, int);
void makecombo2(struct combostr *, struct spotstr *, int, int);
int sortcombo(struct combostr **, struct combostr **, struct combostr *);
int checkframes(struct combostr *, struct combostr *, struct spotstr *,
int, struct ovlp_info *);
void addframes(int);
void scanframes(int);
int better(const struct spotstr *, const struct spotstr *, int);
int pickmove(int);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.11 2003/08/07 09:37:17 agc Exp $ */
/* $NetBSD: main.c,v 1.12 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1994
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: main.c,v 1.11 2003/08/07 09:37:17 agc Exp $");
__RCSID("$NetBSD: main.c,v 1.12 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -79,7 +79,7 @@ int movelog[BSZ * BSZ]; /* log of all the moves */
int movenum; /* current move number */
const char *plyr[2]; /* who's who */
int main __P((int, char *[]));
int main(int, char *[]);
int
main(argc, argv)

View File

@@ -1,4 +1,4 @@
/* $NetBSD: pickmove.c,v 1.10 2003/08/07 09:37:17 agc Exp $ */
/* $NetBSD: pickmove.c,v 1.11 2004/01/27 20:26:20 jsm Exp $ */
/*
* Copyright (c) 1994
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95";
#else
__RCSID("$NetBSD: pickmove.c,v 1.10 2003/08/07 09:37:17 agc Exp $");
__RCSID("$NetBSD: pickmove.c,v 1.11 2004/01/27 20:26:20 jsm Exp $");
#endif
#endif /* not lint */