1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

[intl] char *const * -> const char **

Less warnings.
This commit is contained in:
Witold Filipczyk 2022-02-15 19:02:30 +01:00
parent 7b7d3f1856
commit 52d871bf8b
2 changed files with 48 additions and 48 deletions

View File

@ -52,7 +52,7 @@ struct table_entry {
struct codepage_desc { struct codepage_desc {
const char *name; const char *name;
char *const *aliases; const char **aliases;
/* The Unicode mappings of codepage bytes 0x80...0xFF. /* The Unicode mappings of codepage bytes 0x80...0xFF.
* (0x00...0x7F are assumed to be ASCII in all codepages.) * (0x00...0x7F are assumed to be ASCII in all codepages.)
@ -1641,7 +1641,7 @@ get_cp_config_name(int cp_index)
if (cp_index & SYSTEM_CHARSET_FLAG) return "System"; if (cp_index & SYSTEM_CHARSET_FLAG) return "System";
if (!codepages[cp_index].aliases) return NULL; if (!codepages[cp_index].aliases) return NULL;
return codepages[cp_index].aliases[0]; return (char *)codepages[cp_index].aliases[0];
} }
/* Get the codepage's name for sending to a library or server that /* Get the codepage's name for sending to a library or server that
@ -1654,7 +1654,7 @@ get_cp_mime_name(int cp_index)
cp_index &= ~SYSTEM_CHARSET_FLAG; cp_index &= ~SYSTEM_CHARSET_FLAG;
if (!codepages[cp_index].aliases) return NULL; if (!codepages[cp_index].aliases) return NULL;
return codepages[cp_index].aliases[0]; return (char *)codepages[cp_index].aliases[0];
} }
int int

View File

@ -10,7 +10,7 @@
#define table_7bit table_NULL #define table_7bit table_NULL
char *const aliases_7bit [] = { const char * aliases_7bit [] = {
"us-ascii", "us-ascii",
"ascii", "ascii",
"7bit", "7bit",
@ -166,7 +166,7 @@ const uint16_t highhalf_8859_1 [] = {
#define table_8859_1 table_NULL #define table_8859_1 table_NULL
char *const aliases_8859_1 [] = { const char * aliases_8859_1 [] = {
"ISO-8859-1", "ISO-8859-1",
"iso8859-1", "iso8859-1",
"8859-1", "8859-1",
@ -320,7 +320,7 @@ const uint16_t highhalf_8859_2 [] = {
#define table_8859_2 table_NULL #define table_8859_2 table_NULL
char *const aliases_8859_2 [] = { const char * aliases_8859_2 [] = {
"ISO-8859-2", "ISO-8859-2",
"iso8859-2", "iso8859-2",
"8859-2", "8859-2",
@ -471,7 +471,7 @@ const uint16_t highhalf_8859_3 [] = {
#define table_8859_3 table_NULL #define table_8859_3 table_NULL
char *const aliases_8859_3 [] = { const char * aliases_8859_3 [] = {
"ISO-8859-3", "ISO-8859-3",
"8859-3", "8859-3",
"ISO_8859-3:1988", "ISO_8859-3:1988",
@ -621,7 +621,7 @@ const uint16_t highhalf_8859_4 [] = {
#define table_8859_4 table_NULL #define table_8859_4 table_NULL
char *const aliases_8859_4 [] = { const char * aliases_8859_4 [] = {
"ISO-8859-4", "ISO-8859-4",
"iso8859-4", "iso8859-4",
"8859-4", "8859-4",
@ -772,7 +772,7 @@ const uint16_t highhalf_8859_5 [] = {
#define table_8859_5 table_NULL #define table_8859_5 table_NULL
char *const aliases_8859_5 [] = { const char * aliases_8859_5 [] = {
"ISO-8859-5", "ISO-8859-5",
"iso8859-5", "iso8859-5",
"8859-5", "8859-5",
@ -921,7 +921,7 @@ const uint16_t highhalf_8859_6 [] = {
#define table_8859_6 table_NULL #define table_8859_6 table_NULL
char *const aliases_8859_6 [] = { const char * aliases_8859_6 [] = {
"ISO-8859-6", "ISO-8859-6",
"8859-6", "8859-6",
"ISO_8859-6", "ISO_8859-6",
@ -1072,7 +1072,7 @@ const uint16_t highhalf_8859_7 [] = {
#define table_8859_7 table_NULL #define table_8859_7 table_NULL
char *const aliases_8859_7 [] = { const char * aliases_8859_7 [] = {
"ISO-8859-7", "ISO-8859-7",
"iso8859-7", "iso8859-7",
"8859-7", "8859-7",
@ -1224,7 +1224,7 @@ const uint16_t highhalf_8859_8 [] = {
#define table_8859_8 table_NULL #define table_8859_8 table_NULL
char *const aliases_8859_8 [] = { const char * aliases_8859_8 [] = {
"ISO-8859-8", "ISO-8859-8",
"8859-8", "8859-8",
"ISO_8859-8:1988", "ISO_8859-8:1988",
@ -1372,7 +1372,7 @@ const uint16_t highhalf_8859_9 [] = {
#define table_8859_9 table_NULL #define table_8859_9 table_NULL
char *const aliases_8859_9 [] = { const char * aliases_8859_9 [] = {
"ISO-8859-9", "ISO-8859-9",
"iso8859-9", "iso8859-9",
"8859-9", "8859-9",
@ -1521,7 +1521,7 @@ const uint16_t highhalf_8859_10 [] = {
#define table_8859_10 table_NULL #define table_8859_10 table_NULL
char *const aliases_8859_10 [] = { const char * aliases_8859_10 [] = {
"ISO-8859-10", "ISO-8859-10",
"8859-10", "8859-10",
"ISO_8859-10:1992", "ISO_8859-10:1992",
@ -1669,7 +1669,7 @@ const uint16_t highhalf_8859_13 [] = {
#define table_8859_13 table_NULL #define table_8859_13 table_NULL
char *const aliases_8859_13 [] = { const char * aliases_8859_13 [] = {
"ISO-8859-13", "ISO-8859-13",
"iso8859-13", "iso8859-13",
"8859-13", "8859-13",
@ -1817,7 +1817,7 @@ const uint16_t highhalf_8859_14 [] = {
#define table_8859_14 table_NULL #define table_8859_14 table_NULL
char *const aliases_8859_14 [] = { const char * aliases_8859_14 [] = {
"ISO-8859-14", "ISO-8859-14",
"8859-14", "8859-14",
"ISO_8859-14", "ISO_8859-14",
@ -1964,7 +1964,7 @@ const uint16_t highhalf_8859_15 [] = {
#define table_8859_15 table_NULL #define table_8859_15 table_NULL
char *const aliases_8859_15 [] = { const char * aliases_8859_15 [] = {
"ISO-8859-15", "ISO-8859-15",
"iso8859-15", "iso8859-15",
"8859-15", "8859-15",
@ -2116,7 +2116,7 @@ const uint16_t highhalf_8859_16 [] = {
#define table_8859_16 table_NULL #define table_8859_16 table_NULL
char *const aliases_8859_16 [] = { const char * aliases_8859_16 [] = {
"ISO-8859-16", "ISO-8859-16",
"iso8859-16", "iso8859-16",
"8859-16", "8859-16",
@ -2266,7 +2266,7 @@ const uint16_t highhalf_cp1250 [] = {
#define table_cp1250 table_NULL #define table_cp1250 table_NULL
char *const aliases_cp1250 [] = { const char * aliases_cp1250 [] = {
"windows-1250", "windows-1250",
"windows1250", "windows1250",
"1250", "1250",
@ -2411,7 +2411,7 @@ const uint16_t highhalf_cp1251 [] = {
#define table_cp1251 table_NULL #define table_cp1251 table_NULL
char *const aliases_cp1251 [] = { const char * aliases_cp1251 [] = {
"windows-1251", "windows-1251",
"windows1251", "windows1251",
"1251", "1251",
@ -2556,7 +2556,7 @@ const uint16_t highhalf_cp1252 [] = {
#define table_cp1252 table_NULL #define table_cp1252 table_NULL
char *const aliases_cp1252 [] = { const char * aliases_cp1252 [] = {
"windows-1252", "windows-1252",
"1252", "1252",
NULL NULL
@ -2698,7 +2698,7 @@ const uint16_t highhalf_cp1256 [] = {
#define table_cp1256 table_NULL #define table_cp1256 table_NULL
char *const aliases_cp1256 [] = { const char * aliases_cp1256 [] = {
"windows-1256", "windows-1256",
"1256", "1256",
"cp1256", "cp1256",
@ -2842,7 +2842,7 @@ const uint16_t highhalf_cp1257 [] = {
#define table_cp1257 table_NULL #define table_cp1257 table_NULL
char *const aliases_cp1257 [] = { const char * aliases_cp1257 [] = {
"windows-1257", "windows-1257",
"windows1257", "windows1257",
"1257", "1257",
@ -2987,7 +2987,7 @@ const uint16_t highhalf_cp437 [] = {
#define table_cp437 table_NULL #define table_cp437 table_NULL
char *const aliases_cp437 [] = { const char * aliases_cp437 [] = {
"cp437", "cp437",
"437", "437",
"IBM437", "IBM437",
@ -3131,7 +3131,7 @@ const uint16_t highhalf_cp737 [] = {
#define table_cp737 table_NULL #define table_cp737 table_NULL
char *const aliases_cp737 [] = { const char * aliases_cp737 [] = {
"cp737", "cp737",
"737", "737",
NULL NULL
@ -3273,7 +3273,7 @@ const uint16_t highhalf_cp850 [] = {
#define table_cp850 table_NULL #define table_cp850 table_NULL
char *const aliases_cp850 [] = { const char * aliases_cp850 [] = {
"cp850", "cp850",
"850", "850",
"IBM850", "IBM850",
@ -3417,7 +3417,7 @@ const uint16_t highhalf_cp852 [] = {
#define table_cp852 table_NULL #define table_cp852 table_NULL
char *const aliases_cp852 [] = { const char * aliases_cp852 [] = {
"cp852", "cp852",
"852", "852",
"csPCp852", "csPCp852",
@ -3560,7 +3560,7 @@ const uint16_t highhalf_cp866 [] = {
#define table_cp866 table_NULL #define table_cp866 table_NULL
char *const aliases_cp866 [] = { const char * aliases_cp866 [] = {
"cp866", "cp866",
"866", "866",
"IBM866", "IBM866",
@ -3704,7 +3704,7 @@ const uint16_t highhalf_cp1125 [] = {
#define table_cp1125 table_NULL #define table_cp1125 table_NULL
char *const aliases_cp1125 [] = { const char * aliases_cp1125 [] = {
"x-cp866-u", "x-cp866-u",
"ruscii", "ruscii",
"1125", "1125",
@ -3848,7 +3848,7 @@ const uint16_t highhalf_macroman [] = {
#define table_macroman table_NULL #define table_macroman table_NULL
char *const aliases_macroman [] = { const char * aliases_macroman [] = {
"x-mac", "x-mac",
"mac", "mac",
"macroman", "macroman",
@ -3993,7 +3993,7 @@ const uint16_t highhalf_mac_lat2 [] = {
#define table_mac_lat2 table_NULL #define table_mac_lat2 table_NULL
char *const aliases_mac_lat2 [] = { const char * aliases_mac_lat2 [] = {
"x-mac-ce", "x-mac-ce",
"mac-ce", "mac-ce",
"maclatin2", "maclatin2",
@ -4138,7 +4138,7 @@ const uint16_t highhalf_kamen [] = {
#define table_kamen table_NULL #define table_kamen table_NULL
char *const aliases_kamen [] = { const char * aliases_kamen [] = {
"x-kam-cs", "x-kam-cs",
"kam", "kam",
"867", "867",
@ -4282,7 +4282,7 @@ const uint16_t highhalf_koi8_r [] = {
#define table_koi8_r table_NULL #define table_koi8_r table_NULL
char *const aliases_koi8_r [] = { const char * aliases_koi8_r [] = {
"koi8-r", "koi8-r",
"csKOI8R", "csKOI8R",
NULL NULL
@ -4424,7 +4424,7 @@ const uint16_t highhalf_koi8_u [] = {
#define table_koi8_u table_NULL #define table_koi8_u table_NULL
char *const aliases_koi8_u [] = { const char * aliases_koi8_u [] = {
"koi8-u", "koi8-u",
NULL NULL
}; };
@ -4565,7 +4565,7 @@ const uint16_t highhalf_koi8_ru [] = {
#define table_koi8_ru table_NULL #define table_koi8_ru table_NULL
char *const aliases_koi8_ru [] = { const char * aliases_koi8_ru [] = {
"koi8-ru", "koi8-ru",
NULL NULL
}; };
@ -4710,7 +4710,7 @@ const struct table_entry table_tcvn5712 [] = {
{0, 0} {0, 0}
}; };
char *const aliases_tcvn5712 [] = { const char * aliases_tcvn5712 [] = {
"TCVN-5712", "TCVN-5712",
"TCVN", "TCVN",
"TCVN-0", "TCVN-0",
@ -4861,7 +4861,7 @@ const struct table_entry table_viscii [] = {
{0, 0} {0, 0}
}; };
char *const aliases_viscii [] = { const char * aliases_viscii [] = {
"VISCII", "VISCII",
"VISCII-1", "VISCII-1",
"VISCII 1.1", "VISCII 1.1",
@ -4878,7 +4878,7 @@ char *const aliases_viscii [] = {
#define table_utf8 table_NULL #define table_utf8 table_NULL
char *const aliases_utf8 [] = { const char * aliases_utf8 [] = {
"utf-8", "utf-8",
"utf8", "utf8",
NULL NULL
@ -4888,7 +4888,7 @@ char *const aliases_utf8 [] = {
/* many sites set charset="Big5", although they really use "Big5-hkscs". /* many sites set charset="Big5", although they really use "Big5-hkscs".
Big5-hkscs is superset of Big5. */ Big5-hkscs is superset of Big5. */
char *const aliases_big5 [] = { const char * aliases_big5 [] = {
"Big5-HKSCS", "Big5-HKSCS",
"Big5", "Big5",
NULL NULL
@ -4896,7 +4896,7 @@ char *const aliases_big5 [] = {
/*** Shift JIS ***/ /*** Shift JIS ***/
char *const aliases_shift_jis [] = { const char * aliases_shift_jis [] = {
"shift_jis", "shift_jis",
"shift-jis", "shift-jis",
"sjis", "sjis",
@ -4905,7 +4905,7 @@ char *const aliases_shift_jis [] = {
/*** EUC_CN ***/ /*** EUC_CN ***/
char *const aliases_euc_cn [] = { const char * aliases_euc_cn [] = {
"euc-cn", "euc-cn",
"euc_cn", "euc_cn",
NULL NULL
@ -4913,7 +4913,7 @@ char *const aliases_euc_cn [] = {
/*** EUC_JP ***/ /*** EUC_JP ***/
char *const aliases_euc_jp [] = { const char * aliases_euc_jp [] = {
"euc-jp", "euc-jp",
"euc_jp", "euc_jp",
NULL NULL
@ -4921,7 +4921,7 @@ char *const aliases_euc_jp [] = {
/*** EUC_KR ***/ /*** EUC_KR ***/
char *const aliases_euc_kr [] = { const char * aliases_euc_kr [] = {
"euc-kr", "euc-kr",
"euc_kr", "euc_kr",
NULL NULL
@ -4929,7 +4929,7 @@ char *const aliases_euc_kr [] = {
/*** EUC_TW ***/ /*** EUC_TW ***/
char *const aliases_euc_tw [] = { const char * aliases_euc_tw [] = {
"euc-tw", "euc-tw",
"euc_tw", "euc_tw",
NULL NULL
@ -4937,7 +4937,7 @@ char *const aliases_euc_tw [] = {
/*** GBK ***/ /*** GBK ***/
char *const aliases_gbk [] = { const char * aliases_gbk [] = {
"gbk", "gbk",
"936", "936",
"cp936", "cp936",
@ -4948,7 +4948,7 @@ char *const aliases_gbk [] = {
/*** GB2312 ***/ /*** GB2312 ***/
char *const aliases_gb2312 [] = { const char * aliases_gb2312 [] = {
"gb2312", "gb2312",
"gb-2312", "gb-2312",
"gb_2312", "gb_2312",
@ -4958,7 +4958,7 @@ char *const aliases_gb2312 [] = {
/*** GB18030 ***/ /*** GB18030 ***/
char *const aliases_gb18030 [] = { const char * aliases_gb18030 [] = {
"gb18030", "gb18030",
"gb-18030", "gb-18030",
"gb_18030", "gb_18030",
@ -4968,7 +4968,7 @@ char *const aliases_gb18030 [] = {
/*** ISO2022JP ***/ /*** ISO2022JP ***/
char *const aliases_iso2022jp [] = { const char * aliases_iso2022jp [] = {
"iso2022jp", "iso2022jp",
"iso-2022-jp", "iso-2022-jp",
NULL NULL