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*33243Sbostic * @(#)main.h 5.3 (Berkeley) 01/03/88 722571Sdist */ 85452Slinton 922764Smckusick /* 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 22*33243Sbostic int main(); /* debugger main routine */ 23*33243Sbostic int init(); /* read in source and object data */ 24*33243Sbostic int erecover(); /* does non-local goto for error recovery */ 25*33243Sbostic int quit(); /* clean-up before exiting */ 26