1*22571Sdist /* 2*22571Sdist * Copyright (c) 1980 Regents of the University of California. 3*22571Sdist * All rights reserved. The Berkeley software License Agreement 4*22571Sdist * specifies the terms and conditions for redistribution. 5*22571Sdist * 6*22571Sdist * @(#)main.h 5.1 (Berkeley) 06/06/85 7*22571Sdist */ 85452Slinton 9*22571Sdist * 105452Slinton * Definitions for main program. 115452Slinton * 125452Slinton * The main program just handles the command arguments and then 135452Slinton * gives control to the command module. It's also the center of 145452Slinton * error recovery, since non-fatal errors longjmp into the main routine. 155452Slinton */ 165452Slinton 175452Slinton BOOLEAN opt[26]; /* true if command line option given */ 185452Slinton 195452Slinton #define option(c) opt[(c)-'a'] 206872Slinton #define isterm(file) (option('i') || isatty(fileno(file))) 215452Slinton 225452Slinton main(); /* debugger main routine */ 235452Slinton init(); /* read in source and object data */ 245452Slinton erecover(); /* does non-local goto for error recovery */ 255590Slinton quit(); /* clean-up before exiting */ 26