mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[intl] const char * in get_cp_mime_name
This commit is contained in:
parent
b0e93a9eab
commit
89340c3848
@ -1647,14 +1647,14 @@ get_cp_config_name(int cp_index)
|
|||||||
/* 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
|
||||||
* understands MIME charset names. This function irreversibly maps
|
* understands MIME charset names. This function irreversibly maps
|
||||||
* the "System" codepage to the underlying charset. */
|
* the "System" codepage to the underlying charset. */
|
||||||
char *
|
const char *
|
||||||
get_cp_mime_name(int cp_index)
|
get_cp_mime_name(int cp_index)
|
||||||
{
|
{
|
||||||
if (cp_index < 0) return "none";
|
if (cp_index < 0) return "none";
|
||||||
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 (char *)codepages[cp_index].aliases[0];
|
return codepages[cp_index].aliases[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -127,7 +127,7 @@ char *convert_string(struct conv_table *convert_table,
|
|||||||
int get_cp_index(const char *);
|
int get_cp_index(const char *);
|
||||||
const char *get_cp_name(int);
|
const char *get_cp_name(int);
|
||||||
const char *get_cp_config_name(int);
|
const char *get_cp_config_name(int);
|
||||||
char *get_cp_mime_name(int);
|
const char *get_cp_mime_name(int);
|
||||||
const uint16_t *get_cp_highhalf(const char *);
|
const uint16_t *get_cp_highhalf(const char *);
|
||||||
|
|
||||||
int is_cp_utf8(int);
|
int is_cp_utf8(int);
|
||||||
|
@ -261,7 +261,7 @@ static void
|
|||||||
init_accept_charset(void)
|
init_accept_charset(void)
|
||||||
{
|
{
|
||||||
struct string ac;
|
struct string ac;
|
||||||
char *cs;
|
const char *cs;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!init_string(&ac)) return;
|
if (!init_string(&ac)) return;
|
||||||
|
@ -392,7 +392,7 @@ exec_shell(struct terminal *term)
|
|||||||
|
|
||||||
void
|
void
|
||||||
do_terminal_function(struct terminal *term, unsigned char code,
|
do_terminal_function(struct terminal *term, unsigned char code,
|
||||||
char *data)
|
const char *data)
|
||||||
{
|
{
|
||||||
int data_len = strlen(data);
|
int data_len = strlen(data);
|
||||||
char *x_data = (char *)fmem_alloc(data_len + 1 /* code */ + 1 /* null char */);
|
char *x_data = (char *)fmem_alloc(data_len + 1 /* code */ + 1 /* null char */);
|
||||||
|
@ -236,7 +236,7 @@ void exec_on_terminal(struct terminal *, char *, const char *, term_exec_T);
|
|||||||
void exec_shell(struct terminal *term);
|
void exec_shell(struct terminal *term);
|
||||||
|
|
||||||
int set_terminal_title(struct terminal *, char *);
|
int set_terminal_title(struct terminal *, char *);
|
||||||
void do_terminal_function(struct terminal *, unsigned char, char *);
|
void do_terminal_function(struct terminal *, unsigned char, const char *);
|
||||||
|
|
||||||
int check_terminal_pipes(void);
|
int check_terminal_pipes(void);
|
||||||
void close_terminal_pipes(void);
|
void close_terminal_pipes(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user