Lines Matching refs:hf
282 FILE* hf;
300 if (!(hf = fopen(hdr, "w")))
316 fprintf(hf, "/* : : generated by %s : : */\n", command);
317 fprintf(hf, "#pragma prototyped\n");
318 fprintf(hf, "\n");
319 fprintf(hf, "#ifndef _LC_H\n");
320 fprintf(hf, "#define _LC_H\t\t\t1\n");
321 fprintf(hf, "\n");
322 fprintf(hf, "#include <ast.h>\n");
323 fprintf(hf, "\n");
324 fprintf(hf, "#define LC_abbreviated\t\t0x00001\n");
325 fprintf(hf, "#define LC_checked\t\t0x00002\n");
326 fprintf(hf, "#define LC_debug\t\t0x00004\n");
327 fprintf(hf, "#define LC_default\t\t0x00008\n");
328 fprintf(hf, "#define LC_defined\t\t0x00010\n");
329 fprintf(hf, "#define LC_local\t\t0x00020\n");
330 fprintf(hf, "#define LC_primary\t\t0x00040\n");
331 fprintf(hf, "#define LC_qualified\t\t0x00080\n");
332 fprintf(hf, "#define LC_undefined\t\t0x00100\n");
333 fprintf(hf, "#define LC_utf8\t\t\t0x00200\n");
334 fprintf(hf, "#define LC_verbose\t\t0x00400\n");
335 fprintf(hf, "#define LC_setlocale\t\t0x10000\n");
336 fprintf(hf, "#define LC_setenv\t\t0x20000\n");
337 fprintf(hf, "#define LC_user\t\t\t0x40000\n");
616 fprintf(hf, "\n#define LC_language_attribute_max\t%d\n", language_attribute_max);
617 fprintf(hf, "#define LC_territory_language_max\t%d\n", territory_language_max);
618 fprintf(hf, "\nstruct Lc_s;\n");
619 fprintf(hf, "\ntypedef struct Lc_info_s\n{\n");
620 fprintf(hf, "\tconst struct Lc_s*\tlc;\n");
621 fprintf(hf, "\tunsigned long\t\tnumber;\n");
622 fprintf(hf, "\tvoid*\t\t\tdata;\n");
623 fprintf(hf, "} Lc_info_t;\n");
624 fprintf(hf, "\ntypedef struct Lc_attribute_s\n{\n");
625 fprintf(hf, "\tconst char*\t\tname;\n");
626 fprintf(hf, "\tunsigned long\t\tflags;\n");
627 fprintf(hf, "\tunsigned long\t\tindex;\n");
628 fprintf(hf, "} Lc_attribute_t;\n");
629 fprintf(hf, "\ntypedef struct Lc_charset_s\n{\n");
630 fprintf(hf, "\tconst char*\t\tcode;\n");
631 fprintf(hf, "\tconst char*\t\talternates;\n");
632 fprintf(hf, "\tconst char*\t\tms;\n");
633 fprintf(hf, "\tunsigned long\t\tindex;\n");
634 fprintf(hf, "} Lc_charset_t;\n");
635 fprintf(hf, "\ntypedef struct Lc_language_s\n{\n");
636 fprintf(hf, "\tconst char*\t\tcode;\n");
637 fprintf(hf, "\tconst char*\t\tname;\n");
638 fprintf(hf, "\tconst char*\t\talternates;\n");
639 fprintf(hf, "\tconst Lc_charset_t*\tcharset;\n");
640 fprintf(hf, "\tunsigned long\t\tflags;\n");
641 fprintf(hf, "\tunsigned long\t\tindex;\n");
642 fprintf(hf, "\tconst Lc_attribute_t*\tattributes[LC_language_attribute_max];\n");
643 fprintf(hf, "} Lc_language_t;\n");
644 fprintf(hf, "\ntypedef struct Lc_territory_s\n{\n");
645 fprintf(hf, "\tconst char*\t\tcode;\n");
646 fprintf(hf, "\tconst char*\t\tname;\n");
647 fprintf(hf, "\tunsigned long\t\tflags;\n");
648 fprintf(hf, "\tunsigned long\t\tindex;\n");
649 fprintf(hf, "\tconst Lc_language_t*\tlanguages[LC_territory_language_max];\n");
650 fprintf(hf, "#ifdef _LC_TERRITORY_PRIVATE_\n");
651 fprintf(hf, "\t_LC_TERRITORY_PRIVATE_\n");
652 fprintf(hf, "#endif\n");
653 fprintf(hf, "} Lc_territory_t;\n");
654 fprintf(hf, "\ntypedef struct Lc_map_s\n{\n");
655 fprintf(hf, "\tconst char*\t\tcode;\n");
656 fprintf(hf, "\tconst Lc_language_t*\tlanguage;\n");
657 fprintf(hf, "\tconst Lc_territory_t*\tterritory;\n");
658 fprintf(hf, "\tconst Lc_charset_t*\tcharset;\n");
659 fprintf(hf, "\tconst Lc_attribute_t*\tattribute;\n");
660 fprintf(hf, "} Lc_map_t;\n");
661 fprintf(hf, "\ntypedef struct Lc_attribute_list_s\n{\n");
662 fprintf(hf, "\tstruct Lc_attribute_list_s*\tnext;\n");
663 fprintf(hf, "\tconst Lc_attribute_t*\t\tattribute;\n");
664 fprintf(hf, "} Lc_attribute_list_t;\n");
665 fprintf(hf, "\ntypedef struct Lc_s\n{\n");
666 fprintf(hf, "\tconst char*\t\tname;\n");
667 fprintf(hf, "\tconst char*\t\tcode;\n");
668 fprintf(hf, "\tconst Lc_language_t*\tlanguage;\n");
669 fprintf(hf, "\tconst Lc_territory_t*\tterritory;\n");
670 fprintf(hf, "\tconst Lc_charset_t*\tcharset;\n");
671 fprintf(hf, "\tconst Lc_attribute_list_t*\tattributes;\n");
672 fprintf(hf, "\tunsigned long\t\tflags;\n");
673 fprintf(hf, "\tunsigned long\t\tindex;\n");
674 fprintf(hf, "#ifdef _LC_PRIVATE_\n");
675 fprintf(hf, "\t_LC_PRIVATE_\n");
676 fprintf(hf, "#endif\n");
677 fprintf(hf, "} Lc_t;\n");
678 fprintf(hf, "\nstruct Lc_category_s;\n");
679 fprintf(hf, "\ntypedef int (*Lc_category_set_f)(struct Lc_category_s*);\n");
680 fprintf(hf, "\ntypedef struct Lc_category_s\n{\n");
681 fprintf(hf, "\tconst char*\t\tname;\n");
682 fprintf(hf, "\tint\t\t\texternal;\n");
683 fprintf(hf, "\tint\t\t\tinternal;\n");
684 fprintf(hf, "\tLc_category_set_f\tsetf;\n");
685 fprintf(hf, "\tLc_t*\t\t\tprev;\n");
686 fprintf(hf, "\tunsigned int\t\tflags;\n");
687 fprintf(hf, "} Lc_category_t;\n");
688 fprintf(hf, "\n");
689 fprintf(hf, "#if _BLD_ast && defined(__EXPORT__)\n");
690 fprintf(hf, "#define extern\t\t__EXPORT__\n");
691 fprintf(hf, "#endif\n");
692 fprintf(hf, "\n");
693 fprintf(hf, "extern size_t\t\tlccanon(Lc_t*, unsigned long flags, char*, size_t);\n");
694 fprintf(hf, "extern Lc_category_t*\tlccategories(void);\n");
695 fprintf(hf, "extern int\t\tlcindex(int, int);\n");
696 fprintf(hf, "extern Lc_info_t*\tlcinfo(int);\n");
697 fprintf(hf, "extern Lc_t*\t\tlcmake(const char*);\n");
698 fprintf(hf, "extern Lc_t*\t\tlcscan(Lc_t*);\n");
699 fprintf(hf, "\n");
700 fprintf(hf, "#undef\textern\n");
788 fprintf(hf, "\n#endif\n");
789 fclose(hf);