+/* $NetBSD: extern.c,v 1.7 2002/01/20 00:42:51 jsm Exp $ */
+
/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1983, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-/*static char sccsid[] = "from: @(#)extern.c 5.3 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: extern.c,v 1.2 1993/08/01 18:54:27 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)extern.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: extern.c,v 1.7 2002/01/20 00:42:51 jsm Exp $");
+#endif
#endif /* not lint */
-# include "hangman.h"
+#include "hangman.h"
-bool Guessed[26];
+bool Guessed[26];
-char Word[BUFSIZ],
- Known[BUFSIZ],
- *Noose_pict[] = {
- " ______",
- " | |",
- " |",
- " |",
- " |",
- " |",
- " __|_____",
- " | |___",
- " |_________|",
- NULL
- };
+char Word[BUFSIZ], Known[BUFSIZ];
+const char *const Noose_pict[] = {
+ " ______",
+ " | |",
+ " |",
+ " |",
+ " |",
+ " |",
+ " __|_____",
+ " | |___",
+ " |_________|",
+ NULL
+};
-int Errors,
- Wordnum = 0;
+int Errors, Wordnum = 0;
+unsigned int Minlen = MINLEN;
-double Average = 0.0;
+double Average = 0.0;
-ERR_POS Err_pos[MAXERRS] = {
- { 2, 10, 'O' },
- { 3, 10, '|' },
- { 4, 10, '|' },
- { 5, 9, '/' },
- { 3, 9, '/' },
- { 3, 11, '\\' },
- { 5, 11, '\\' }
+const ERR_POS Err_pos[MAXERRS] = {
+ {2, 10, 'O'},
+ {3, 10, '|'},
+ {4, 10, '|'},
+ {5, 9, '/'},
+ {3, 9, '/'},
+ {3, 11, '\\'},
+ {5, 11, '\\'}
};
-FILE *Dict = NULL;
+const char *Dict_name = _PATH_DICT;
+
+FILE *Dict = NULL;
-off_t Dict_size;
+off_t Dict_size;