Make the unicode table scripts generate file with whitespacing done as has been manually edited despite the

warning on top.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2006-04-05 00:18:31 +00:00
parent b82f68a95b
commit c260cbf80d
2 changed files with 27 additions and 27 deletions

View File

@@ -40,8 +40,8 @@ int main(int argc, char *argv[])
/* dump it: */
printf("\n\n"
"/* \n"
" * %s to Unicode recoding table \n"
"/*\n"
" * %s to Unicode recoding table\n"
" * based on file %s by Unicode Consortium\n"
" */\n\n"
"static wxUint16 encoding_table__%s[128] = {",
@@ -50,10 +50,10 @@ int main(int argc, char *argv[])
for (i = 128; i < 256; i++)
{
if (i % 8 == 0)
printf("\n ");
printf("0x%04X%c ", table[i].u, (i == 255) ? '\n' : ',');
printf("\n ");
printf(" 0x%04X%c", table[i].u, (i == 255) ? '\n' : ',');
}
printf("};\n");
printf(" };\n");
qsort(table + 128, 128, sizeof(table[0]), cmpt);