Lines Matching refs:hfile
217 FILE *hfile;
227 if ((hfile = fopen("nodes.h", "w")) == NULL)
231 fputs(writer, hfile);
233 fprintf(hfile, "#define %s %d\n", nodename[i], i);
234 fputs("\n\n\n", hfile);
236 fprintf(hfile, "struct %s {\n", sp->tag);
238 fprintf(hfile, " %s;\n", fp->decl);
240 fputs("};\n\n\n", hfile);
242 fputs("union node {\n", hfile);
243 fprintf(hfile, " int type;\n");
245 fprintf(hfile, " struct %s %s;\n", sp->tag, sp->tag);
247 fputs("};\n\n\n", hfile);
248 fputs("struct nodelist {\n", hfile);
249 fputs("\tstruct nodelist *next;\n", hfile);
250 fputs("\tunion node *n;\n", hfile);
251 fputs("};\n\n\n", hfile);
252 fputs("struct funcdef;\n", hfile);
253 fputs("struct funcdef *copyfunc(union node *);\n", hfile);
254 fputs("union node *getfuncnode(struct funcdef *);\n", hfile);
255 fputs("void reffunc(struct funcdef *);\n", hfile);
256 fputs("void unreffunc(struct funcdef *);\n", hfile);
257 if (ferror(hfile))
259 if (fclose(hfile))