1: /*
   2: **  MONITOR.H -- globals for the interactive terminal monitor
   3: **
   4: **	Version:
   5: **		@(#)monitor.h	8.1	12/31/84
   6: */
   7: 
   8: # include   <stdio.h>
   9: # include   <useful.h>
  10: 
  11: /* various global names and strings */
  12: char        Qbname[30]; /* pathname of query buffer */
  13: extern char *Fileset;   /* unique string */
  14: extern char *Pathname;  /* pathname of INGRES root */
  15: 
  16: /* flags */
  17: char        Nodayfile;  /* suppress dayfile/prompts */
  18:                 /* 0 - print dayfile and prompts
  19: 				** 1 - suppress dayfile but not prompts
  20: 				** -1 - supress dayfile and prompts
  21: 				*/
  22: char        Userdflag;  /* same: user flag */
  23:                 /*  the Nodayfile flag gets reset by include();
  24: 				**  this is the flag that the user actually
  25: 				**  specified (and what s/he gets when in
  26: 				**  interactive mode.			*/
  27: char        Autoclear;  /* clear query buffer automatically if set */
  28: char        Notnull;    /* set if the query is not null */
  29: char        Prompt;     /* set if a prompt is needed */
  30: char        Nautoclear; /* if set, disables the autoclear option */
  31: char        Phase;      /* set if in processing phase */
  32: 
  33: /* query buffer stuff */
  34: FILE        *Qryiop;    /* the query buffer */
  35: char        Newline;    /* set if last character was a newline */
  36: 
  37: /* other stuff */
  38: int     Xwaitpid;   /* pid to wait on - zero means none */
  39: int     Error_id;   /* the error number of the last err */
  40: 
  41: /* \include support stuff */
  42: FILE        *Input;     /* current input file */
  43: int     Idepth;     /* include depth */
  44: char        Oneline;    /* deliver EOF after one line input */
  45: bool        GiveEof;    /* if set, return EOF on next getch */
  46: 
  47: /* commands to monitor */
  48: # define    C_APPEND    1
  49: # define    C_BRANCH    2
  50: # define    C_CHDIR     3
  51: # define    C_EDIT      4
  52: # define    C_GO        5
  53: # define    C_INCLUDE   6
  54: # define    C_MARK      7
  55: # define    C_LIST      8
  56: # define    C_PRINT     9
  57: # define    C_QUIT      10
  58: # define    C_RESET     11
  59: # define    C_TIME      12
  60: # define    C_EVAL      13
  61: # define    C_WRITE     14
  62: # define    C_SHELL     15
  63: # define    C_SYSTRACE  16
  64: # define    C_SYSRESET  17
  65: 
  66: /* stuff for querytrap facility */
  67: extern FILE *Trapfile;

Defined variables

Phase defined in line 31; used 1 times

Defined macros

C_APPEND defined in line 48; used 2 times
C_BRANCH defined in line 49; used 2 times
C_CHDIR defined in line 50; used 2 times
C_EDIT defined in line 51; used 4 times
C_EVAL defined in line 60; used 2 times
C_GO defined in line 52; used 2 times
C_INCLUDE defined in line 53; used 3 times
C_LIST defined in line 55; used 2 times
C_PRINT defined in line 56; used 2 times
C_QUIT defined in line 57; used 2 times
C_RESET defined in line 58; used 2 times
C_SHELL defined in line 62; used 3 times
C_SYSRESET defined in line 64; used 2 times
C_SYSTRACE defined in line 63; used 2 times
C_TIME defined in line 59; used 3 times
C_WRITE defined in line 61; used 2 times

Usage of this include

Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1298
Valid CSS Valid XHTML 1.0 Strict