Lines Matching full:n

97   print "Usage: $0 [-$infile_opt depfile] [-$help_opt]\n";
99 print "file will be used by default)\n";
100 print "\t-$help_opt - this help message\n";
108 print "Debug: -$verbose_opt option found.\n" if $verbose;
117 print "Debug: open \"$infile\" input file.\n" if $verbose;
118 open (INFILE, '<', $infile) or err "Can't open \"$infile\" file for reading.\n"
119 . "System error message: $!.\n";
135 $l =~ s/^(.*)\n$/$1/, $l =~ s/^(.*)\r$/$1/;
159 $l =~ s/^(.*)\n$/$1/, $l =~ s/^(.*)\r$/$1/;
192 print "Debug: process $section_encodings section.\n" if $verbose;
196 print "Debug: process $section_cesdeps section.\n" if $verbose;
200 print STDERR "Warning: section \"$_\" was ignored!\n"
215 print STDERR "Error while running script.\n$_[0]\n";
468 print "Debug: create \"cesbi.h\" file.\n" if $verbose;
470 or err "Can't create \"cesbi.h\" file for writing.\nSystem error message: $!.\n";
472 print CESBI_H "$comment_automatic\n\n";
473 print CESBI_H "#ifndef __CESBI_H__\n";
474 print CESBI_H "#define __CESBI_H__\n\n";
475 print CESBI_H "#include \"../lib/encnames.h\"\n";
476 print CESBI_H "#include \"../lib/ucsconv.h\"\n\n";
477 print CESBI_H "/*\n";
478 print CESBI_H " * Enable CES converter if correspondent encoding is requested.\n";
479 print CESBI_H " * Defining ${macro_to_ucs_ces}XXX macro or ${macro_from_ucs_ces}XXX\n";
480 print CESBI_H " * macro is needed to enable \"XXX encoding -> UCS\" or \"UCS -> XXX encoding\"\n";
481 print CESBI_H " * part of UCS-based CES converter.\n";
482 print CESBI_H " */\n";
492 print CESBI_H "\n";
494 print CESBI_H "# define $macro_to_ucs_ces\U$ces\n";
495 print CESBI_H "#endif\n";
502 print CESBI_H "\n";
504 print CESBI_H "# define $macro_from_ucs_ces\U$ces\n";
505 print CESBI_H "#endif\n\n";
508 print CESBI_H "/*\n";
509 print CESBI_H " * Some encodings require another encodings to be enabled.\n";
510 print CESBI_H " * These dependencies are handled in cesdeps.h header file.\n";
511 print CESBI_H " */\n";
512 print CESBI_H "#include \"cesdeps.h\"\n\n";
514 print CESBI_H "/*\n";
515 print CESBI_H " * NLS uses iconv's capabilities and require one of encodings\n";
516 print CESBI_H " * to be enabled for internal wchar_t representation.\n";
517 print CESBI_H " */\n";
518 print CESBI_H "#include \"../lib/iconvnls.h\"\n\n";
520 print CESBI_H "/*\n";
521 print CESBI_H " * Forward declarations of CES converter handlers.\n";
522 print CESBI_H " * These handlers are actually defined in correspondent CES converter files.\n";
523 print CESBI_H " */\n";
527 print CESBI_H "#ifdef $macro_to_ucs_ces\U$ces\n";
528 print CESBI_H "extern const iconv_to_ucs_ces_handlers_t\n";
529 print CESBI_H "$var_to_ucs_handlers$ces;\n";
530 print CESBI_H "#endif\n";
532 print CESBI_H "#ifdef $macro_from_ucs_ces\U$ces\n";
533 print CESBI_H "extern const iconv_from_ucs_ces_handlers_t\n";
534 print CESBI_H "$var_from_ucs_handlers$ces;\n";
535 print CESBI_H "#endif\n\n";
538 print CESBI_H "#endif /* !__CESBI_H__ */\n\n";
551 print "Debug: create \"../lib/encnames.h\" file.\n" if $verbose;
553 or err "Can't create \"../lib/encnames.h\" file for writing.\nSystem error message: $!.\n";
555 print ENCNAMES_H "$comment_automatic\n\n";
556 print ENCNAMES_H "#ifndef __ENCNAMES_H__\n";
557 print ENCNAMES_H "#define __ENCNAMES_H__\n\n";
559 print ENCNAMES_H "/*\n";
560 print ENCNAMES_H " * Encodings name macros.\n";
561 print ENCNAMES_H " */\n";
565 print ENCNAMES_H "#define $macro_enc_name\U$enc\E \"$enc\"\n";
568 print ENCNAMES_H "\n#endif /* !__ENCNAMES_H__ */\n\n";
581 print "Debug: create \"../lib/aliasesbi.c\" file.\n" if $verbose;
583 or err "Can't create \"../lib/aliasesbi.c\" file for writing.\nSystem error message: $!.\n";
585 print ALIASESBI_C "$comment_automatic\n\n";
586 print ALIASESBI_C "#include \"encnames.h\"\n\n";
587 print ALIASESBI_C "const char\n";
588 print ALIASESBI_C "$var_aliases\[\] =\n";
589 print ALIASESBI_C "{\n";
593 print ALIASESBI_C "#if defined ($macro_from_enc\U$enc) \\\n";
594 print ALIASESBI_C " || defined ($macro_to_enc\U$enc)\n";
596 print ALIASESBI_C " \" ${$_[0]}{$enc}\\n\"" if defined ${$_[0]}{$enc};
597 print ALIASESBI_C "\n";
598 print ALIASESBI_C "#endif\n";
600 print ALIASESBI_C " \"\"\n";
601 print ALIASESBI_C "};\n";
615 print "Debug: create \"../encoding.aliases\" file.\n" if $verbose;
617 or err "Can't create \"../encoding.aliases\" file for writing.\nSystem error message: $!.\n";
619 print ALIASES "#\n# This file was automatically generated. Don't edit.\n#\n\n";
625 print ALIASES "\n";
628 print ALIASES "\n";
646 print "Debug: create \"cesdeps.h\" file.\n" if $verbose;
648 or err "Can't create \"cesdeps.h\" file for writing.\nSystem error message: $!.\n";
650 print CESDEPS_H "$comment_automatic\n\n";
651 print CESDEPS_H "#ifndef __CESDEPS_H__\n";
652 print CESDEPS_H "#define __CESDEPS_H__\n\n";
654 print CESDEPS_H "/*\n";
655 print CESDEPS_H " * Some CES converters use another CES converters and the following\n";
656 print CESDEPS_H " * is such dependencies description.\n";
657 print CESDEPS_H " */\n";
663 print CESDEPS_H "#ifdef $macro_to_ucs_ces\U$ces\n";
667 print CESDEPS_H "# ifndef $macro_to_ucs_ces\U$dep\n";
668 print CESDEPS_H "# define $macro_to_ucs_ces\U$dep\n";
669 print CESDEPS_H "# endif\n";
671 print CESDEPS_H "#endif\n";
673 print CESDEPS_H "#ifdef $macro_from_ucs_ces\U$ces\n";
676 print CESDEPS_H "# ifndef $macro_from_ucs_ces\U$dep\n";
677 print CESDEPS_H "# define $macro_from_ucs_ces\U$dep\n";
678 print CESDEPS_H "# endif\n";
680 print CESDEPS_H "#endif\n";
683 print CESDEPS_H "\n#endif /* !__CESDEPS_H__ */\n\n";
700 print "Debug: create \"../ccs/ccsbi.h\" file.\n" if $verbose;
702 or err "Can't create \"../ccs/ccsbi.h\" file for writing.\nSystem error message: $!.\n";
704 print CCSBI_H "$comment_automatic\n\n";
705 print CCSBI_H "#ifndef __CCSBI_H__\n";
706 print CCSBI_H "#define __CCSBI_H__\n\n";
707 print CCSBI_H "#include \"ccs.h\"\n\n";
708 print CCSBI_H "/*\n";
709 print CCSBI_H " * Enable CCS tables if encoding needs them.\n";
710 print CCSBI_H " * Defining ${macro_to_ucs_ccs}XXX macro or ${macro_from_ucs_ccs}XXX\n";
711 print CCSBI_H " * macro is needed to enable \"XXX encoding -> UCS\" or \"UCS -> XXX encoding\"\n";
712 print CCSBI_H " * part of CCS table.\n";
713 …print CCSBI_H " * CCS tables aren't linked if Newlib was configuted to use external CCS tables.\n";
714 print CCSBI_H " */\n";
716 print CCSBI_H "#ifndef _ICONV_ENABLE_EXTERNAL_CCS\n\n";
726 print CCSBI_H "\n";
728 print CCSBI_H "# define $macro_to_ucs_ccs\U$ccs\n";
729 print CCSBI_H "#endif\n";
736 print CCSBI_H "\n";
738 print CCSBI_H "# define $macro_from_ucs_ccs\U$ccs\n";
739 print CCSBI_H "#endif\n\n";
742 print CCSBI_H "/*\n";
743 print CCSBI_H " * CCS table description structures forward declarations.\n";
744 print CCSBI_H " */\n";
748 print CCSBI_H "#if defined ($macro_to_ucs_ccs\U$ccs) \\\n";
749 print CCSBI_H " || defined ($macro_from_ucs_ccs\U$ccs)\n";
750 print CCSBI_H "extern const iconv_ccs_t\n";
751 print CCSBI_H "$var_ccs$ccs;\n";
752 print CCSBI_H "#endif\n";
755 print CCSBI_H "\n#endif /* !_ICONV_ENABLE_EXTERNAL_CCS */\n\n";
756 print CCSBI_H "\n#endif /* __CCSBI_H__ */\n\n";
773 print "Debug: create \"cesbi.c\" file.\n" if $verbose;
775 or err "Can't create \"cesbi.c\" file for writing.\nSystem error message: $!.\n";
777 print CESBI_C "$comment_automatic\n\n";
778 print CESBI_C "#include \"../lib/ucsconv.h\"\n";
779 print CESBI_C "#include \"cesbi.h\"\n\n";
780 print CESBI_C "/*\n";
781 print CESBI_C " * Each CES converter provides the list of supported encodings.\n";
782 print CESBI_C " */\n";
786 print CESBI_C "#if defined ($macro_to_ucs_ces\U$ces) \\\n";
787 print CESBI_C " || defined ($macro_from_ucs_ces\U$ces)\n";
788 print CESBI_C "static const char *\n";
789 print CESBI_C "$var_ces_names${ces}\[] =\n";
790 print CESBI_C "{\n";
794 print CESBI_C "# if defined ($macro_from_enc\U$encoding) \\\n";
795 print CESBI_C " || defined ($macro_to_enc\U$encoding)\n";
796 print CESBI_C " $macro_enc_name\U$encoding,\n";
797 print CESBI_C "#endif\n";
799 print CESBI_C " NULL\n";
800 print CESBI_C "};\n";
801 print CESBI_C "#endif\n\n";
804 print CESBI_C "/*\n";
805 …t CESBI_C " * The following structure contains the list of \"to UCS\" linked-in CES converters.\n";
806 print CESBI_C " */\n";
807 print CESBI_C "const iconv_to_ucs_ces_t\n";
808 print CESBI_C "_iconv_to_ucs_ces[] =\n";
809 print CESBI_C "{\n";
813 print CESBI_C "#ifdef $macro_to_ucs_ces\U$ces\n";
814 print CESBI_C " {(const char **)$var_ces_names$ces,\n";
815 print CESBI_C " &$var_to_ucs_handlers$ces},\n";
816 print CESBI_C "#endif\n";
818 print CESBI_C " {(const char **)NULL,\n";
819 print CESBI_C " (iconv_to_ucs_ces_handlers_t *)NULL}\n";
820 print CESBI_C "};\n\n";
822 print CESBI_C "/*\n";
823 …CESBI_C " * The following structure contains the list of \"from UCS\" linked-in CES converters.\n";
824 print CESBI_C " */\n";
825 print CESBI_C "const iconv_from_ucs_ces_t\n";
826 print CESBI_C "_iconv_from_ucs_ces[] =\n";
827 print CESBI_C "{\n";
831 print CESBI_C "#ifdef $macro_from_ucs_ces\U$ces\n";
832 print CESBI_C " {(const char **)$var_ces_names$ces,\n";
833 print CESBI_C " &$var_from_ucs_handlers$ces},\n";
834 print CESBI_C "#endif\n";
836 print CESBI_C " {(const char **)NULL,\n";
837 print CESBI_C " (iconv_from_ucs_ces_handlers_t *)NULL}\n";
838 print CESBI_C "};\n";
854 print "Debug: create \"../ccs/ccsbi.c\" file.\n" if $verbose;
856 or err "Can't create \"../ccs/ccsbi.c\" file for writing.\nSystem error message: $!.\n";
858 print CESBI_C "$comment_automatic\n\n";
859 print CESBI_C "#include \"ccsbi.h\"\n\n";
860 print CESBI_C "/*\n";
861 print CESBI_C " * The following array contains the list of built-in CCS tables.\n";
862 print CESBI_C " */\n";
864 print CESBI_C "const iconv_ccs_t *\n";
865 print CESBI_C "_iconv_ccs[] =\n";
866 print CESBI_C "{\n";
870 print CESBI_C "#if defined ($macro_to_ucs_ccs\U$ccs) \\\n";
871 print CESBI_C " || defined ($macro_from_ucs_ccs\U$ccs)\n";
872 print CESBI_C " &$var_ccs$ccs,\n";
873 print CESBI_C "#endif\n";
875 print CESBI_C " NULL\n";
876 print CESBI_C "};\n";
894 print "Debug: create \"../ccs/ccsnames.h\" file.\n" if $verbose;
896 or err "Can't create \"../ccs/ccsnames.h\" file for writing.\nSystem error message: $!.\n";
898 print CCSNAMES_H "$comment_automatic\n\n";
899 print CCSNAMES_H "#ifndef __CCSNAMES_H__\n";
900 print CCSNAMES_H "#define __CCSNAMES_H__\n\n";
901 print CCSNAMES_H "#include \"../lib/encnames.h\"\n\n";
902 print CCSNAMES_H "/*\n";
903 print CCSNAMES_H " * CCS tables names macros.\n";
904 print CCSNAMES_H " */\n";
916 print CCSNAMES_H "$macro_enc_name\U$encoding\n";
920 print CCSNAMES_H "\"$ccs\"\n" if !$flag;
923 print CCSNAMES_H "\n#endif /* !__CCSNAMES_H__ */\n\n";
938 print "Debug: create \"../../../iconv.m4\" file.\n" if $verbose;
940 or err "Can't create \"../../../iconv.m4\" file for writing.\nSystem error message: $!.\n";
942 print ICONV_M4 "$comment_automatic\n";
943 print ICONV_M4 "AC_DEFUN([NEWLIB_ICONV_DEFINES],[dnl\n";
949 print ICONV_M4 " if test \"\$$tovar\" = 1; then\n";
950 print ICONV_M4 " AC_DEFINE($tovar, 1, [Support $encoding output encoding.])\n";
951 print ICONV_M4 " fi\n";
954 print ICONV_M4 " if test \"\$$fromvar\" = 1; then\n";
955 print ICONV_M4 " AC_DEFINE($fromvar, 1, [Support $encoding input encoding.])\n";
956 print ICONV_M4 " fi\n";
958 print ICONV_M4 "])\n";