xref: /csrg-svn/usr.bin/pascal/pdx/main.h (revision 62131)
148104Sbostic /*-
2*62131Sbostic  * Copyright (c) 1980, 1993
3*62131Sbostic  *	The Regents of the University of California.  All rights reserved.
422571Sdist  *
548104Sbostic  * %sccs.include.redist.c%
648104Sbostic  *
7*62131Sbostic  *	@(#)main.h	8.1 (Berkeley) 06/06/93
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