mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[options] const desc
This commit is contained in:
parent
157f1978cf
commit
0689f0502e
@ -847,8 +847,8 @@ static int indentation = 2;
|
|||||||
/* 0 -> none, 1 -> only option full name+type, 2 -> only desc, 3 -> both */
|
/* 0 -> none, 1 -> only option full name+type, 2 -> only desc, 3 -> both */
|
||||||
static int comments = 3;
|
static int comments = 3;
|
||||||
|
|
||||||
static inline char *
|
static inline const char *
|
||||||
conf_i18n(char *s, int i18n)
|
conf_i18n(const char *s, int i18n)
|
||||||
{
|
{
|
||||||
if (i18n) return gettext(s);
|
if (i18n) return gettext(s);
|
||||||
return s;
|
return s;
|
||||||
@ -908,7 +908,7 @@ static void
|
|||||||
output_option_desc_as_comment(struct string *out, const struct option *option,
|
output_option_desc_as_comment(struct string *out, const struct option *option,
|
||||||
int i18n, int depth)
|
int i18n, int depth)
|
||||||
{
|
{
|
||||||
char *desc_i18n = conf_i18n(option->desc, i18n);
|
const char *desc_i18n = conf_i18n(option->desc, i18n);
|
||||||
struct string indent;
|
struct string indent;
|
||||||
|
|
||||||
if (!init_string(&indent)) return;
|
if (!init_string(&indent)) return;
|
||||||
@ -1069,7 +1069,7 @@ smart_config_output_fn_html(struct string *string, struct option *option,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_cfg_header_to_string(struct string *string, char *text)
|
add_cfg_header_to_string(struct string *string, const char *text)
|
||||||
{
|
{
|
||||||
int n = strlen(text) + 2;
|
int n = strlen(text) + 2;
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ struct option {
|
|||||||
enum option_type type;
|
enum option_type type;
|
||||||
long min, max;
|
long min, max;
|
||||||
union option_value value;
|
union option_value value;
|
||||||
char *desc;
|
const char *desc;
|
||||||
char *capt;
|
char *capt;
|
||||||
|
|
||||||
struct option *root;
|
struct option *root;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user