home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / imcomp / extern.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-29  |  5.8 KB  |  155 lines

  1. /*
  2.     extern.h    rt1 external/global variable declarations
  3.     Copyright 1984 Terry Disz & Dan Sadowski
  4. */
  5.  
  6. #ifdef ZEUS
  7. extern char strarea[];        /* for getting strings */
  8. #endif
  9. extern NBLOCK sy_names[];    /* SYSTEM NAME TABLE */
  10. extern NBLOCK cmd_names[];    /* SYSTEM COMMAND TABLE */
  11. extern NBLOCK *cmdhdr[];    /* command headers  - a through z*/
  12. extern CMD argfun[MAXCMDS];    /* CONTAINS ARGS + FUN PTRS */
  13. extern NBLOCK _ab;        /* $AB abv policy */
  14. extern NBLOCK _da;        /* day counter */
  15. extern NBLOCK _er;        /* global system error number */
  16. extern NBLOCK _hr;        /* hour counter */
  17. extern NBLOCK _mn;        /* minute counter */
  18. extern NBLOCK _sc;        /* second counter */
  19. extern NBLOCK _st;        /* system timer */
  20. extern NBLOCK _tk;        /* ticks */
  21. extern NBLOCK _vn;        /* version */
  22. extern NBLOCK _z0;        /* countdown timer */
  23. extern NBLOCK _mx;        /* mouse x */
  24. extern NBLOCK _my;        /* mouse y */
  25. extern NBLOCK _ml;        /* mouse left button */
  26. extern NBLOCK _mr;        /* mouse right button */
  27. extern NBLOCK _rl;        /* mouse left button latch */
  28. extern NBLOCK _rr;        /* mouse right button latch */
  29. extern NBLOCK _xx;        /* spare */
  30. extern NBLOCK _cx;        /* shill variable */
  31. extern NBLOCK _d0;        /* A/D channel 0 */
  32. extern NBLOCK _d1;        /* A/D channel 1 */
  33. extern NBLOCK _d2;        /* A/D channel 2 */
  34. extern NBLOCK _d3;        /* A/D channel 3 */
  35. extern NBLOCK _d4;        /* A/D channel 4 */
  36. extern NBLOCK _d5;        /* A/D channel 5 */
  37. extern NBLOCK _d6;        /* A/D channel 6 */
  38. extern NBLOCK _d7;        /* A/D channel 7 */
  39. extern NBLOCK _a0;        /* D/A channel 0 */
  40. extern NBLOCK _a1;        /* D/A channel 1 */
  41. extern NBLOCK _f0;        /* external function switch input */
  42. extern NBLOCK _f1;        /* external function switch input */
  43. extern NBLOCK _f2;        /* external function switch input */
  44. extern NBLOCK _f3;        /* external function switch input */
  45. extern NBLOCK _f4;        /* external function switch input */
  46. extern NBLOCK _f5;        /* external function switch input */
  47. extern NBLOCK _f6;        /* external function switch input */
  48. extern NBLOCK _f7;        /* external function switch input */
  49.                 
  50. extern NBLOCK _j0;        /* external digital joy switch input */
  51. extern NBLOCK _j1;        /* external digital joy switch input */
  52. extern NBLOCK _j2;        /* external digital joy switch input */
  53. extern NBLOCK _j3;        /* external digital joy switch input */
  54.  
  55. extern NBLOCK _jx;        /* external digital joyswitch input  x */
  56. extern NBLOCK _jy;        /* external digital joyswitch input  y */
  57.  
  58. extern MIB *freetop;        /* free mib list header     */
  59. extern MIB *mactop;        /* mib list header  */
  60. extern MIB *macsav;        /* place to save mib pointer */
  61. extern MIB freemib[];        /* the free mib list */
  62. extern MIB *dolph;        /* .b list header */
  63. extern MIB *viplh;        /* .f list header */
  64. extern TINY doloop;        /* doloop flag - B, F, or blk */
  65. extern BOOL doflag;        /* doing bg's or not */
  66. extern BOOL ccpass;        /* allows control chars in tty buffer */
  67. extern BOOL editon;        /* TRUE = in editor */
  68. extern BOOL czflag;        /* ^z mode */
  69. extern BOOL control_c;        /* ^c was done */
  70. extern BOOL firstoken;        /* first token on line */
  71. extern short onecnt;        /* used by onerror stuff */
  72. extern TINY argnum;        /* arg number in list for geterror */
  73. extern TINY cwcnt;        /* ^W count */
  74. extern int aed;            /* AED display file desc. */
  75. extern FILE *logfp;        /* ^p logfile fp */
  76. extern int tabfd;        /* tablet file desc. */
  77. extern TABDAT tab;        /* tablet data area */
  78. extern char tty[];        /* term input buffer */
  79. extern short ttyptr;        /* consumer index */
  80. extern short ttyint;        /* producer index */
  81. extern BOOL cntl[];        /* control flags */
  82. extern short typetab[];        /* adm type key values - 2b xlated */
  83. extern short trantab[];        /* system values - xlate to these */
  84. extern TEMP *tmptop;        /* pointer to top of temp list*/
  85. extern TEMP tmpbase;        /* top of temp list*/
  86. extern MIB kbmib;        /* keyboard mib */
  87. extern MIB czmib;        /* ^z mib */
  88. extern char kbblock[];        /* kbd mib buffer */
  89. extern char czblock[];        /* cz mib buffer */
  90. extern short xkursor;        /* for line editing */
  91. extern short xksave;        /* same */
  92. extern char turnbuf[];        /* turnkey buffer */
  93. extern VAL token;        /* storage for general use*/
  94. extern TINY errnum;        /* current error number*/
  95. extern TINY errix;        /* index into errblk*/
  96. extern char *errblk[];        /* place to store error pointers*/
  97. extern char nullstr[];        /* dummy - need to point to nullstring */
  98. extern char workstr[];        /* character work area */
  99. extern BOOL swglob;        /*global for switch parsing*/
  100. extern BOOL arglob;        /*global for no-arg parsing*/
  101. extern unsigned long temptype;    /*flag which types have TEMP structures*/
  102.  
  103. #ifdef ZWHILE
  104. extern NBLOCK cendnblock;       /* for compiler, sumit */
  105. extern NBLOCK *endptr; 
  106. extern CMD cendcmd;
  107. extern NBLOCK cwhilenblock;       /* for compiler, sumit */
  108. extern NBLOCK *whileptr; 
  109. extern CMD cwhilecmd;
  110. #endif
  111.  
  112. extern NBLOCK cskipnblock;        /* for compiler*/
  113. extern NBLOCK *skiptr;
  114. extern CMD cskipcmd;            /* for compiler*/
  115. extern NBLOCK cgotonblock;        /* for compiler*/
  116. extern NBLOCK *gotoptr;
  117. extern CMD cgotocmd;            /* for compiler*/
  118. extern NBLOCK conerrnblock;        /* for compiler*/
  119. extern NBLOCK *onerrptr;
  120. extern CMD conerrcmd;            /* for compiler*/
  121. extern NBLOCK cifnblock;        /* for compiler*/
  122. extern NBLOCK *ifptr;
  123. extern CMD cifcmd;            /* for compiler*/
  124. extern NBLOCK cretnblock;        /* for compiler*/
  125. extern NBLOCK *retptr;
  126. extern CMD cretcmd;            /* for compiler*/
  127.  
  128. extern OPRTAB op_tab[];            /* operator table*/
  129. #define INDIRECT &op_tab[2]        /* for indirect execution*/
  130. extern VAL val_stk[];            /*operand stack*/
  131. extern VAL *valsp;            /*stack pointer*/
  132. extern BITS ctype[];            /*character typing*/
  133.  
  134. #ifdef BDSC
  135. int _allocp;
  136. #endif
  137.  
  138. /*extern char tabbuff[];*/
  139. /*extern short tabptr;*/
  140. /*extern short tabint;*/
  141.  
  142.  
  143. #ifdef APOLLO  /* diplay bitmap structures. */
  144.  
  145.     gpr_$attribute_desc_t d_attr;
  146.     gpr_$bitmap_desc_t d_desc;
  147.     gpr_$offset_t d_size;
  148.     gpr_$plane_t d_hipl;
  149.     gpr_$position_t d_orig;
  150.     status_$t d_stat;
  151.  
  152. #endif
  153.  
  154.  
  155.