Lines Matching refs:dest
120 void cmd_read_option_value(const char *str, void *dest, const char type, in cmd_read_option_value() argument
129 *(bool *)dest = false; in cmd_read_option_value()
132 *(bool *)dest = false; in cmd_read_option_value()
135 *(bool *)dest = true; in cmd_read_option_value()
138 *(bool *)dest = true; in cmd_read_option_value()
145 *(char **)dest = (char *)str; in cmd_read_option_value()
149 *(uint32_t *)dest = strtoul(str, &endptr, 0); in cmd_read_option_value()
152 *(uint64_t *)dest = strtoull(str, &endptr, 0); in cmd_read_option_value()
155 *(int32_t *)dest = strtol(str, &endptr, 0); in cmd_read_option_value()
158 *(int64_t *)dest = strtoll(str, &endptr, 0); in cmd_read_option_value()
161 *(double *)dest = strtod(str, &endptr); in cmd_read_option_value()
189 if (args_struct[count].dest == NULL) { in cmd_args_set_defaults()
198 *(bool *)args_struct[count].dest = false; in cmd_args_set_defaults()
201 *(char **)args_struct[count].dest = NULL; in cmd_args_set_defaults()
204 *(uint32_t *)args_struct[count].dest = UINT32_MAX; in cmd_args_set_defaults()
207 *(uint64_t *)args_struct[count].dest = UINT64_MAX; in cmd_args_set_defaults()
210 *(int32_t *)args_struct[count].dest = INT32_MAX; in cmd_args_set_defaults()
213 *(int64_t *)args_struct[count].dest = INT64_MAX; in cmd_args_set_defaults()
216 *(double *)args_struct[count].dest = (double)NAN; in cmd_args_set_defaults()
367 if (arg_element->dest != NULL) { in cmd_handle_this_matched_arg()
370 *(bool *)arg_element->dest = true; in cmd_handle_this_matched_arg()
376 arg_element->dest, in cmd_handle_this_matched_arg()