-/* $NetBSD: gomoku.h,v 1.2 1996/12/28 18:57:01 tls Exp $
-*/
+/* $NetBSD: gomoku.h,v 1.7 1999/09/13 17:18:57 jsm Exp $ */
+
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
*/
#include <sys/types.h>
+#include <stdio.h>
/* board dimensions */
#define BSZ 19
u_char o_frameindex; /* intersection frame index */
};
-extern char *letters;
+extern const char *letters;
extern char fmtbuf[];
-extern char pdir[];
+extern const char pdir[];
-extern int dd[4];
+extern const int dd[4];
extern struct spotstr board[BAREA]; /* info for board */
extern struct combostr frames[FAREA]; /* storage for single frames */
extern struct combostr *sortframes[2]; /* sorted, non-empty frames */
extern int movenum;
extern int debug;
-extern char *copy();
-extern char *stoc();
-extern char *tail();
-
#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));