version 1.68, 2014/04/17 07:55:43 |
version 1.69, 2014/04/17 14:45:49 |
|
|
/* Unset an option. */ |
/* Unset an option. */ |
int |
int |
cmd_set_option_unset(struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_unset(struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
|
|
|
|
/* Set an option. */ |
/* Set an option. */ |
int |
int |
cmd_set_option_set(struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_set(struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
struct options_entry *o; |
struct options_entry *o; |
|
|
|
|
/* Set a string option. */ |
/* Set a string option. */ |
struct options_entry * |
struct options_entry * |
cmd_set_option_string(struct cmd *self, unused struct cmd_q *cmdq, |
cmd_set_option_string(struct cmd *self, unused struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
struct options_entry *o; |
struct options_entry *o; |
|
|
/* Set a number option. */ |
/* Set a number option. */ |
struct options_entry * |
struct options_entry * |
cmd_set_option_number(unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_number(unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
long long ll; |
long long ll; |
const char *errstr; |
const char *errstr; |
|
|
/* Set a key option. */ |
/* Set a key option. */ |
struct options_entry * |
struct options_entry * |
cmd_set_option_key(unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_key(unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
int key; |
int key; |
|
|
|
|
/* Set a colour option. */ |
/* Set a colour option. */ |
struct options_entry * |
struct options_entry * |
cmd_set_option_colour(unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_colour(unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
int colour; |
int colour; |
|
|
|
|
/* Set an attributes option. */ |
/* Set an attributes option. */ |
struct options_entry * |
struct options_entry * |
cmd_set_option_attributes(unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_attributes(unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
int attr; |
int attr; |
|
|
|
|
/* Set a flag option. */ |
/* Set a flag option. */ |
struct options_entry * |
struct options_entry * |
cmd_set_option_flag(unused struct cmd *self, struct cmd_q *cmdq, |
cmd_set_option_flag(unused struct cmd *self, struct cmd_q *cmdq, |
const struct options_table_entry *oe, struct options *oo, const char *value) |
const struct options_table_entry *oe, struct options *oo, |
|
const char *value) |
{ |
{ |
int flag; |
int flag; |
|
|