summaryrefslogtreecommitdiff
path: root/games/backgammon/teachgammon/tutor.h
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1999-07-31 21:57:42 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1999-07-31 21:57:42 +0000
commita142091aeb7ec9ff1f3e3758ed21605023e31505 (patch)
tree7889cf25905dc0e246600b6c4cfec4e7338e38a9 /games/backgammon/teachgammon/tutor.h
parent17e6bc56e09e27f5065d428383edd57321c0448e (diff)
use const where appropriate (jsm28@cam.ac.uk). Also some very minor tidying.
Diffstat (limited to 'games/backgammon/teachgammon/tutor.h')
-rw-r--r--games/backgammon/teachgammon/tutor.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/games/backgammon/teachgammon/tutor.h b/games/backgammon/teachgammon/tutor.h
index df3130298b6..b031e25f93a 100644
--- a/games/backgammon/teachgammon/tutor.h
+++ b/games/backgammon/teachgammon/tutor.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tutor.h,v 1.2 1998/03/19 11:13:37 pjanzen Exp $ */
+/* $OpenBSD: tutor.h,v 1.3 1999/07/31 21:57:41 pjanzen Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,29 +43,29 @@ struct situatn {
int mg[4];
int new1;
int new2;
- char *(*com[8]);
- char *(*ans[8]);
+ const char *const (*com[8]);
+ const char *const (*ans[8]);
};
-extern char *doubl[];
-extern char *endgame[];
-extern char *hello[];
-extern char *hits[];
-extern char *intro1[];
-extern char *intro2[];
-extern char *lastch[];
-extern char *list[];
-extern int maxmoves;
-extern char *moves[];
-extern char *opts;
-extern char *prog[];
-extern char *prompt;
-extern char *removepiece[];
-extern char *stragy[];
-extern struct situatn test[];
+extern const char *const doubl[];
+extern const char *const endgame[];
+extern const char *const hello[];
+extern const char *const hits[];
+extern const char *const intro1[];
+extern const char *const intro2[];
+extern const char *const lastch[];
+extern const char *const list[];
+extern int maxmoves;
+extern const char *const moves[];
+extern const char *const opts;
+extern const char *const prog[];
+extern const char *const prompt;
+extern const char *const removepiece[];
+extern const char *const stragy[];
+extern const struct situatn test[];
-int brdeq __P((int *, int *));
+int brdeq __P((const int *, const int *));
void clrest __P((void));
void leave __P((void));
void tutor __P((void));