Lines Matching refs:menu

32 struct menu *current_menu, *current_entry, *current_choice;
41 struct menu *menu; member
96 %type <menu> if_entry menu_entry choice_entry
346 menu: T_MENU T_WORD_QUOTE T_EOL
353 menu_entry: menu menu_option_list
499 static int choice_check_sanity(const struct menu *menu)
504 for (prop = menu->sym->prop; prop; prop = prop->next) {
512 if (prop->menu != menu && prop->type == P_PROMPT &&
513 prop->menu->parent != menu->parent) {
526 struct menu *menu; in conf_parse() local
562 menu_for_each_entry(menu) { in conf_parse()
563 struct menu *child; in conf_parse()
565 if (menu->sym && sym_check_deps(menu->sym)) in conf_parse()
568 if (menu->sym && sym_is_choice(menu->sym)) { in conf_parse()
569 menu_for_each_sub_entry(child, menu) in conf_parse()
646 static void print_symbol(FILE *out, const struct menu *menu) in print_symbol() argument
648 struct symbol *sym = menu->sym; in print_symbol()
676 if (prop->menu != menu) in print_symbol()
722 if (menu->help) { in print_symbol()
723 int len = strlen(menu->help); in print_symbol()
724 while (menu->help[--len] == '\n') in print_symbol()
725 menu->help[len] = 0; in print_symbol()
726 fprintf(out, " help\n%s\n", menu->help); in print_symbol()
734 struct menu *menu; in zconfdump() local
736 menu = rootmenu.list; in zconfdump()
737 while (menu) { in zconfdump()
738 if ((sym = menu->sym)) in zconfdump()
739 print_symbol(out, menu); in zconfdump()
740 else if ((prop = menu->prompt)) { in zconfdump()
762 if (menu->list) in zconfdump()
763 menu = menu->list; in zconfdump()
764 else if (menu->next) in zconfdump()
765 menu = menu->next; in zconfdump()
766 else while ((menu = menu->parent)) { in zconfdump()
767 if (menu->prompt && menu->prompt->type == P_MENU) in zconfdump()
769 if (menu->next) { in zconfdump()
770 menu = menu->next; in zconfdump()