mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[intl] const get_cp_name
This commit is contained in:
parent
5704368a02
commit
eac4271696
@ -56,7 +56,7 @@ charset_list(struct terminal *term, void *xxx, void *ses_)
|
|||||||
if (!mi) return;
|
if (!mi) return;
|
||||||
|
|
||||||
for (i = 0, items = 0; ; i++) {
|
for (i = 0, items = 0; ; i++) {
|
||||||
char *name = get_cp_name(i);
|
const char *name = get_cp_name(i);
|
||||||
|
|
||||||
if (!name) break;
|
if (!name) break;
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ struct table_entry {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct codepage_desc {
|
struct codepage_desc {
|
||||||
char *name;
|
const char *name;
|
||||||
char *const *aliases;
|
char *const *aliases;
|
||||||
|
|
||||||
/* The Unicode mappings of codepage bytes 0x80...0xFF.
|
/* The Unicode mappings of codepage bytes 0x80...0xFF.
|
||||||
@ -1622,7 +1622,7 @@ free_charsets_lookup(void)
|
|||||||
* localize these with gettext. So it may be best not to use this
|
* localize these with gettext. So it may be best not to use this
|
||||||
* function if the name will have to be converted back to an
|
* function if the name will have to be converted back to an
|
||||||
* index. */
|
* index. */
|
||||||
char *
|
const char *
|
||||||
get_cp_name(int cp_index)
|
get_cp_name(int cp_index)
|
||||||
{
|
{
|
||||||
if (cp_index < 0) return "none";
|
if (cp_index < 0) return "none";
|
||||||
|
@ -125,7 +125,7 @@ char *convert_string(struct conv_table *convert_table,
|
|||||||
void *callback_data);
|
void *callback_data);
|
||||||
|
|
||||||
int get_cp_index(const char *);
|
int get_cp_index(const char *);
|
||||||
char *get_cp_name(int);
|
const char *get_cp_name(int);
|
||||||
char *get_cp_config_name(int);
|
char *get_cp_config_name(int);
|
||||||
char *get_cp_mime_name(int);
|
char *get_cp_mime_name(int);
|
||||||
const uint16_t *get_cp_highhalf(const char *);
|
const uint16_t *get_cp_highhalf(const char *);
|
||||||
|
Loading…
Reference in New Issue
Block a user