Neale Pickett
·
2013-07-18
network.h
1/*
2 * Defines for things used in find.c
3 *
4 * @(#)network.h 4.35 (Berkeley) 02/05/99
5 */
6
7/*
8 * Don't change the constants, since they are used for sizes in many
9 * places in the program.
10 */
11
12#include <sys/ioctl.h>
13
14#undef SIGTSTP
15
16#define MAXSTR 1024 /* maximum length of strings */
17#define MAXLINES 32 /* maximum number of screen lines used */
18#define MAXCOLS 80 /* maximum number of screen columns used */
19
20#define RN (((Seed = Seed*11109+13849) >> 16) & 0xffff)
21#ifdef CTRL
22#undef CTRL
23#endif
24#define CTRL(c) (c & 037)
25
26/*
27 * Now all the global variables
28 */
29
30extern bool Got_ltc, In_shell, Wizard;
31
32extern char Fruit[], Orig_dsusp, Prbuf[], Whoami[];
33
34extern int Fd;
35
36#ifdef TIOCGLTC
37extern struct ltchars Ltc;
38#endif /* TIOCGLTC */
39
40/*
41 * Function types
42 */
43
44#include <stdlib.h>
45#include <unistd.h>
46
47void auto_save(int sig);
48void come_down(void);
49void doctor(void);
50void end_line(void);
51void endit(int sig);
52void fatal(char *s);
53void getltchars(void);
54void land(void);
55void leave(int sig);
56void my_exit(int st);
57void nohaste(void);
58void playit(void);
59void playltchars(void);
60void print_disc(char type);
61void quit(int sig);
62void resetltchars(void);
63void rollwand(void);
64void runners(void);
65void set_order(short *order, int numthings);
66void sight(void);
67void stomach(void);
68void swander(void);
69void tstp(int ignored);
70void unconfuse(void);
71void unsee(void);
72void visuals(void);
73
74char add_line(char *fmt, char *arg);
75
76char *killname(char monst, bool doart);
77char *nothing(char type);
78char *type_name(int type);
79
80#ifdef CHECKTIME
81void checkout(int sig);
82#endif