bin/sh/mknodes.c
219
FILE *hfile;
bin/sh/mknodes.c
229
if ((hfile = fopen("nodes.h", "w")) == NULL)
bin/sh/mknodes.c
233
fputs(writer, hfile);
bin/sh/mknodes.c
235
fprintf(hfile, "#define %s %d\n", nodename[i], i);
bin/sh/mknodes.c
236
fputs("\n\n\n", hfile);
bin/sh/mknodes.c
238
fprintf(hfile, "struct %s {\n", sp->tag);
bin/sh/mknodes.c
240
fprintf(hfile, " %s;\n", fp->decl);
bin/sh/mknodes.c
242
fputs("};\n\n\n", hfile);
bin/sh/mknodes.c
244
fputs("union node {\n", hfile);
bin/sh/mknodes.c
245
fprintf(hfile, " int type;\n");
bin/sh/mknodes.c
247
fprintf(hfile, " struct %s %s;\n", sp->tag, sp->tag);
bin/sh/mknodes.c
249
fputs("};\n\n\n", hfile);
bin/sh/mknodes.c
250
fputs("struct nodelist {\n", hfile);
bin/sh/mknodes.c
251
fputs("\tstruct nodelist *next;\n", hfile);
bin/sh/mknodes.c
252
fputs("\tunion node *n;\n", hfile);
bin/sh/mknodes.c
253
fputs("};\n\n\n", hfile);
bin/sh/mknodes.c
254
fputs("struct funcdef;\n", hfile);
bin/sh/mknodes.c
255
fputs("struct funcdef *copyfunc(union node *);\n", hfile);
bin/sh/mknodes.c
256
fputs("union node *getfuncnode(struct funcdef *);\n", hfile);
bin/sh/mknodes.c
257
fputs("void reffunc(struct funcdef *);\n", hfile);
bin/sh/mknodes.c
258
fputs("void unreffunc(struct funcdef *);\n", hfile);
bin/sh/mknodes.c
259
if (ferror(hfile))
bin/sh/mknodes.c
261
if (fclose(hfile))
bin/sh/mksyntax.c
108
static FILE *hfile;
bin/sh/mksyntax.c
128
if ((hfile = fopen("syntax.h", "w")) == NULL) {
bin/sh/mksyntax.c
132
fputs(writer, hfile);
bin/sh/mksyntax.c
135
fputs("#include <sys/cdefs.h>\n", hfile);
bin/sh/mksyntax.c
136
fputs("#include <limits.h>\n\n", hfile);
bin/sh/mksyntax.c
139
fputs("/* Syntax classes */\n", hfile);
bin/sh/mksyntax.c
142
fputs(buf, hfile);
bin/sh/mksyntax.c
144
putc('\t', hfile);
bin/sh/mksyntax.c
145
fprintf(hfile, "/* %s */\n", synclass[i].comment);
bin/sh/mksyntax.c
147
putc('\n', hfile);
bin/sh/mksyntax.c
148
fputs("/* Syntax classes for is_ functions */\n", hfile);
bin/sh/mksyntax.c
151
fputs(buf, hfile);
bin/sh/mksyntax.c
153
putc('\t', hfile);
bin/sh/mksyntax.c
154
fprintf(hfile, "/* %s */\n", is_entry[i].comment);
bin/sh/mksyntax.c
156
putc('\n', hfile);
bin/sh/mksyntax.c
157
fputs("#define SYNBASE (1 - CHAR_MIN)\n", hfile);
bin/sh/mksyntax.c
158
fputs("#define PEOF -SYNBASE\n\n", hfile);
bin/sh/mksyntax.c
159
putc('\n', hfile);
bin/sh/mksyntax.c
160
fputs("#define BASESYNTAX (basesyntax + SYNBASE)\n", hfile);
bin/sh/mksyntax.c
161
fputs("#define DQSYNTAX (dqsyntax + SYNBASE)\n", hfile);
bin/sh/mksyntax.c
162
fputs("#define SQSYNTAX (sqsyntax + SYNBASE)\n", hfile);
bin/sh/mksyntax.c
163
fputs("#define ARISYNTAX (arisyntax + SYNBASE)\n", hfile);
bin/sh/mksyntax.c
164
putc('\n', hfile);
bin/sh/mksyntax.c
166
putc('\n', hfile);
bin/sh/mksyntax.c
242
fprintf(hfile, "extern const char %s[];\n", name);
bin/sh/mksyntax.c
331
fprintf(hfile, "%s\n", *pp);
stand/lib/hammer1.c
1006
struct hfile *hf = f->f_fsdata;
stand/lib/hammer1.c
1027
struct hfile *hf = f->f_fsdata;
stand/lib/hammer1.c
1035
struct hfile *hf = f->f_fsdata;
stand/lib/hammer1.c
921
struct hfile *hf = malloc(sizeof(*hf));
stand/lib/hammer1.c
967
struct hfile *hf = f->f_fsdata;
stand/lib/hammer1.c
980
struct hfile *hf = f->f_fsdata;
stand/lib/hammer2.c
825
struct hfile *hf = malloc(sizeof(*hf));
stand/lib/hammer2.c
864
struct hfile *hf = f->f_fsdata;
stand/lib/hammer2.c
875
struct hfile *hf = f->f_fsdata;
stand/lib/hammer2.c
895
struct hfile *hf = f->f_fsdata;
stand/lib/hammer2.c
916
struct hfile *hf = f->f_fsdata;
stand/lib/hammer2.c
929
struct hfile *hf = f->f_fsdata;