xref: /original-bsd/usr.bin/pascal/pdx/main.h (revision 93ab02a6)
1 /*-
2  * Copyright (c) 1980 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)main.h	5.4 (Berkeley) 04/16/91
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