version 1.106, 2017/01/15 20:50:34 |
version 1.107, 2017/01/16 14:49:14 |
|
|
static enum cmd_retval cmd_set_option_exec(struct cmd *, struct cmdq_item *); |
static enum cmd_retval cmd_set_option_exec(struct cmd *, struct cmdq_item *); |
|
|
static int cmd_set_option_set(struct cmd *, struct cmdq_item *, |
static int cmd_set_option_set(struct cmd *, struct cmdq_item *, |
struct options *, struct option *, const char *); |
struct options *, struct options_entry *, const char *); |
static int cmd_set_option_flag(struct cmdq_item *, |
static int cmd_set_option_flag(struct cmdq_item *, |
const struct options_table_entry *, struct options *, |
const struct options_table_entry *, struct options *, |
const char *); |
const char *); |
|
|
struct client *c; |
struct client *c; |
enum options_table_scope scope; |
enum options_table_scope scope; |
struct options *oo; |
struct options *oo; |
struct option *parent, *o; |
struct options_entry *parent, *o; |
const char *name, *value, *target; |
const char *name, *value, *target; |
int window, idx, already, error, ambiguous; |
int window, idx, already, error, ambiguous; |
char *cause; |
char *cause; |
|
|
|
|
static int |
static int |
cmd_set_option_set(struct cmd *self, struct cmdq_item *item, struct options *oo, |
cmd_set_option_set(struct cmd *self, struct cmdq_item *item, struct options *oo, |
struct option *parent, const char *value) |
struct options_entry *parent, const char *value) |
{ |
{ |
const struct options_table_entry *oe; |
const struct options_table_entry *oe; |
struct args *args = self->args; |
struct args *args = self->args; |
int append = args_has(args, 'a'); |
int append = args_has(args, 'a'); |
struct option *o; |
struct options_entry *o; |
long long number; |
long long number; |
const char *errstr; |
const char *errstr; |
key_code key; |
key_code key; |