diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-09-25 20:51:55 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-09-25 20:51:55 +0000 |
commit | 98d37025ece07e080f9f43b03d71b4c313dd714b (patch) | |
tree | 90b55cdb1f085368276fd724dfa6e04694d3f6c3 /games/hangman/hangman.h | |
parent | 707fbeced379c66976d1a780f9d53537d5a553e0 (diff) |
Merge NetBSD changes (use const where appropriate; allow alternate wordlists).
Add some code beyond that so the game doesn't hang if it gets a badly formatted
alternate wordlist.
Diffstat (limited to 'games/hangman/hangman.h')
-rw-r--r-- | games/hangman/hangman.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/games/hangman/hangman.h b/games/hangman/hangman.h index 5bf38a6f2fb..7d3f7713683 100644 --- a/games/hangman/hangman.h +++ b/games/hangman/hangman.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hangman.h,v 1.3 1999/04/20 22:54:55 pjanzen Exp $ */ +/* $OpenBSD: hangman.h,v 1.4 1999/09/25 20:51:53 pjanzen Exp $ */ /* $NetBSD: hangman.h,v 1.5 1995/04/24 12:23:44 cgd Exp $ */ /* @@ -46,8 +46,11 @@ #include <string.h> #include <unistd.h> #include "pathnames.h" + +#define MAXBADWORDS 100 #define MINLEN 6 +#define MAXLEN 60 #define MAXERRS 7 #define MESGY 12 @@ -71,13 +74,16 @@ typedef struct { extern bool Guessed[]; -extern char Word[], Known[], *Noose_pict[]; +extern char Word[], Known[]; +extern const char *const Noose_pict[]; extern int Errors, Wordnum; extern double Average; -extern ERR_POS Err_pos[]; +extern const ERR_POS Err_pos[]; + +extern const char *Dict_name; extern FILE *Dict; |