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