4 #include "../2c/2.out.h"
10 typedef struct Sym Sym;
11 typedef struct Ref Ref;
12 typedef struct Gen Gen;
14 typedef struct Hist Hist;
15 typedef struct Addr Addr;
16 typedef struct Gen2 Gen2;
27 #define GETC() ((--fi.c < 0)? filbuf(): *fi.p++ & 0xff)
109 EXTERN char debug[256];
110 EXTERN Sym* hash[NHASH];
111 EXTERN char* Dlist[30];
117 EXTERN char* include[NINCLUDE];
126 EXTERN char* outfile;
128 EXTERN char* pathname;
132 EXTERN char symb[NSYMB];
134 EXTERN char* thestring;
139 void* allocn(void*, long, long);
140 void errorexit(void);
143 void newfile(char*, int);
156 void outcode(int, Gen2*);
158 void zaddr(Gen*, int);
159 void zname(char*, int, int);
160 void ieeedtod(Ieee*, double);
166 void macexpand(Sym*, char*);
172 void dodefine(char*);
174 void linehist(char*, int);
176 void yyerror(char*, ...);
178 void setinclude(char*);
182 * system-dependent stuff from ../cc/compat.c
184 enum /* keep in synch with ../cc/cc.h */
191 int mycreat(char*, int);
194 char* mygetwd(char*, int);
195 int myexec(char*, char*[]);