extern.h revision 1.10 1 1.10 agc /* $NetBSD: extern.h,v 1.10 2003/08/07 09:36:53 agc Exp $ */
2 1.3 cgd
3 1.1 cgd /*-
4 1.3 cgd * Copyright (c) 1990, 1993
5 1.3 cgd * The Regents of the University of California. All rights reserved.
6 1.1 cgd *
7 1.1 cgd * This code is derived from software contributed to Berkeley by
8 1.1 cgd * Ed James.
9 1.1 cgd *
10 1.1 cgd * Redistribution and use in source and binary forms, with or without
11 1.1 cgd * modification, are permitted provided that the following conditions
12 1.1 cgd * are met:
13 1.1 cgd * 1. Redistributions of source code must retain the above copyright
14 1.1 cgd * notice, this list of conditions and the following disclaimer.
15 1.1 cgd * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 cgd * notice, this list of conditions and the following disclaimer in the
17 1.1 cgd * documentation and/or other materials provided with the distribution.
18 1.10 agc * 3. Neither the name of the University nor the names of its contributors
19 1.1 cgd * may be used to endorse or promote products derived from this software
20 1.1 cgd * without specific prior written permission.
21 1.1 cgd *
22 1.1 cgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 1.1 cgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 1.1 cgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 1.1 cgd * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 1.1 cgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 1.1 cgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 1.1 cgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 1.1 cgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 1.1 cgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 1.1 cgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 1.1 cgd * SUCH DAMAGE.
33 1.1 cgd *
34 1.3 cgd * @(#)extern.h 8.1 (Berkeley) 5/31/93
35 1.1 cgd */
36 1.1 cgd
37 1.1 cgd /*
38 1.1 cgd * Copyright (c) 1987 by Ed James, UC Berkeley. All rights reserved.
39 1.1 cgd *
40 1.1 cgd * Copy permission is hereby granted provided that this notice is
41 1.1 cgd * retained on all partial or complete copies.
42 1.1 cgd *
43 1.1 cgd * For more info on this and all of my stuff, mail edjames (at) berkeley.edu.
44 1.1 cgd */
45 1.1 cgd
46 1.7 hubertf extern char GAMES[];
47 1.7 hubertf extern const char *file;
48 1.1 cgd
49 1.1 cgd extern int clck, safe_planes, start_time, test_mode;
50 1.1 cgd
51 1.1 cgd extern FILE *filein, *fileout;
52 1.1 cgd
53 1.1 cgd extern C_SCREEN screen, *sp;
54 1.1 cgd
55 1.1 cgd extern LIST air, ground;
56 1.1 cgd
57 1.4 mycroft extern struct termios tty_start, tty_new;
58 1.1 cgd
59 1.1 cgd extern DISPLACEMENT displacement[MAXDIR];
60 1.1 cgd
61 1.5 lukem int addplane __P((void));
62 1.5 lukem void append __P((LIST *, PLANE *));
63 1.5 lukem void check_adir __P((int, int, int));
64 1.5 lukem void check_edge __P((int, int));
65 1.5 lukem void check_edir __P((int, int, int));
66 1.5 lukem void check_line __P((int, int, int, int));
67 1.5 lukem void check_linepoint __P((int, int));
68 1.5 lukem void check_point __P((int, int));
69 1.5 lukem int checkdefs __P((void));
70 1.5 lukem int compar __P((const void *, const void *));
71 1.5 lukem void delete __P((LIST *, PLANE *));
72 1.5 lukem int dir_deg __P((int));
73 1.5 lukem int dir_no __P((char));
74 1.5 lukem void done_screen __P((void));
75 1.5 lukem void draw_all __P((void));
76 1.7 hubertf void draw_line __P((WINDOW *, int, int, int, int, const char *));
77 1.5 lukem void erase_all __P((void));
78 1.5 lukem int getAChar __P((void));
79 1.5 lukem int getcommand __P((void));
80 1.5 lukem int gettoken __P((void));
81 1.5 lukem void init_gr __P((void));
82 1.7 hubertf void ioaddstr __P((int, const char *));
83 1.5 lukem void ioclrtobot __P((void));
84 1.5 lukem void ioclrtoeol __P((int));
85 1.7 hubertf void ioerror __P((int, int, const char *));
86 1.5 lukem void iomove __P((int));
87 1.5 lukem int list_games __P((void));
88 1.5 lukem int log_score __P((int));
89 1.6 hubertf void log_score_quit __P((int)) __attribute__((__noreturn__));
90 1.7 hubertf void loser __P((const PLANE *, const char *)) __attribute__((__noreturn__));
91 1.5 lukem int main __P((int, char *[]));
92 1.7 hubertf char name __P((const PLANE *));
93 1.5 lukem int next_plane __P((void));
94 1.5 lukem void noise __P((void));
95 1.5 lukem int number __P((char));
96 1.8 hubertf void open_score_file __P((void));
97 1.5 lukem void planewin __P((void));
98 1.5 lukem int pop __P((void));
99 1.5 lukem void push __P((int, int));
100 1.5 lukem void quit __P((int));
101 1.7 hubertf int read_file __P((const char *));
102 1.5 lukem void redraw __P((void));
103 1.5 lukem void rezero __P((void));
104 1.7 hubertf void setup_screen __P((const C_SCREEN *));
105 1.7 hubertf int too_close __P((const PLANE *p1, const PLANE *p2, int));
106 1.5 lukem void update __P((int));
107 1.5 lukem int yyerror __P((const char *));
108 1.5 lukem int yylex __P((void));
109 1.9 christos #ifndef YYEMPTY
110 1.5 lukem int yyparse __P((void));
111 1.9 christos #endif
112 1.7 hubertf const char *Left __P((char));
113 1.7 hubertf const char *Right __P((char));
114 1.7 hubertf const char *airport __P((char));
115 1.7 hubertf const char *beacon __P((char));
116 1.7 hubertf const char *benum __P((char));
117 1.7 hubertf const char *circle __P((char));
118 1.7 hubertf const char *climb __P((char));
119 1.7 hubertf const char *command __P((const PLANE *));
120 1.7 hubertf const char *default_game __P((void));
121 1.7 hubertf const char *delayb __P((char));
122 1.7 hubertf const char *descend __P((char));
123 1.7 hubertf const char *ex_it __P((char));
124 1.5 lukem PLANE *findplane __P((int));
125 1.7 hubertf const char *ignore __P((char));
126 1.7 hubertf const char *left __P((char));
127 1.7 hubertf const char *mark __P((char));
128 1.5 lukem PLANE *newplane __P((void));
129 1.7 hubertf const char *okay_game __P((const char *));
130 1.7 hubertf const char *rel_dir __P((char));
131 1.7 hubertf const char *right __P((char));
132 1.7 hubertf const char *setalt __P((char));
133 1.7 hubertf const char *setplane __P((char));
134 1.7 hubertf const char *setrelalt __P((char));
135 1.7 hubertf const char *timestr __P((int));
136 1.7 hubertf const char *to_dir __P((char));
137 1.7 hubertf const char *turn __P((char));
138 1.7 hubertf const char *unmark __P((char));
139