Lines Matching defs:values
57 " --second-image-flag=flag-value\n Dual Image Flag (2=not-specified). (possible \n values=\"0\", \"1\", \"2\" default=`2')",
58 " --inactive=flag-value Inactive Flag (2=not-specified). (possible \n values=\"0\", \"1\", \"2\" default=`2')",
84 const char *imagetag_cmdline_second_image_flag_values[] = {"0", "1", "2", 0}; /*< Possible values for second-image-flag. */
85 const char *imagetag_cmdline_inactive_values[] = {"0", "1", "2", 0}; /*< Possible values for inactive. */
344 * @param values the possible values
350 check_possible_values(const char *val, const char *values[])
360 for (i = 0, len = strlen(val); values[i]; ++i)
362 if (strncmp(val, values[i], len) == 0)
366 if (strlen(values[i]) == len)
374 return (found ? -2 : -1); /* return many values or none matched */
379 write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[])
383 if (values) {
384 found = check_possible_values(arg, values);
387 fprintf(outfile, "%s=\"%s\" # %s\n", opt, arg, values[found]);
637 * @param possible_values the possible values for this option (if specified)
638 * @param default_value the default value (in case the option only accepts fixed values)