summaryrefslogtreecommitdiffstats
path: root/gomoku/gomoku.h
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-09-08 21:17:44 +0000
committerjsm <jsm@NetBSD.org>1999-09-08 21:17:44 +0000
commit04f4d7044367099914cf1906ae27ac20c24e44cf (patch)
treec17cb5c2f270bbb70eeba18cbe2bcfa43cfd8e10 /gomoku/gomoku.h
parentf9706028dd6e2afabb6bd63d02d7bc90f78e4aab (diff)
downloadbsdgames-darwin-04f4d7044367099914cf1906ae27ac20c24e44cf.tar.gz
bsdgames-darwin-04f4d7044367099914cf1906ae27ac20c24e44cf.tar.zst
bsdgames-darwin-04f4d7044367099914cf1906ae27ac20c24e44cf.zip
Add use of `const' where appropriate to the games.
This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
Diffstat (limited to 'gomoku/gomoku.h')
-rw-r--r--gomoku/gomoku.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/gomoku/gomoku.h b/gomoku/gomoku.h
index 9f304f80..84ccd471 100644
--- a/gomoku/gomoku.h
+++ b/gomoku/gomoku.h
@@ -1,4 +1,4 @@
-/* $NetBSD: gomoku.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */
+/* $NetBSD: gomoku.h,v 1.6 1999/09/08 21:17:49 jsm Exp $ */
/*
* Copyright (c) 1994
@@ -248,11 +248,11 @@ struct ovlp_info {
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 */
@@ -267,24 +267,24 @@ extern int debug;
void bdinit __P((struct spotstr *));
void init_overlap __P((void));
int getline __P((char *, int));
-void ask __P((char *));
-void dislog __P((char *));
+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((char *)) __attribute__((__noreturn__));
-void log __P((char *));
-void dlog __P((char *));
+void panic __P((const char *)) __attribute__((__noreturn__));
+void log __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 *));
-char *stoc __P((int));
+const char *stoc __P((int));
int lton __P((int));
-int ctos __P((char *));
+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));
@@ -301,5 +301,5 @@ int checkframes __P((struct combostr *, struct combostr *, struct spotstr *,
int, struct ovlp_info *));
void addframes __P((int));
void scanframes __P((int));
-int better __P((struct spotstr *, struct spotstr *, int));
+int better __P((const struct spotstr *, const struct spotstr *, int));
int pickmove __P((int));