Lines Matching refs:out
1277 write_case(FILE *out, _case_t *tab, int num, int first) in write_case() argument
1283 else fprintf(out, ","); in write_case()
1284 fprintf(out, "\n\t0x%08lx, 0x%08lx, 0x%08lx", in write_case()
1297 FILE *out; in write_cdata() local
1317 if ((out = fopen(path, "w")) == 0) in write_cdata()
1324 if ((out = fopen(path, "wb")) == 0) in write_cdata()
1361 fprintf(out, in write_cdata()
1374 fprintf(out, PREF "unsigned short _ucprop_size = %d;\n\n", NUMPROPS); in write_cdata()
1376 fprintf(out, PREF "unsigned short _ucprop_offsets[] = {"); in write_cdata()
1379 if (i) fprintf(out, ","); in write_cdata()
1380 if (!(i&7)) fprintf(out, "\n\t"); in write_cdata()
1381 else fprintf(out, " "); in write_cdata()
1382 fprintf(out, "0x%04x", propcnt[i]); in write_cdata()
1384 fprintf(out, "\n};\n\n"); in write_cdata()
1386 fprintf(out, PREF "unsigned int _ucprop_ranges[] = {"); in write_cdata()
1392 if (k) fprintf(out, ","); in write_cdata()
1393 if (!(k&3)) fprintf(out,"\n\t"); in write_cdata()
1394 else fprintf(out, " "); in write_cdata()
1396 fprintf(out, "0x%08lx", (unsigned long) proptbl[i].ranges[j]); in write_cdata()
1400 fprintf(out, "\n};\n\n"); in write_cdata()
1405 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1410 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1415 fwrite((char *) propcnt, sizeof(ac_uint2), nprops, out); in write_cdata()
1423 proptbl[i].used, out); in write_cdata()
1426 fclose(out); in write_cdata()
1436 fprintf(out, PREF "unsigned int _uccase_size = %ld;\n\n", in write_cdata()
1439 fprintf(out, in write_cdata()
1444 fprintf(out, PREF "unsigned short _uccase_len[2] = {%ld, %ld};\n\n", in write_cdata()
1446 fprintf(out, PREF "unsigned int _uccase_map[] = {"); in write_cdata()
1452 write_case(out, upper, upper_used, 1); in write_cdata()
1458 write_case(out, lower, lower_used, !upper_used); in write_cdata()
1464 write_case(out, title, title_used, !(upper_used||lower_used)); in write_cdata()
1467 fprintf(out, "\t0"); in write_cdata()
1469 fprintf(out, "\n};\n\n"); in write_cdata()
1475 if ((out = fopen(path, "wb")) == 0) in write_cdata()
1488 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1493 fwrite((char *) casecnt, sizeof(ac_uint2), 2, out); in write_cdata()
1499 fwrite((char *) upper, sizeof(_case_t), upper_used, out); in write_cdata()
1505 fwrite((char *) lower, sizeof(_case_t), lower_used, out); in write_cdata()
1511 fwrite((char *) title, sizeof(_case_t), title_used, out); in write_cdata()
1513 fclose(out); in write_cdata()
1530 fprintf(out, PREF "ac_uint4 _uccomp_size = %ld;\n\n", in write_cdata()
1533 fprintf(out, PREF "ac_uint4 _uccomp_data[] = {"); in write_cdata()
1540 if (i) fprintf(out, ","); in write_cdata()
1541 fprintf(out, "\n\t0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx", in write_cdata()
1546 fprintf(out, "\t0"); in write_cdata()
1548 fprintf(out, "\n};\n\n"); in write_cdata()
1554 if ((out = fopen(path, "wb")) == 0) in write_cdata()
1561 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1567 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1573 fwrite((char *) comps, sizeof(_comp_t), comps_used, out); in write_cdata()
1575 fclose(out); in write_cdata()
1590 fprintf(out, PREF "ac_uint4 _ucdcmp_size = %ld;\n\n", in write_cdata()
1593 fprintf(out, PREF "ac_uint4 _ucdcmp_nodes[] = {"); in write_cdata()
1600 fprintf(out, "\n\t0x%08lx, 0x%08lx,", in write_cdata()
1608 fprintf(out, "\n\t0x%08lx\n};\n\n", (unsigned long) idx); in write_cdata()
1610 fprintf(out, PREF "ac_uint4 _ucdcmp_decomp[] = {"); in write_cdata()
1617 if (k) fprintf(out, ","); in write_cdata()
1618 if (!(k&3)) fprintf(out,"\n\t"); in write_cdata()
1619 else fprintf(out, " "); in write_cdata()
1621 fprintf(out, "0x%08lx", (unsigned long) decomps[i].decomp[j]); in write_cdata()
1623 fprintf(out, "\n};\n\n"); in write_cdata()
1630 if ((out = fopen(path, "wb")) == 0) in write_cdata()
1638 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1645 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1652 fwrite((char *) &decomps[i].code, sizeof(ac_uint4), 1, out); in write_cdata()
1653 fwrite((char *) &idx, sizeof(ac_uint4), 1, out); in write_cdata()
1660 fwrite((char *) &idx, sizeof(ac_uint4), 1, out); in write_cdata()
1667 decomps[i].used, out); in write_cdata()
1674 fseek(out, sizeof(ac_uint2) << 1, 0L); in write_cdata()
1675 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1677 fclose(out); in write_cdata()
1682 fprintf(out, PREF "ac_uint4 _uckdcmp_size = %ld;\n\n", in write_cdata()
1685 fprintf(out, PREF "ac_uint4 _uckdcmp_nodes[] = {"); in write_cdata()
1692 fprintf(out, "\n\t0x%08lx, 0x%08lx,", in write_cdata()
1700 fprintf(out, "\n\t0x%08lx\n};\n\n", (unsigned long) idx); in write_cdata()
1702 fprintf(out, PREF "ac_uint4 _uckdcmp_decomp[] = {"); in write_cdata()
1710 if (k) fprintf(out, ","); in write_cdata()
1711 if (!(k&3)) fprintf(out,"\n\t"); in write_cdata()
1712 else fprintf(out, " "); in write_cdata()
1714 fprintf(out, "0x%08lx", (unsigned long) kdecomps[i].decomp[j]); in write_cdata()
1716 fprintf(out, "\n};\n\n"); in write_cdata()
1723 if ((out = fopen(path, "wb")) == 0) in write_cdata()
1731 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1738 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1745 fwrite((char *) &kdecomps[i].code, sizeof(ac_uint4), 1, out); in write_cdata()
1746 fwrite((char *) &idx, sizeof(ac_uint4), 1, out); in write_cdata()
1753 fwrite((char *) &idx, sizeof(ac_uint4), 1, out); in write_cdata()
1760 kdecomps[i].used, out); in write_cdata()
1767 fseek(out, sizeof(ac_uint2) << 1, 0L); in write_cdata()
1768 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1770 fclose(out); in write_cdata()
1780 fprintf(out, PREF "ac_uint4 _uccmcl_size = %ld;\n\n", (long) ccl_used); in write_cdata()
1782 fprintf(out, PREF "ac_uint4 _uccmcl_nodes[] = {"); in write_cdata()
1789 if (i) fprintf(out, ","); in write_cdata()
1790 if (!(i&3)) fprintf(out, "\n\t"); in write_cdata()
1791 else fprintf(out, " "); in write_cdata()
1792 fprintf(out, "0x%08lx", (unsigned long) ccl[i]); in write_cdata()
1795 fprintf(out, "\t0"); in write_cdata()
1797 fprintf(out, "\n};\n\n"); in write_cdata()
1803 if ((out = fopen(path, "wb")) == 0) in write_cdata()
1815 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1821 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1827 fwrite((char *) ccl, sizeof(ac_uint4), ccl_used, out); in write_cdata()
1829 fclose(out); in write_cdata()
1839 fprintf(out, PREF "ac_uint4 _ucnum_size = %lu;\n\n", in write_cdata()
1842 fprintf(out, PREF "ac_uint4 _ucnum_nodes[] = {"); in write_cdata()
1849 if (i) fprintf(out, ","); in write_cdata()
1850 if (!(i&1)) fprintf(out, "\n\t"); in write_cdata()
1851 else fprintf(out, " "); in write_cdata()
1852 fprintf(out, "0x%08lx, 0x%08lx", in write_cdata()
1855 fprintf(out, "\n};\n\n"); in write_cdata()
1857 fprintf(out, PREF "short _ucnum_vals[] = {"); in write_cdata()
1859 if (i) fprintf(out, ","); in write_cdata()
1860 if (!(i&3)) fprintf(out, "\n\t"); in write_cdata()
1861 else fprintf(out, " "); in write_cdata()
1863 fprintf(out, "%6d, 0x%04x", in write_cdata()
1866 fprintf(out, "0x%04x, 0x%04x", in write_cdata()
1870 fprintf(out, "\n};\n\n"); in write_cdata()
1877 if ((out = fopen(path, "wb")) == 0) in write_cdata()
1890 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1895 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1901 fwrite((char *) ncodes, sizeof(_codeidx_t), ncodes_used, out); in write_cdata()
1902 fwrite((char *) nums, sizeof(_num_t), nums_used, out); in write_cdata()
1908 fclose(out); in write_cdata()