Home | History | Annotate | Download | only in src

Lines Matching full:value

52 // to the actual flag, default value, comment, etc.  This is designed to be POD
60 const void* defptr_; // Pointer to the default value.
62 bool owns_ptr_; // Does the flag own its string value?
90 void set_string_value(const char* value, bool owns_ptr) {
94 *ptr = value;
128 // Compare this flag's current value against the default.
151 // Set a flag back to it's default value.
269 // a flag name and flag value (or NULL if they are missing). is_bool is set
276 const char** value,
279 *value = NULL;
303 // get the value if any
311 // get the value
312 *value = arg + 1;
354 const char* value;
356 SplitArgument(arg, buffer, sizeof buffer, &name, &value, &is_bool);
375 // if we still need a flag value, use the next argument if available
378 value == NULL) {
380 value = argv[i++];
382 fprintf(stderr, "Error: missing value for flag %s of type %s\n"
396 *flag->int_variable() = strtol(value, &endp, 10); // NOLINT
399 *flag->float_variable() = strtod(value, &endp);
402 flag->set_string_value(value ? StrDup(value) : NULL, true);
405 int start_pos = (value == NULL) ? i : i - 1;
408 if (value != NULL) {
409 js_argv[0] = StrDup(value);
421 if ((flag->type() == Flag::TYPE_BOOL && value != NULL) ||
424 fprintf(stderr, "Error: illegal value for flag %s of type %s\n"
430 // remove the flag & value from the command
535 SmartPointer<const char> value = ToString(f);
537 f->name(), f->comment(), Type2String(f->type()), *value);