mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05: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 */
|
||||
struct option *
|
||||
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)
|
||||
{
|
||||
struct option *option = (struct option *)mem_calloc(1, sizeof(*option));
|
||||
|
@ -99,6 +99,8 @@ enum option_flags {
|
||||
OPT_ALIAS_NEGATE = 256
|
||||
};
|
||||
|
||||
typedef unsigned short option_flags_T;
|
||||
|
||||
enum option_type {
|
||||
OPT_BOOL = 0,
|
||||
OPT_INT,
|
||||
@ -192,7 +194,7 @@ struct option {
|
||||
OBJECT_HEAD(struct option);
|
||||
|
||||
char *name;
|
||||
enum option_flags flags;
|
||||
option_flags_T flags;
|
||||
enum option_type type;
|
||||
long min, max;
|
||||
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)
|
||||
|
||||
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 *);
|
||||
|
||||
/** Check whether the character @a c may be used in the name of an
|
||||
@ -424,7 +426,7 @@ struct option_init {
|
||||
char *desc;
|
||||
|
||||
/** 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. */
|
||||
enum option_type type;
|
||||
|
Loading…
Reference in New Issue
Block a user