xref: /csrg-svn/usr.bin/pascal/pdx/main.h (revision 48104)
1*48104Sbostic /*-
2*48104Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48104Sbostic  * All rights reserved.
422571Sdist  *
5*48104Sbostic  * %sccs.include.redist.c%
6*48104Sbostic  *
7*48104Sbostic  *	@(#)main.h	5.4 (Berkeley) 04/16/91
822571Sdist  */
95452Slinton 
1022764Smckusick /*
115452Slinton  * Definitions for main program.
125452Slinton  *
135452Slinton  * The main program just handles the command arguments and then
145452Slinton  * gives control to the command module.  It's also the center of
155452Slinton  * error recovery, since non-fatal errors longjmp into the main routine.
165452Slinton  */
175452Slinton 
185452Slinton BOOLEAN opt[26];	/* true if command line option given */
195452Slinton 
205452Slinton #define option(c)	opt[(c)-'a']
216872Slinton #define isterm(file)	(option('i') || isatty(fileno(file)))
225452Slinton 
2333243Sbostic int main();		/* debugger main routine */
2433243Sbostic int init();		/* read in source and object data */
2533243Sbostic int erecover();		/* does non-local goto for error recovery */
2633243Sbostic int quit();		/* clean-up before exiting */
27