|
|
1.1 root 1: /* Copyright (c) 1982 Regents of the University of California */
2:
3: /* static char sccsid[] = "@(#)main.h 1.4 5/19/82"; */
4:
5: /*
6: * Definitions for main program.
7: *
8: * The main program just handles the command arguments and then
9: * gives control to the command module. It's also the center of
10: * error recovery, since non-fatal errors longjmp into the main routine.
11: */
12:
13: BOOLEAN opt[26]; /* true if command line option given */
14:
15: #define option(c) opt[(c)-'a']
16: #define isterm(file) (option('i') || isatty(fileno(file)))
17:
18: main(); /* debugger main routine */
19: init(); /* read in source and object data */
20: erecover(); /* does non-local goto for error recovery */
21: quit(); /* clean-up before exiting */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.