Lines Matching defs:choice
80 int choice, usedef;
82 choice = -1;
86 choice = def;
89 choice = (*input) - 'A';
91 choice = (*input) - 'a';
93 choice = atoi(input) - 1;
94 if (choice < 0 || choice >= bootcfg_info.nummenu)
95 choice = -1;
100 choice = -1;
102 return choice;
106 docommandchoice(int choice)
110 ic = bootcfg_info.command[choice];
136 int choice;
150 for (choice = 0; choice < bootcfg_info.nummenu;
151 choice++)
152 printf(" %c. %s\n", choice + 'A',
153 bootcfg_info.desc[choice]);
156 for (choice = 0; choice < bootcfg_info.nummenu;
157 choice++)
159 (choice < 9) ? " " : "",
160 choice + 1,
161 bootcfg_info.desc[choice]);
164 choice = -1;
177 choice = getchoicefrominput(input, bootcfg_info.def);
179 choice = bootcfg_info.def;
191 choice = getchoicefrominput(input, bootcfg_info.def);
193 if (choice == -1)
196 if (choice < 0)
198 if (!strcmp(bootcfg_info.command[choice], "prompt") &&
204 docommandchoice(choice);