Lines Matching refs:retval

191 parse_bool(const char*, const char*, bool* retval)  in parse_bool()  argument
193 *retval = true; in parse_bool()
197 parse_uint(const char* option_name, const char* arg, int* retval) in parse_uint() argument
200 *retval = strtol(arg, &endptr, 0); in parse_uint()
201 if (*endptr != '\0' || *retval < 0) in parse_uint()
207 parse_int(const char* option_name, const char* arg, int* retval) in parse_int() argument
210 *retval = strtol(arg, &endptr, 0); in parse_int()
217 parse_uint64(const char* option_name, const char* arg, uint64_t* retval) in parse_uint64() argument
220 *retval = strtoull(arg, &endptr, 0); in parse_uint64()
227 parse_double(const char* option_name, const char* arg, double* retval) in parse_double() argument
230 *retval = strtod(arg, &endptr); in parse_double()
238 parse_percent(const char* option_name, const char* arg, double* retval) in parse_percent() argument
241 *retval = strtod(arg, &endptr) / 100.0; in parse_percent()
249 parse_string(const char* option_name, const char* arg, const char** retval) in parse_string() argument
253 *retval = arg; in parse_string()
257 parse_optional_string(const char*, const char* arg, const char** retval) in parse_optional_string() argument
259 *retval = arg; in parse_optional_string()
263 parse_dirlist(const char*, const char* arg, Dir_list* retval) in parse_dirlist() argument
265 retval->push_back(Search_directory(arg, false)); in parse_dirlist()
269 parse_set(const char*, const char* arg, String_set* retval) in parse_set() argument
271 retval->insert(std::string(arg)); in parse_set()
275 parse_choices(const char* option_name, const char* arg, const char** retval, in parse_choices() argument
281 *retval = arg; in parse_choices()
786 gold::options::One_option* retval = it->second; in parse_long_option() local
791 if (retval->dashes != gold::options::DASH_Z) in parse_long_option()
796 if (retval->dashes != gold::options::ONE_DASH in parse_long_option()
797 && retval->dashes != gold::options::EXACTLY_ONE_DASH in parse_long_option()
798 && retval->dashes != gold::options::TWO_DASHES) in parse_long_option()
803 if (retval->dashes != gold::options::TWO_DASHES in parse_long_option()
804 && retval->dashes != gold::options::EXACTLY_TWO_DASHES in parse_long_option()
805 && retval->dashes != gold::options::ONE_DASH) in parse_long_option()
814 if (!retval->takes_argument()) in parse_long_option()
825 else if (retval->takes_optional_argument()) in parse_long_option()
826 *arg = retval->default_value; in parse_long_option()
833 return retval; in parse_long_option()
859 gold::options::One_option* retval = NULL; in parse_short_option() local
861 retval = &dash_z; in parse_short_option()
866 retval = gold::options::short_options[char_as_int]; in parse_short_option()
869 if (retval == NULL) in parse_short_option()
873 if (!retval->takes_argument()) in parse_short_option()
886 else if (retval->takes_optional_argument()) in parse_short_option()
887 *arg = retval->default_value; in parse_short_option()
896 if (retval == &dash_z) in parse_short_option()
900 retval = parse_long_option(1, arg, true, arg, &dummy_i); in parse_short_option()
901 if (retval == NULL) in parse_short_option()
905 return retval; in parse_short_option()