added quit routine
[unix-history] / usr / src / usr.bin / pascal / pdx / main.h
CommitLineData
58e9ea3e
ML
1/* Copyright (c) 1982 Regents of the University of California */
2
c82c5043 3/* static char sccsid[] = "@(#)main.h 1.3 %G%"; */
58e9ea3e
ML
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
13BOOLEAN opt[26]; /* true if command line option given */
14
15#define option(c) opt[(c)-'a']
16
17main(); /* debugger main routine */
18init(); /* read in source and object data */
19erecover(); /* does non-local goto for error recovery */
c82c5043 20quit(); /* clean-up before exiting */