xref: /original-bsd/usr.bin/pascal/pdx/main.h (revision fbed46ce)
1 /* Copyright (c) 1982 Regents of the University of California */
2 
3 /* static char sccsid[] = "@(#)main.h 1.3 01/20/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 
17 main();			/* debugger main routine */
18 init();			/* read in source and object data */
19 erecover();		/* does non-local goto for error recovery */
20 quit();			/* clean-up before exiting */
21