Lines Matching defs:opts
37 static int ParseOption(char **argv, int *index, PerfOption *opts)
42 while ((opts->name != NULL) && (*opts->name != 0)) {
43 if (strcmp(argv[*index], opts->name) == 0) {
44 switch (opts->type) {
46 *opts->value = strtoul(argv[++(*index)], NULL, 0);
49 *opts->str = argv[++(*index)];
53 if ((*opts->cb)(str) != 0) {
65 opts++;
71 int ParseOptions(int argc, char **argv, PerfOption *opts, SubCmd *cmd)
77 if (ParseOption(argv, &index, opts) != 0) {