|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1983 Regents of the University of California. ! 3: * All rights reserved. ! 4: * ! 5: * Redistribution and use in source and binary forms are permitted ! 6: * provided that the above copyright notice and this paragraph are ! 7: * duplicated in all such forms and that any documentation, ! 8: * advertising materials, and other materials related to such ! 9: * distribution and use acknowledge that the software was developed ! 10: * by the University of California, Berkeley. The name of the ! 11: * University may not be used to endorse or promote products derived ! 12: * from this software without specific prior written permission. ! 13: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 14: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 15: * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 16: * ! 17: * @(#)hangman.h 5.2 (Berkeley) 6/18/88 ! 18: */ ! 19: ! 20: # include <curses.h> ! 21: # include <sys/types.h> ! 22: # include <sys/stat.h> ! 23: # include <ctype.h> ! 24: # include <signal.h> ! 25: ! 26: # define MINLEN 6 ! 27: # define MAXERRS 7 ! 28: # define DICT "/usr/dict/words" ! 29: ! 30: # define MESGY 12 ! 31: # define MESGX 0 ! 32: # define PROMPTY 11 ! 33: # define PROMPTX 0 ! 34: # define KNOWNY 10 ! 35: # define KNOWNX 1 ! 36: # define NUMBERY 4 ! 37: # define NUMBERX (COLS - 1 - 26) ! 38: # define AVGY 5 ! 39: # define AVGX (COLS - 1 - 26) ! 40: # define GUESSY 2 ! 41: # define GUESSX (COLS - 1 - 26) ! 42: ! 43: ! 44: typedef struct { ! 45: short y, x; ! 46: char ch; ! 47: } ERR_POS; ! 48: ! 49: extern bool Guessed[]; ! 50: ! 51: extern char Word[], Known[], *Noose_pict[]; ! 52: ! 53: extern int Errors, Wordnum; ! 54: ! 55: extern double Average; ! 56: ! 57: extern ERR_POS Err_pos[]; ! 58: ! 59: extern FILE *Dict; ! 60: ! 61: extern off_t Dict_size; ! 62: ! 63: int die(); ! 64: ! 65: off_t abs();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.