1 /* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)hangman.h 8.1 (Berkeley) 05/31/93 8 */ 9 10 # include <curses.h> 11 # include <sys/types.h> 12 # include <sys/stat.h> 13 # include <ctype.h> 14 # include <signal.h> 15 # include "pathnames.h" 16 17 # define MINLEN 6 18 # define MAXERRS 7 19 20 # define MESGY 12 21 # define MESGX 0 22 # define PROMPTY 11 23 # define PROMPTX 0 24 # define KNOWNY 10 25 # define KNOWNX 1 26 # define NUMBERY 4 27 # define NUMBERX (COLS - 1 - 26) 28 # define AVGY 5 29 # define AVGX (COLS - 1 - 26) 30 # define GUESSY 2 31 # define GUESSX (COLS - 1 - 26) 32 33 34 typedef struct { 35 short y, x; 36 char ch; 37 } ERR_POS; 38 39 extern bool Guessed[]; 40 41 extern char Word[], Known[], *Noose_pict[]; 42 43 extern int Errors, Wordnum; 44 45 extern double Average; 46 47 extern ERR_POS Err_pos[]; 48 49 extern FILE *Dict; 50 51 extern off_t Dict_size; 52 53 void die(); 54