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

Error_id defined in line 45; used 3 times
Phase defined in line 37; used 1 times
Versn defined in line 15; used 3 times

Defined macros

C_APPEND defined in line 54; used 2 times
C_BRANCH defined in line 55; used 2 times
C_CHDIR defined in line 56; used 2 times
C_EDIT defined in line 57; used 4 times
C_EVAL defined in line 66; used 2 times
C_GO defined in line 58; used 2 times
C_INCLUDE defined in line 59; used 3 times
C_LIST defined in line 61; used 2 times
C_PRINT defined in line 62; used 2 times
C_QUIT defined in line 63; used 2 times
C_RESET defined in line 64; used 2 times
C_SHELL defined in line 68; used 3 times
C_TIME defined in line 65; used 3 times
C_WRITE defined in line 67; used 2 times
RC_BAD defined in line 75; used 1 times

Usage of this include

Last modified: 1995-02-04
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3228
Valid CSS Valid XHTML 1.0 Strict