Lines Matching defs:choice
83 int choice, usedef;
85 choice = -1;
89 choice = def;
92 choice = (*input) - 'A';
94 choice = (*input) - 'a';
96 choice = atoi(input) - 1;
97 if (choice < 0 || choice >= bootcfg_info.nummenu)
98 choice = -1;
103 choice = -1;
105 return choice;
109 docommandchoice(int choice)
113 ic = bootcfg_info.command[choice];
139 int choice;
145 for (choice = 0; choice < bootcfg_info.nummenu; choice++)
146 printf(" %c. %s\n", choice + 'A',
147 bootcfg_info.desc[choice]);
150 for (choice = 0; choice < bootcfg_info.nummenu; choice++)
152 (choice < 9) ? " " : "",
153 choice + 1,
154 bootcfg_info.desc[choice]);
156 choice = -1;
169 choice = getchoicefrominput(input, bootcfg_info.def);
171 choice = bootcfg_info.def;
183 choice = getchoicefrominput(input, bootcfg_info.def);
185 if (choice == -1)
188 if (choice < 0)
190 if (!strcmp(bootcfg_info.command[choice], "prompt")) {
194 docommandchoice(choice);