home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / XRF / XRF.H < prev    next >
C/C++ Source or Header  |  1993-12-01  |  3KB  |  68 lines

  1. /*
  2.  *                      *************
  3.  *                      * X R F . H *
  4.  *                      *************
  5.  *
  6.  * This is the common header for the C xrf'er.
  7.  *
  8.  * Version V1.3          9-May-80
  9.  * Version V1.4        10-Jul-80 MM
  10.  * Version V1.5         2-Jan-85 MC    Rainbow implementation
  11.  * Version V1.6        12-Jan-85 MC    allow for procid (2 extraa chars)
  12.  */
  13. #define SCPS   8                /* CI86 Relevant characters per symbol SMALL*/
  14. #define LCPS   31               /* CI86 Relevant characters per symbol LARGE*/
  15.  
  16. #define FFLAG  2                /* number of chars added to Symbol for procid*/
  17. #define NCPS   LCPS+FFLAG       /* CI86 max Symbol size  [incl proc id '()'] */
  18. #define CPS    symbolsize+FFLAG /* characters per Symbol [incl proc id '()'] */
  19. #define LWIDTH 132              /* Listing width, characters */
  20. #define RSIZE  5        /* Reference width in format statement */
  21. #define MAXLIN 57               /* Listing lines per page (excl. header) */
  22.  
  23. /*
  24.  * Structure definitions.
  25.  */
  26.  
  27. struct  ref     {                       /* REFERENCE LIST NODE */
  28.                 int lno;                /* Line number of reference */
  29.                 struct ref *next;       /* Link to next ref in chain */
  30.                 };
  31.  
  32. struct  idt     {                       /* ID TREE NODE STRUCTURE */
  33.                 char *keyp;             /* Pointer to stashed key string */
  34.                 struct ref *first;      /* Pointer to head of ref chain */
  35.                 struct ref *last;       /* Pointer to tail of ref chain */
  36.                 struct idt *left;       /* Left link in id tree */
  37.                 struct idt *right;      /* Right link in id tree */
  38.                 };
  39.  
  40. /*
  41.  * Global Variables.
  42.  */
  43.  
  44. extern FILE *src;               /* Source file pointer */
  45. extern FILE *lst;               /* List file pointer */
  46.  
  47. extern int prnflg;              /* Print source file flag */
  48. extern int conflg;              /* Concatanate source file flag */
  49. extern int verbose;             /* chatty mode flag */
  50.  
  51. extern char scanbf[LWIDTH+1];   /* Source line scan buffer */
  52. extern char *scanp;             /* Scan pointer */
  53.  
  54. extern char idbuf[NCPS+1];      /* ID string buffer */
  55. extern char lastsym[NCPS+1];    /* previous symbol [XRF3] (avoid repitition) */
  56.  
  57. extern char progname[9];    /* current source program name */
  58. extern char pghead[LWIDTH+1];   /* Listing page heading */
  59. extern char thetime[9];         /* For unix flavored systems*/
  60. extern char thedate[23];        /* For unix flavored systems*/
  61.  
  62. extern int  lineno;             /* Current source line number */
  63. extern int  linpg;              /* Lines-per-page count */
  64. extern int  linewidth;        /* line width */
  65. extern int  rperline;        /* References per line */
  66. extern int  symbolsize;        /* Symbol size (df=8) (-i changes to NCPS)*/
  67. extern struct idt *root;        /* --> root of ident tree */
  68.