4 #include "../kc/k.out.h"
10 typedef struct Sym Sym;
11 typedef struct Gen Gen;
13 typedef struct Hist Hist;
24 #define GETC() ((--fi.c < 0)? filbuf(): *fi.p++ & 0xff)
91 EXTERN char debug[256];
92 EXTERN Sym* hash[NHASH];
93 EXTERN char* Dlist[30];
99 EXTERN char* include[NINCLUDE];
109 EXTERN char* outfile;
111 EXTERN char* pathname;
115 EXTERN char symb[NSYMB];
117 EXTERN char* thestring;
122 void* allocn(void*, long, long);
123 void errorexit(void);
126 void newfile(char*, int);
138 void outcode(int, Gen*, int, Gen*);
139 void zname(char*, int, int);
140 void zaddr(Gen*, int);
141 void ieeedtod(Ieee*, double);
147 void macexpand(Sym*, char*);
153 void dodefine(char*);
156 void linehist(char*, int);
158 void yyerror(char*, ...);
160 void setinclude(char*);
164 * system-dependent stuff from ../cc/compat.c
167 enum /* keep in synch with ../cc/cc.h */
174 int mycreat(char*, int);
177 char* mygetwd(char*, int);
178 int myexec(char*, char*[]);