Home
last modified time | relevance | path

Searched refs:outcf (Results 1 – 1 of 1) sorted by relevance

/openbsd/src/usr.sbin/crunchgen/
Dcrunchgen.c816 FILE *outcf; in gen_output_cfile() local
820 if ((outcf = fopen(outcfname, "w")) == NULL) { in gen_output_cfile()
825 fprintf(outcf, "/* %s - generated from %s by crunchgen %s */\n", in gen_output_cfile()
828 fprintf(outcf, "#define EXECNAME \"%s\"\n", execfname); in gen_output_cfile()
830 fprintf(outcf, "%s\n", *cp); in gen_output_cfile()
833 fprintf(outcf, "extern int _crunched_%s_stub();\n", p->ident); in gen_output_cfile()
835 fprintf(outcf, "\nstruct stub entry_points[] = {\n"); in gen_output_cfile()
837 fprintf(outcf, "\t{ \"%s\", _crunched_%s_stub },\n", in gen_output_cfile()
840 fprintf(outcf, "\t{ \"%s\", _crunched_%s_stub },\n", in gen_output_cfile()
844 fprintf(outcf, "\t{ EXECNAME, crunched_main },\n"); in gen_output_cfile()
[all …]