Lines Matching refs:choice
27 *(unsigned *)(((char *)opt) + arg->offset) = arg->u.choice.default_value;
409 for (i = 0; decl->u.choice.choice[i].name; ++i)
410 if (decl->u.choice.choice[i].value == *p) {
411 s = decl->u.choice.choice[i].name;
428 for (i = 0; decl->u.choice.choice[i].name; ++i) {
433 printf("%s", decl->u.choice.choice[i].name);
434 pos += strlen(decl->u.choice.choice[i].name);
808 const char *choice;
810 choice = skip_name(decl, arg[0], prefixes, 0, &has_argument);
811 if (!choice)
815 unsigned u = decl->u.choice.default_selected;
818 if (decl->u.choice.set)
819 decl->u.choice.set(opt, u);
825 choice = arg[1];
827 for (i = 0; decl->u.choice.choice[i].name; ++i) {
830 if (strcmp(choice, decl->u.choice.choice[i].name))
833 u = decl->u.choice.choice[i].value;
836 if (decl->u.choice.set)
837 decl->u.choice.set(opt, u);