122571Sdist /* 222571Sdist * Copyright (c) 1980 Regents of the University of California. 322571Sdist * All rights reserved. The Berkeley software License Agreement 422571Sdist * specifies the terms and conditions for redistribution. 522571Sdist * 6*22764Smckusick * @(#)main.h 5.2 (Berkeley) 06/07/85 722571Sdist */ 85452Slinton 9*22764Smckusick /* 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