1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

[options] enum option_flags -> option_flags_T

This commit is contained in:
Witold Filipczyk 2022-01-28 14:59:33 +01:00
parent b7a8866f3d
commit a25b7958ef
2 changed files with 6 additions and 4 deletions

View File

@ -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));

View File

@ -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;