mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[options] enum option_flags -> option_flags_T
This commit is contained in:
parent
b7a8866f3d
commit
a25b7958ef
@ -509,7 +509,7 @@ 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, char *path, char *capt,
|
||||||
char *name, enum option_flags flags, enum option_type type,
|
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));
|
||||||
|
@ -99,6 +99,8 @@ enum option_flags {
|
|||||||
OPT_ALIAS_NEGATE = 256
|
OPT_ALIAS_NEGATE = 256
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef unsigned short option_flags_T;
|
||||||
|
|
||||||
enum option_type {
|
enum option_type {
|
||||||
OPT_BOOL = 0,
|
OPT_BOOL = 0,
|
||||||
OPT_INT,
|
OPT_INT,
|
||||||
@ -192,7 +194,7 @@ struct option {
|
|||||||
OBJECT_HEAD(struct option);
|
OBJECT_HEAD(struct option);
|
||||||
|
|
||||||
char *name;
|
char *name;
|
||||||
enum option_flags flags;
|
option_flags_T flags;
|
||||||
enum option_type type;
|
enum option_type type;
|
||||||
long min, max;
|
long min, max;
|
||||||
union option_value value;
|
union option_value value;
|
||||||
@ -332,7 +334,7 @@ extern union option_value *get_opt_(struct option *, const char *, struct sessio
|
|||||||
#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 *, char *, char *,
|
||||||
char *, enum option_flags, enum option_type,
|
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
|
||||||
@ -424,7 +426,7 @@ struct option_init {
|
|||||||
char *desc;
|
char *desc;
|
||||||
|
|
||||||
/** Flags for the option. These go to option.flags. */
|
/** Flags for the option. These go to option.flags. */
|
||||||
enum option_flags flags;
|
option_flags_T flags;
|
||||||
|
|
||||||
/** Type of the option. This goes to option.type. */
|
/** Type of the option. This goes to option.type. */
|
||||||
enum option_type type;
|
enum option_type type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user