xref: /original-bsd/usr.bin/pascal/pdx/main.h (revision c3e32dec)
1 /*-
2  * Copyright (c) 1980, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)main.h	8.1 (Berkeley) 06/06/93
8  */
9 
10 /*
11  * Definitions for main program.
12  *
13  * The main program just handles the command arguments and then
14  * gives control to the command module.  It's also the center of
15  * error recovery, since non-fatal errors longjmp into the main routine.
16  */
17 
18 BOOLEAN opt[26];	/* true if command line option given */
19 
20 #define option(c)	opt[(c)-'a']
21 #define isterm(file)	(option('i') || isatty(fileno(file)))
22 
23 int main();		/* debugger main routine */
24 int init();		/* read in source and object data */
25 int erecover();		/* does non-local goto for error recovery */
26 int quit();		/* clean-up before exiting */
27