1: #
2:
3: /*
4: ** MONITOR.H -- globals for the interactive terminal monitor
5: **
6: ** History:
7: ** 6/8/79 (eric) -- changed Version to Versn, since
8: ** Version now has the full name (with mod #).
9: ** 3/2/79 (eric) -- Error_id and {querytrap} stuff
10: ** added. Also, the RC_* stuff.
11: */
12:
13: /* various global names and strings */
14: char Qbname[30]; /* pathname of query buffer */
15: char Versn[12]; /* version number (w/o mod #) */
16: extern char Version[]; /* version number (with mod #) */
17: extern char Rel_date[]; /* release date */
18: extern char Mod_date[]; /* release date of this mod */
19: extern char *Fileset; /* unique string */
20: extern char *Pathname; /* pathname of INGRES root */
21:
22: /* flags */
23: char Nodayfile; /* suppress dayfile/prompts */
24: /* 0 - print dayfile and prompts
25: ** 1 - suppress dayfile but not prompts
26: ** -1 - supress dayfile and prompts
27: */
28: char Userdflag; /* same: user flag */
29: /* the Nodayfile flag gets reset by include();
30: ** this is the flag that the user actually
31: ** specified (and what s/he gets when in
32: ** interactive mode. */
33: char Autoclear; /* clear query buffer automatically if set */
34: char Notnull; /* set if the query is not null */
35: char Prompt; /* set if a prompt is needed */
36: char Nautoclear; /* if set, disables the autoclear option */
37: char Phase; /* set if in processing phase */
38:
39: /* query buffer stuff */
40: FILE *Qryiop; /* the query buffer */
41: char Newline; /* set if last character was a newline */
42:
43: /* other stuff */
44: int Xwaitpid; /* pid to wait on - zero means none */
45: int Error_id; /* the error number of the last err */
46:
47: /* \include support stuff */
48: FILE *Input; /* current input file */
49: int Idepth; /* include depth */
50: char Oneline; /* deliver EOF after one line input */
51: char Peekch; /* lookahead character for getch */
52:
53: /* commands to monitor */
54: # define C_APPEND 1
55: # define C_BRANCH 2
56: # define C_CHDIR 3
57: # define C_EDIT 4
58: # define C_GO 5
59: # define C_INCLUDE 6
60: # define C_MARK 7
61: # define C_LIST 8
62: # define C_PRINT 9
63: # define C_QUIT 10
64: # define C_RESET 11
65: # define C_TIME 12
66: # define C_EVAL 13
67: # define C_WRITE 14
68: # define C_SHELL 15
69:
70: /* stuff for querytrap facility */
71: extern FILE *Trapfile;
72:
73: /* internal retcode codes */
74: # define RC_OK 0
75: # define RC_BAD 1
Defined variables
Peekch
defined in line
51; used 10 times
Phase
defined in line
37; used 1 times
Qbname
defined in line
14; used 20 times
Versn
defined in line
15; used 3 times
Defined macros
C_GO
defined in line
58; used 2 times
RC_OK
defined in line
74; used 2 times
Usage of this include