]> sourceware.org Git - newlib-cygwin.git/commitdiff
newlib: iconv: sync mkdeps.pl with aliasesbi.c changes
authorMike Frysinger <vapier@gentoo.org>
Tue, 18 Jan 2022 02:34:26 +0000 (21:34 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 19 Jan 2022 00:34:31 +0000 (19:34 -0500)
Some changes were made to aliasesbi.c, but not to this file which
dynamically generates it.  Add those fixes to this file too.

newlib/libc/iconv/ces/mkdeps.pl

index d78dfe8f84cce3ab19c2ce2c32904a8ca52b6e25..68f090b0e728a1809c506366f681331c92b61183 100755 (executable)
@@ -584,8 +584,8 @@ sub generate_aliasesbi_c($)
   print ALIASESBI_C "$comment_automatic\n\n";
   print ALIASESBI_C "#include <_ansi.h>\n";
   print ALIASESBI_C "#include \"encnames.h\"\n\n";
-  print ALIASESBI_C "const char *\n";
-  print ALIASESBI_C "$var_aliases =\n";
+  print ALIASESBI_C "const char\n";
+  print ALIASESBI_C "$var_aliases\[\] =\n";
   print ALIASESBI_C "{\n";
 
   foreach my $enc (sort keys %{$_[0]})
@@ -598,7 +598,7 @@ sub generate_aliasesbi_c($)
     print ALIASESBI_C "#endif\n";
   }
   print ALIASESBI_C "  \"\"\n";
-  print ALIASESBI_C "};\n\n";
+  print ALIASESBI_C "};\n";
   
   close ALIASESBI_C or err "Error while closing ../lib/aliasesbi.c file.";
 }
This page took 0.033663 seconds and 5 git commands to generate.