Lines Matching refs:outfp
298 FILE *outfp; variable
405 outfp = fopen (outputfile, "w"); in main()
413 if (outfp) { in main()
416 fprintf(outfp, "/*\t$NetBSD: ncr53cxxx.c,v 1.17 2022/04/21 21:31:11 andvar Exp $\t*/\n"); in main()
417 fprintf(outfp, "/*\n"); in main()
418 fprintf(outfp, " *\tDO NOT EDIT - this file is automatically generated.\n"); in main()
420 fprintf(outfp, " *\tcreated from %s on %s", sourcefile, ctime(&cur_time)); in main()
421 fprintf(outfp, " */\n"); in main()
455 if (outfp && !partial_flag) { in main()
456 fprintf (outfp, "\nu_int32_t INSTRUCTIONS = 0x%08x;\n", ninsts); in main()
457 fprintf (outfp, "u_int32_t PATCHES = 0x%08x;\n", npatches); in main()
458 fprintf (outfp, "u_int32_t LABELPATCHES[] = {\n"); in main()
461 fprintf (outfp, "\t0x%08x,\n", p->offset / 4); in main()
464 fprintf (outfp, "};\n\n"); in main()
498 if (nsymbols == 0 || outfp == NULL) in emit_symbols()
518 fprintf (outfp, "#define\t%s%s\t0x%08x\n", code, symbols[i].name, in emit_symbols()
522 fprintf (outfp, "u_int32_t %s%s_Used[] = {\n", code, symbols[i].name); in emit_symbols()
526 fprintf (outfp, "\t0x%08x,\n", p->offset / 4); in emit_symbols()
530 fprintf (outfp, "};\n\n"); in emit_symbols()
684 if (outfp) { in close_script()
685 fprintf (outfp, "const u_int32_t %s[] = {\n", script_name); in close_script()
687 fprintf (outfp, "\t0x%08x, 0x%08x", script[i], in close_script()
691 fprintf (outfp, ", 0x%08x,", script[i + 2]); in close_script()
693 if ((i + 2) <= dsps / 4) fprintf (outfp, ",\t\t"); in close_script()
694 fprintf (outfp, "\t/* %03x - %3d */\n", i * 4, i * 4); in close_script()
698 fprintf (outfp, "};\n\n"); in close_script()