xref: /original-bsd/usr.bin/pascal/pdx/main.h (revision f0fd5f8a)
1 /* Copyright (c) 1982 Regents of the University of California */
2 
3 /* static char sccsid[] = "@(#)main.h 1.4 05/19/82"; */
4 
5 /*
6  * Definitions for main program.
7  *
8  * The main program just handles the command arguments and then
9  * gives control to the command module.  It's also the center of
10  * error recovery, since non-fatal errors longjmp into the main routine.
11  */
12 
13 BOOLEAN opt[26];	/* true if command line option given */
14 
15 #define option(c)	opt[(c)-'a']
16 #define isterm(file)	(option('i') || isatty(fileno(file)))
17 
18 main();			/* debugger main routine */
19 init();			/* read in source and object data */
20 erecover();		/* does non-local goto for error recovery */
21 quit();			/* clean-up before exiting */
22