Lines Matching defs:choice
54 int choice = -1;
57 choice = def;
59 choice = (*input) - 'A';
61 choice = (*input) - 'a';
63 choice = atoi(input) - 1;
64 if (choice < 0 || choice >= bootcfg_info.nummenu)
65 choice = -1;
67 return choice;
74 int choice;
79 for (choice = 0; choice < bootcfg_info.nummenu; choice++)
80 printf(" %c. %s\n", choice + 'A',
81 bootcfg_info.desc[choice]);
84 for (choice = 0; choice < bootcfg_info.nummenu; choice++)
86 (choice < 9) ? " " : "",
87 choice + 1,
88 bootcfg_info.desc[choice]);
90 choice = -1;
103 choice = getchoicefrominput(input, bootcfg_info.def);
105 choice = bootcfg_info.def;
117 choice = getchoicefrominput(input, bootcfg_info.def);
119 if (choice == -1)
122 if (choice < 0)
124 if (!strcmp(bootcfg_info.command[choice], "prompt")) {
128 ic = bootcfg_info.command[choice];