Lines Matching defs:menu
74 * sym_get_prompt_menu - get the menu entry with a prompt
78 * Return: the menu entry with a prompt.
80 struct menu *sym_get_prompt_menu(const struct symbol *sym)
82 struct menu *m;
92 * sym_get_choice_menu - get the parent choice menu if present
96 * Return: a choice menu if this function is called against a choice member.
98 struct menu *sym_get_choice_menu(const struct symbol *sym)
100 struct menu *menu = NULL;
103 * Choice members must have a prompt. Find a menu entry with a prompt,
106 menu = sym_get_prompt_menu(sym);
107 if (!menu)
111 menu = menu->parent;
112 } while (menu && !menu->sym);
114 if (menu && menu->sym && sym_is_choice(menu->sym))
115 return menu;
194 struct menu *menu;
196 list_for_each_entry(menu, &sym->menus, link)
197 menu->flags |= MENU_CHANGED;
263 struct symbol *sym_choice_default(struct menu *choice)
265 struct menu *menu;
280 menu_for_each_sub_entry(menu, choice)
281 if (menu->sym && menu->sym->visible != no)
282 return menu->sym;
291 * @choice: a menu of the choice
295 struct symbol *sym_calc_choice(struct menu *choice)
299 struct menu *menu;
326 menu_for_each_sub_entry(menu, choice) {
327 sym = menu->sym;
352 menu_for_each_sub_entry(menu, choice) {
355 sym = menu->sym;
406 struct menu *choice_menu;
579 * @choice: menu entry for the choice
582 void choice_set_value(struct menu *choice, struct symbol *sym)
584 struct menu *menu;
587 menu_for_each_sub_entry(menu, choice) {
590 if (!menu->sym)
593 if (menu->sym->visible == no)
596 val = menu->sym == sym ? yes : no;
598 if (menu->sym->curr.tri != val)
601 menu->sym->def[S_DEF_USER].tri = val;
602 menu->sym->flags |= SYMBOL_DEF_USER;
612 list_move(&menu->sym->choice_link, &choice->choice_members);
621 struct menu *choice;
1093 struct menu *choice;
1120 choice = list_first_entry(&next_sym->menus, struct menu, link);
1241 struct menu *choice_menu, *menu;
1247 choice_menu = list_first_entry(&choice->menus, struct menu, link);
1249 menu_for_each_sub_entry(menu, choice_menu) {
1250 if (menu->sym)
1251 menu->sym->flags |= SYMBOL_CHECK | SYMBOL_CHECKED;
1260 menu_for_each_sub_entry(menu, choice_menu) {
1261 if (!menu->sym)
1263 sym2 = sym_check_sym_deps(menu->sym);
1268 menu_for_each_sub_entry(menu, choice_menu)
1269 if (menu->sym)
1270 menu->sym->flags &= ~SYMBOL_CHECK;
1273 struct menu *choice_menu2;
1287 struct menu *choice;
1331 return "menu";