Lines Matching defs:fp
1685 listids(FILE * fp)
1697 fprintf(fp, "/**\n*** CCSID For arg Recognized name.\n");
1702 fprintf(fp, "\n");
1709 pos = fprintf(fp, "*** %5u %c ", cp->c_ccsid,
1721 fprintf(fp, "\n***%22c", ' ');
1725 pos += fprintf(fp, " %.*s", srcc, buf);
1730 fprintf(fp, "\n");
1732 fprintf(fp, "**/\n\n");
1737 generate(FILE * fp)
1767 fprintf(fp,
1777 fprintf(fp, "typedef unsigned short t_ccsid;\n");
1778 fprintf(fp, "typedef %-23s t_staterange;\n", inttype(nstates));
1779 fprintf(fp, "typedef %-23s t_transrange;\n\n", inttype(ntrans));
1785 fprintf(fp, "static t_transrange trans_array[] = {\n");
1790 pos += fprintf(fp, " %u,", ntrans);
1793 fprintf(fp, "\n");
1801 fprintf(fp, " %u\n};\n\n", ntrans);
1807 fprintf(fp, "static t_ccsid final_array[] = {\n");
1813 pos += fprintf(fp, "%s", ns);
1817 fprintf(fp, "\n");
1821 pos += fprintf(fp, " %u",
1825 fprintf(fp, "\n};\n\n");
1831 fprintf(fp, "static t_staterange goto_array[] = {\n");
1836 pos += fprintf(fp, " %u,", t->t_to->s_index);
1839 fprintf(fp, "\n");
1844 fprintf(fp, " %u\n};\n\n", nstates);
1850 fprintf(fp, "static unsigned char label_array[] = {\n");
1856 pos += fprintf(fp, "%s", ns);
1860 fprintf(fp, "\n");
1864 pos += fprintf(fp, " 0x%02X", t->t_token);
1867 fprintf(fp, "\n};\n", nstates);
1876 FILE * fp;
1926 fp = fopen(argv[3], "w+");
1928 if (!fp) {
1933 fprintf(fp, "/**\n");
1934 fprintf(fp, "*** Character set names table.\n");
1935 fprintf(fp, "*** Generated by program BLDCSNDFA from");
1936 fprintf(fp, " IANA character set assignment file\n");
1937 fprintf(fp, "*** and CCSID/MIBenum equivalence file.\n");
1938 fprintf(fp, "*** *** Do not edit by hand ***\n");
1939 fprintf(fp, "**/\n\n");
1940 listids(fp);
1941 generate(fp);
1943 if (ferror(fp)) {
1945 fclose(fp);
1949 fclose(fp);