X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/045c4fab85bd7bcc59010d663e23ea70dda3c7bc..928e79b665fc9ad569655ced3168195b39bd04b6:/misc/unictabl/mk_ctable.c?ds=sidebyside diff --git a/misc/unictabl/mk_ctable.c b/misc/unictabl/mk_ctable.c index 65c96f87bb..9ee7418458 100644 --- a/misc/unictabl/mk_ctable.c +++ b/misc/unictabl/mk_ctable.c @@ -40,20 +40,20 @@ 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] = {", + "static const wxUint16 encoding_table__%s[128] = {", argv[2], argv[1], argv[2]); 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);