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