Lines Matching refs:hfile
205 FILE *hfile; in output() local
215 if ((hfile = fopen("nodes.h", "w")) == NULL) in output()
219 fputs(writer, hfile); in output()
221 fprintf(hfile, "#define %s %d\n", nodename[i], i); in output()
222 fputs("\n\n\n", hfile); in output()
224 fprintf(hfile, "struct %s {\n", sp->tag); in output()
226 fprintf(hfile, " %s;\n", fp->decl); in output()
228 fputs("};\n\n\n", hfile); in output()
230 fputs("union node {\n", hfile); in output()
231 fprintf(hfile, " int type;\n"); in output()
233 fprintf(hfile, " struct %s %s;\n", sp->tag, sp->tag); in output()
235 fputs("};\n\n\n", hfile); in output()
236 fputs("struct nodelist {\n", hfile); in output()
237 fputs("\tstruct nodelist *next;\n", hfile); in output()
238 fputs("\tunion node *n;\n", hfile); in output()
239 fputs("};\n\n\n", hfile); in output()
240 fputs("struct funcdef;\n", hfile); in output()
241 fputs("struct funcdef *copyfunc(union node *);\n", hfile); in output()
242 fputs("union node *getfuncnode(struct funcdef *);\n", hfile); in output()
243 fputs("void reffunc(struct funcdef *);\n", hfile); in output()
244 fputs("void unreffunc(struct funcdef *);\n", hfile); in output()
245 if (ferror(hfile)) in output()
247 if (fclose(hfile)) in output()