new copyright; att/bsd/shared
[unix-history] / usr / src / usr.bin / pascal / pdx / main.h
CommitLineData
505bf312
KB
1/*-
2 * Copyright (c) 1980 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
3cd5310a 6 *
505bf312 7 * @(#)main.h 5.4 (Berkeley) %G%
3cd5310a
DF
8 */
9
d1b9b2b2 10/*
58e9ea3e
ML
11 * Definitions for main program.
12 *
13 * The main program just handles the command arguments and then
14 * gives control to the command module. It's also the center of
15 * error recovery, since non-fatal errors longjmp into the main routine.
16 */
17
18BOOLEAN opt[26]; /* true if command line option given */
19
20#define option(c) opt[(c)-'a']
863e0bb9 21#define isterm(file) (option('i') || isatty(fileno(file)))
58e9ea3e 22
7d4de299
KB
23int main(); /* debugger main routine */
24int init(); /* read in source and object data */
25int erecover(); /* does non-local goto for error recovery */
26int quit(); /* clean-up before exiting */