
/*                  CC.DEF                      */
/*      Define system dependent parameters      */

/*      Stand-alone definitions                 */

   #define NULL 0
   #define eol 13
/*      UNIX definitions (if not stand-alone)   */

/* #include <stdio.h>                           */
/* #define eol 10                               */
/*      Define the symbol table parameters      */

#define symsiz  16
#define symtbsz 5160
#define numglbs 300
#define startglb symtab
#define endglb  startglb+numglbs*symsiz
#define startloc endglb+symsiz
#define endloc  symtab+symtbsz-symsiz

/*      Define symbol table entry format        */

#define name    0
#define ident   9
#define type    10
#define storage 11
#define offset  12
#define inname  14

/*      System wide name size (for symbols)     */

#define namesize 9
#define namemax  8

/*      Define possible entries for "ident"     */

#define variable 1
#define array   2
#define pointer 3
#define function 4

/*      Define possible entries for "type"      */

#define cchar   1
#define cint    2

/*      Define possible entries for "storage"   */

#define statik  1
#define stkloc  2
#define xtern   3
#define hidden  4

/*      Define the "while" statement queue      */

#define wqtabsz 50
#define wqsiz   2
#define wqmax   wq+wqtabsz-wqsiz

/*      Define entry offsets in while queue     */

#define wqloop  0
#define wqlab   1

/*      Define the literal pool                 */
 
#define litabsz 2000
#define litmax  litabsz-1
 
/*      Define the input line                   */

#define linesize 80
#define linemax linesize-1
#define mpmax   linemax
 
/*      Define the macro (define) pool          */
 
#define macqsize 1000
#define macmax  macqsize-1

/*      Define statement types (tokens)         */

#define stif    1
#define stwhile 2
#define streturn 3
#define stbreak 4
#define stcont  5
#define stasm   6
#define stexp   7
#define stfor   8
#define stswitch 9

#define MAXPREFIX 8
#define forever while(1)
