Lines Matching refs:v
114 #define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + … argument
120 #define OPT_BIT(s, l, v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .val… argument
121 #define OPT_BOOLEAN(s, l, v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), … argument
122 …ine OPT_BOOLEAN_FLAG(s, l, v, h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = … argument
123 #define OPT_BOOLEAN_SET(s, l, v, os, h) \ argument
125 .value = check_vtype(v, bool *), .help = (h), \
127 #define OPT_INCR(s, l, v, h) { .type = OPTION_INCR, .short_name = (s), .long_name = (l), .va… argument
128 #define OPT_SET_UINT(s, l, v, h, i) { .type = OPTION_SET_UINT, .short_name = (s), .long_name = (l)… argument
129 #define OPT_SET_PTR(s, l, v, h, p) { .type = OPTION_SET_PTR, .short_name = (s), .long_name = (l), … argument
130 #define OPT_INTEGER(s, l, v, h) { .type = OPTION_INTEGER, .short_name = (s), .long_name = (l), … argument
131 #define OPT_UINTEGER(s, l, v, h) { .type = OPTION_UINTEGER, .short_name = (s), .long_name = (l),… argument
132 … OPT_UINTEGER_OPTARG(s, l, v, d, h) { .type = OPTION_UINTEGER, .short_name = (s), .long_name = … argument
133 #define OPT_LONG(s, l, v, h) { .type = OPTION_LONG, .short_name = (s), .long_name = (l), .va… argument
134 #define OPT_ULONG(s, l, v, h) { .type = OPTION_ULONG, .short_name = (s), .long_name = (l), .… argument
135 #define OPT_U64(s, l, v, h) { .type = OPTION_U64, .short_name = (s), .long_name = (l), .val… argument
136 #define OPT_STRING(s, l, v, a, h) { .type = OPTION_STRING, .short_name = (s), .long_name = (l), … argument
137 #define OPT_STRING_OPTARG(s, l, v, a, h, d) \ argument
139 .value = check_vtype(v, const char **), .argh =(a), .help = (h), \
141 #define OPT_STRING_OPTARG_SET(s, l, v, os, a, h, d) \ argument
143 .value = check_vtype(v, const char **), .argh = (a), .help = (h), \
146 …ne OPT_STRING_NOEMPTY(s, l, v, a, h) { .type = OPTION_STRING, .short_name = (s), .long_name = (… argument
147 #define OPT_DATE(s, l, v, h) \ argument
148 …{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = "time", .hel…
149 #define OPT_CALLBACK(s, l, v, a, h, f) \ argument
150 …{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help =…
151 #define OPT_CALLBACK_SET(s, l, v, os, a, h, f) \ argument
152 …{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help =…
153 #define OPT_CALLBACK_NOOPT(s, l, v, a, h, f) \ argument
154 …{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help =…
155 #define OPT_CALLBACK_DEFAULT(s, l, v, a, h, f, d) \ argument
156 …{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help =…
157 #define OPT_CALLBACK_DEFAULT_NOOPT(s, l, v, a, h, f, d) \ argument
159 .value = (v), .arg = (a), .help = (h), .callback = (f), .defval = (intptr_t)d,\
161 #define OPT_CALLBACK_OPTARG(s, l, v, d, a, h, f) \ argument
163 .value = (v), .argh = (a), .help = (h), .callback = (f), \