mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[options] const in add_opt
This commit is contained in:
parent
b5c4addbbe
commit
9bbe2eb4ed
@ -508,8 +508,8 @@ init_option_listbox_item(struct option *option)
|
|||||||
|
|
||||||
/*! @relates option */
|
/*! @relates option */
|
||||||
struct option *
|
struct option *
|
||||||
add_opt(struct option *tree, char *path, char *capt,
|
add_opt(struct option *tree, const char *path, const char *capt,
|
||||||
char *name, option_flags_T flags, enum option_type type,
|
const char *name, option_flags_T flags, enum option_type type,
|
||||||
long min, long max, longptr_T value, char *desc)
|
long min, long max, longptr_T value, char *desc)
|
||||||
{
|
{
|
||||||
struct option *option = (struct option *)mem_calloc(1, sizeof(*option));
|
struct option *option = (struct option *)mem_calloc(1, sizeof(*option));
|
||||||
|
@ -336,8 +336,8 @@ extern union option_value *get_opt_(struct option *, const char *, struct sessio
|
|||||||
#define get_cmd_opt_color(name) get_opt_color_tree(cmdline_options, name, NULL)
|
#define get_cmd_opt_color(name) get_opt_color_tree(cmdline_options, name, NULL)
|
||||||
#define get_cmd_opt_tree(name) get_opt_tree_tree(cmdline_options, name, NULL)
|
#define get_cmd_opt_tree(name) get_opt_tree_tree(cmdline_options, name, NULL)
|
||||||
|
|
||||||
extern struct option *add_opt(struct option *, char *, char *,
|
extern struct option *add_opt(struct option *, const char *, const char *,
|
||||||
char *, option_flags_T, enum option_type,
|
const char *, option_flags_T, enum option_type,
|
||||||
long, long, longptr_T, char *);
|
long, long, longptr_T, char *);
|
||||||
|
|
||||||
/** Check whether the character @a c may be used in the name of an
|
/** Check whether the character @a c may be used in the name of an
|
||||||
|
Loading…
Reference in New Issue
Block a user