version 1.111, 2009/09/21 14:56:03 |
version 1.112, 2009/09/22 12:38:10 |
|
|
enum { |
enum { |
OPTIONS_STRING, |
OPTIONS_STRING, |
OPTIONS_NUMBER, |
OPTIONS_NUMBER, |
|
OPTIONS_DATA, |
} type; |
} type; |
|
|
char *str; |
char *str; |
long long num; |
long long num; |
|
void *data; |
|
|
|
void (*freefn)(void *); |
|
|
SPLAY_ENTRY(options_entry) entry; |
SPLAY_ENTRY(options_entry) entry; |
}; |
}; |
|
|
|
|
struct options *parent; |
struct options *parent; |
}; |
}; |
|
|
|
/* Key list for prefix option. */ |
|
ARRAY_DECL(keylist, int); |
|
|
/* Screen selection. */ |
/* Screen selection. */ |
struct screen_sel { |
struct screen_sel { |
int flag; |
int flag; |
|
|
enum { |
enum { |
SET_OPTION_STRING, |
SET_OPTION_STRING, |
SET_OPTION_NUMBER, |
SET_OPTION_NUMBER, |
SET_OPTION_KEY, |
SET_OPTION_KEYS, |
SET_OPTION_COLOUR, |
SET_OPTION_COLOUR, |
SET_OPTION_ATTRIBUTES, |
SET_OPTION_ATTRIBUTES, |
SET_OPTION_FLAG, |
SET_OPTION_FLAG, |
|
|
struct options_entry *options_set_number( |
struct options_entry *options_set_number( |
struct options *, const char *, long long); |
struct options *, const char *, long long); |
long long options_get_number(struct options *, const char *); |
long long options_get_number(struct options *, const char *); |
|
struct options_entry *options_set_data( |
|
struct options *, const char *, void *, void (*)(void *)); |
|
void *options_get_data(struct options *, const char *); |
|
|
/* environ.c */ |
/* environ.c */ |
int environ_cmp(struct environ_entry *, struct environ_entry *); |
int environ_cmp(struct environ_entry *, struct environ_entry *); |
|
|
struct options *, const struct set_option_entry *, char *, int); |
struct options *, const struct set_option_entry *, char *, int); |
void set_option_number(struct cmd_ctx *, |
void set_option_number(struct cmd_ctx *, |
struct options *, const struct set_option_entry *, char *); |
struct options *, const struct set_option_entry *, char *); |
void set_option_key(struct cmd_ctx *, |
void set_option_keys(struct cmd_ctx *, |
struct options *, const struct set_option_entry *, char *); |
struct options *, const struct set_option_entry *, char *); |
void set_option_colour(struct cmd_ctx *, |
void set_option_colour(struct cmd_ctx *, |
struct options *, const struct set_option_entry *, char *); |
struct options *, const struct set_option_entry *, char *); |