+/* $NetBSD: hangman.h,v 1.6 1997/10/11 01:16:34 lukem 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
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)hangman.h 5.5 (Berkeley) 2/28/91
+ * @(#)hangman.h 8.1 (Berkeley) 5/31/93
*/
-# include <curses.h>
-# include <sys/types.h>
-# include <sys/stat.h>
-# include <ctype.h>
-# include <signal.h>
-# include "pathnames.h"
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <curses.h>
+#include <signal.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include "pathnames.h"
-# define MINLEN 6
-# define MAXERRS 7
+#define MINLEN 6
+#define MAXERRS 7
-# define MESGY 12
-# define MESGX 0
-# define PROMPTY 11
-# define PROMPTX 0
-# define KNOWNY 10
-# define KNOWNX 1
-# define NUMBERY 4
-# define NUMBERX (COLS - 1 - 26)
-# define AVGY 5
-# define AVGX (COLS - 1 - 26)
-# define GUESSY 2
-# define GUESSX (COLS - 1 - 26)
+#define MESGY 12
+#define MESGX 0
+#define PROMPTY 11
+#define PROMPTX 0
+#define KNOWNY 10
+#define KNOWNX 1
+#define NUMBERY 4
+#define NUMBERX (COLS - 1 - 26)
+#define AVGY 5
+#define AVGX (COLS - 1 - 26)
+#define GUESSY 2
+#define GUESSX (COLS - 1 - 26)
typedef struct {
- short y, x;
- char ch;
-} ERR_POS;
-
-extern bool Guessed[];
+ short y, x;
+ char ch;
+} ERR_POS;
-extern char Word[], Known[], *Noose_pict[];
+extern bool Guessed[];
-extern int Errors, Wordnum;
+extern char Word[], Known[], *Noose_pict[];
-extern double Average;
+extern int Errors, Wordnum;
-extern ERR_POS Err_pos[];
+extern double Average;
-extern FILE *Dict;
+extern ERR_POS Err_pos[];
-extern off_t Dict_size;
+extern FILE *Dict;
-void die();
+extern off_t Dict_size;
-off_t abs();
+void die __P((int));
+void endgame __P((void));
+int main __P((int, char **));
+void getguess __P((void));
+void getword __P((void));
+void playgame __P((void));
+void prdata __P((void));
+void prman __P((void));
+void prword __P((void));
+int readch __P((void));
+void setup __P((void));