mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[intl] const in get_cp_config_name
This commit is contained in:
parent
3978f3a930
commit
b0e93a9eab
@ -374,7 +374,7 @@ cp_eq(struct option *opt, const char *str)
|
||||
static void
|
||||
cp_wr(struct option *o, struct string *s)
|
||||
{
|
||||
char *mime_name = get_cp_config_name(o->value.number);
|
||||
const char *mime_name = get_cp_config_name(o->value.number);
|
||||
|
||||
add_optstring_to_string(s, mime_name, strlen(mime_name));
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ charset_list(struct terminal *term, void *xxx, void *ses_)
|
||||
sel = items;
|
||||
items++;
|
||||
add_to_menu(&mi, name, NULL, ACT_MAIN_NONE,
|
||||
display_codepage, get_cp_config_name(i), 0);
|
||||
display_codepage, (void *)get_cp_config_name(i), 0);
|
||||
}
|
||||
|
||||
do_menu_selected(term, mi, ses, sel, 0);
|
||||
|
@ -1634,7 +1634,7 @@ get_cp_name(int cp_index)
|
||||
/* Get the codepage's name for saving to a configuration file. These
|
||||
* names can be converted back to indexes, even in future versions of
|
||||
* ELinks. */
|
||||
char *
|
||||
const char *
|
||||
get_cp_config_name(int cp_index)
|
||||
{
|
||||
if (cp_index < 0) return "none";
|
||||
|
@ -126,7 +126,7 @@ char *convert_string(struct conv_table *convert_table,
|
||||
|
||||
int get_cp_index(const char *);
|
||||
const char *get_cp_name(int);
|
||||
char *get_cp_config_name(int);
|
||||
const char *get_cp_config_name(int);
|
||||
char *get_cp_mime_name(int);
|
||||
const uint16_t *get_cp_highhalf(const char *);
|
||||
|
||||
|
@ -608,7 +608,7 @@ l_get_option(LS)
|
||||
break;
|
||||
case OPT_CODEPAGE:
|
||||
{
|
||||
char *cp_name;
|
||||
const char *cp_name;
|
||||
|
||||
cp_name = get_cp_config_name(opt->value.number);
|
||||
lua_pushstring(S, cp_name);
|
||||
|
Loading…
Reference in New Issue
Block a user