xref: /csrg-svn/usr.bin/pascal/pdx/main.h (revision 6872)
15452Slinton /* Copyright (c) 1982 Regents of the University of California */
25452Slinton 
3*6872Slinton /* static char sccsid[] = "@(#)main.h 1.4 05/19/82"; */
45452Slinton 
55452Slinton /*
65452Slinton  * Definitions for main program.
75452Slinton  *
85452Slinton  * The main program just handles the command arguments and then
95452Slinton  * gives control to the command module.  It's also the center of
105452Slinton  * error recovery, since non-fatal errors longjmp into the main routine.
115452Slinton  */
125452Slinton 
135452Slinton BOOLEAN opt[26];	/* true if command line option given */
145452Slinton 
155452Slinton #define option(c)	opt[(c)-'a']
16*6872Slinton #define isterm(file)	(option('i') || isatty(fileno(file)))
175452Slinton 
185452Slinton main();			/* debugger main routine */
195452Slinton init();			/* read in source and object data */
205452Slinton erecover();		/* does non-local goto for error recovery */
215590Slinton quit();			/* clean-up before exiting */
22