home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d141 / smallc.lha / SmallC / CCGLOBAL.C < prev    next >
Text File  |  1988-05-15  |  3KB  |  67 lines

  1. /* 2/15/88 */
  2.  
  3. /*      Now reserve some storage words          */
  4.  
  5.  
  6. char    exttab[extblsz];        /* external symbols */
  7. char    *extptr;                /* pointer to next available entry */
  8.  
  9.  
  10. char    symtab[symtbsz];        /* symbol table */
  11. char    *glbptr,*locptr;                /* ptrs to next entries */
  12.  
  13.  
  14. int     wq[wqtabsz];            /* while queue */
  15. int     *wqptr;                 /* ptr to next entry */
  16.  
  17.  
  18. char    litq[litabsz];          /* literal pool */
  19. int     litptr;                 /* ptr to next entry */
  20.  
  21.  
  22. char    macq[macqsize];         /* macro string buffer */
  23. int     macptr;                 /* and its index */
  24.  
  25.  
  26. char    line[linesize];         /* parsing buffer */
  27. char    mline[linesize];        /* temp macro buffer */
  28. int     lptr,mptr;              /* ptrs into each */
  29.  
  30.  
  31. /*      Misc storage    */
  32.  
  33.  
  34. int     nxtlab,         /* next avail label # */
  35.         litlab,         /* label # assigned to literal pool */
  36.         cextern,        /* collecting external names flag */
  37.         Zsp,            /* compiler relative stk ptr */
  38.         argstk,         /* function arg sp */
  39.         ncmp,           /* # open compound statements */
  40.         errcnt,         /* # errors in compilation */
  41.         errstop,        /* stop on error                        gtf 7/17/80 */
  42.         eof,            /* set non-zero on final input eof */
  43.         input,          /* iob # for input file */
  44.         output,         /* iob # for output file (if any) */
  45.         input2,         /* iob # for "include" file */
  46.         ctext,          /* non-zero to intermix c-source */
  47.         cmode,          /* non-zero while parsing c-code */
  48.                         /* zero when passing assembly code */
  49.         mainmode,
  50.         lastst,         /* last executed statement type */
  51.         saveout,        /* holds output ptr when diverted to console       */
  52.                         /*                                      gtf 7/16/80 */
  53.         fnstart,        /* line# of start of current fn.        gtf 7/2/80 */
  54.         lineno,         /* line# in current file                gtf 7/2/80 */
  55.         infunc,         /* "inside function" flag               gtf 7/2/80 */
  56.         savestart,      /* copy of fnstart "    "               gtf 7/16/80 */
  57.         saveline,       /* copy of lineno  "    "               gtf 7/16/80 */
  58.         saveinfn;       /* copy of infunc  "    "               gtf 7/16/80 */
  59.  
  60.  
  61. char   *currfn,         /* ptr to symtab entry for current fn.  gtf 7/17/80 */
  62.        *savecurr;       /* copy of currfn for #include          gtf 7/17/80 */
  63. char    quote[2];       /* literal string for '"' */
  64. char    *cptr;          /* work ptr to any char buffer */
  65. int     *iptr;          /* work ptr to any int buffer */
  66.  
  67.