/* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that: (1) source distributions retain this entire copyright * notice and comment, and (2) distributions including binaries display * the following acknowledgement: ``This product includes software * developed by the University of California, Berkeley and its contributors'' * in the documentation or other materials provided with the distribution * and in all advertising materials mentioning features or use of this * software. Neither the name of the University nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * @(#)hangman.h 5.4 (Berkeley) 6/1/90 */ # include <curses.h> # include <sys/types.h> # include <sys/stat.h> # include <ctype.h> # include <signal.h> # include "pathnames.h" # 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) typedef struct { short y, x; char ch; } ERR_POS; extern bool Guessed[]; extern char Word[], Known[], *Noose_pict[]; extern int Errors, Wordnum; extern double Average; extern ERR_POS Err_pos[]; extern FILE *Dict; extern off_t Dict_size; int die(); off_t abs();