Lines Matching defs: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\t\t0x10000\n");
336 fprintf(hf, "#define LC_setenv\t\t\t0x20000\n");
337 fprintf(hf, "#define LC_user\t\t\t0x40000\n");
612 fprintf(hf, "#define LC_language_attribute_max\t\t%d\n", language_attribute_max);
613 fprintf(hf, "#define LC_territory_language_max\t\t%d\n", territory_language_max);
614 fprintf(hf, "\nstruct Lc_s;\n");
615 fprintf(hf, "\ntypedef struct Lc_info_s\n{\n");
616 fprintf(hf, "\tconst struct Lc_s*\tlc;\n");
617 fprintf(hf, "\tunsigned long\t\tnumber;\n");
618 fprintf(hf, "\tvoid*\t\t\tdata;\n");
619 fprintf(hf, "} Lc_info_t;\n");
620 fprintf(hf, "\ntypedef struct Lc_attribute_s\n{\n");
621 fprintf(hf, "\tconst char*\t\tname;\n");
622 fprintf(hf, "\tunsigned long\t\tflags;\n");
623 fprintf(hf, "\tunsigned long\t\tindex;\n");
624 fprintf(hf, "} Lc_attribute_t;\n");
625 fprintf(hf, "\ntypedef struct Lc_charset_s\n{\n");
626 fprintf(hf, "\tconst char*\t\tcode;\n");
627 fprintf(hf, "\tconst char*\t\talternates;\n");
628 fprintf(hf, "\tconst char*\t\tms;\n");
629 fprintf(hf, "\tunsigned long\t\tindex;\n");
630 fprintf(hf, "} Lc_charset_t;\n");
631 fprintf(hf, "\ntypedef struct Lc_language_s\n{\n");
632 fprintf(hf, "\tconst char*\t\tcode;\n");
633 fprintf(hf, "\tconst char*\t\tname;\n");
634 fprintf(hf, "\tconst char*\t\talternates;\n");
635 fprintf(hf, "\tconst Lc_charset_t*\tcharset;\n");
636 fprintf(hf, "\tunsigned long\t\tflags;\n");
637 fprintf(hf, "\tunsigned long\t\tindex;\n");
638 fprintf(hf, "\tconst Lc_attribute_t*\tattributes[LC_language_attribute_max];\n");
639 fprintf(hf, "} Lc_language_t;\n");
640 fprintf(hf, "\ntypedef struct Lc_territory_s\n{\n");
641 fprintf(hf, "\tconst char*\t\tcode;\n");
642 fprintf(hf, "\tconst char*\t\tname;\n");
643 fprintf(hf, "\tunsigned long\t\tflags;\n");
644 fprintf(hf, "\tunsigned long\t\tindex;\n");
645 fprintf(hf, "\tconst Lc_language_t*\tlanguages[LC_territory_language_max];\n");
646 fprintf(hf, "#ifdef _LC_TERRITORY_PRIVATE_\n");
647 fprintf(hf, "\t_LC_TERRITORY_PRIVATE_\n");
648 fprintf(hf, "#endif\n");
649 fprintf(hf, "} Lc_territory_t;\n");
650 fprintf(hf, "\ntypedef struct Lc_map_s\n{\n");
651 fprintf(hf, "\tconst char*\t\tcode;\n");
652 fprintf(hf, "\tconst Lc_language_t*\tlanguage;\n");
653 fprintf(hf, "\tconst Lc_territory_t*\tterritory;\n");
654 fprintf(hf, "\tconst Lc_charset_t*\tcharset;\n");
655 fprintf(hf, "\tconst Lc_attribute_t*\tattribute;\n");
656 fprintf(hf, "} Lc_map_t;\n");
657 fprintf(hf, "\ntypedef struct Lc_attribute_list_s\n{\n");
658 fprintf(hf, "\tstruct Lc_attribute_list_s*\tnext;\n");
659 fprintf(hf, "\tconst Lc_attribute_t*\t\tattribute;\n");
660 fprintf(hf, "} Lc_attribute_list_t;\n");
661 fprintf(hf, "\ntypedef struct Lc_s\n{\n");
662 fprintf(hf, "\tconst char*\t\tname;\n");
663 fprintf(hf, "\tconst char*\t\tcode;\n");
664 fprintf(hf, "\tconst Lc_language_t*\tlanguage;\n");
665 fprintf(hf, "\tconst Lc_territory_t*\tterritory;\n");
666 fprintf(hf, "\tconst Lc_charset_t*\tcharset;\n");
667 fprintf(hf, "\tconst Lc_attribute_list_t*\tattributes;\n");
668 fprintf(hf, "\tunsigned long\t\tflags;\n");
669 fprintf(hf, "\tunsigned long\t\tindex;\n");
670 fprintf(hf, "#ifdef _LC_PRIVATE_\n");
671 fprintf(hf, "\t_LC_PRIVATE_\n");
672 fprintf(hf, "#endif\n");
673 fprintf(hf, "} Lc_t;\n");
674 fprintf(hf, "\nstruct Lc_category_s;\n");
675 fprintf(hf, "\ntypedef int (*Lc_category_set_f)(struct Lc_category_s*);\n");
676 fprintf(hf, "\ntypedef struct Lc_category_s\n{\n");
677 fprintf(hf, "\tconst char*\t\tname;\n");
678 fprintf(hf, "\tint\t\t\texternal;\n");
679 fprintf(hf, "\tint\t\t\tinternal;\n");
680 fprintf(hf, "\tLc_category_set_f\tsetf;\n");
681 fprintf(hf, "\tLc_t*\t\t\tprev;\n");
682 fprintf(hf, "\tunsigned int\t\tflags;\n");
683 fprintf(hf, "} Lc_category_t;\n");
684 fprintf(hf, "\n");
685 fprintf(hf, "#if _BLD_ast && defined(__EXPORT__)\n");
686 fprintf(hf, "#define extern\t\t__EXPORT__\n");
687 fprintf(hf, "#endif\n");
688 fprintf(hf, "\n");
689 fprintf(hf, "extern size_t\t\tlccanon(Lc_t*, unsigned long flags, char*, size_t);\n");
690 fprintf(hf, "extern Lc_category_t*\tlccategories(void);\n");
691 fprintf(hf, "extern int\t\tlcindex(int, int);\n");
692 fprintf(hf, "extern Lc_info_t*\tlcinfo(int);\n");
693 fprintf(hf, "extern Lc_t*\t\tlcmake(const char*);\n");
694 fprintf(hf, "extern Lc_t*\t\tlcscan(Lc_t*);\n");
695 fprintf(hf, "\n");
696 fprintf(hf, "#undef\textern\n");
780 fprintf(hf, "\n#endif\n");
781 fclose(hf);