Searched refs:defval (Results 1 – 2 of 2) sorted by relevance
/tools/lib/subcmd/ |
D | parse-options.h | 112 intptr_t defval; member 124 …, .short_name = (s), .long_name = (l), .value = check_vtype(v, int *), .help = (h), .defval = (b) } 132 …name = (s), .long_name = (l), .value = check_vtype(v, unsigned int *), .help = (h), .defval = (i) } 133 …e = OPTION_SET_PTR, .short_name = (s), .long_name = (l), .value = (v), .help = (h), .defval = (p) } 143 .flags = PARSE_OPT_OPTARG, .defval = (intptr_t)(d) } 147 .flags = PARSE_OPT_OPTARG, .defval = (intptr_t)(d), \ 159 …ng_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f), .defval = (intptr_t)d, .fl… 162 .value = (v), .arg = (a), .help = (h), .callback = (f), .defval = (intptr_t)d,\
|
D | parse-options.c | 58 res = (const char *)opt->defval; in get_arg() 188 *(int *)opt->value &= ~opt->defval; in get_value() 190 *(int *)opt->value |= opt->defval; in get_value() 204 *(unsigned int *)opt->value = unset ? 0 : opt->defval; in get_value() 208 *(void **)opt->value = unset ? NULL : (void *)opt->defval; in get_value() 216 *(const char **)opt->value = (const char *)opt->defval; in get_value() 259 *(int *)opt->value = opt->defval; in get_value() 275 *(unsigned int *)opt->value = opt->defval; in get_value() 293 *(long *)opt->value = opt->defval; in get_value() 309 *(unsigned long *)opt->value = opt->defval; in get_value() [all …]
|