Lines Matching refs:menu
31 static struct menu *current_menu, *current_entry;
40 struct menu *menu; member
99 %type <menu> if_entry menu_entry choice_entry
338 menu: T_MENU T_WORD_QUOTE T_EOL
345 menu_entry: menu menu_option_list
589 static void print_symbol(FILE *out, struct menu *menu) in print_symbol() argument
591 struct symbol *sym = menu->sym; in print_symbol()
619 if (prop->menu != menu) in print_symbol()
665 fprintf(out, "%s\n", prop->menu->sym->name); in print_symbol()
672 if (menu->help) { in print_symbol()
673 int len = strlen(menu->help); in print_symbol()
674 while (menu->help[--len] == '\n') in print_symbol()
675 menu->help[len] = 0; in print_symbol()
676 fprintf(out, " help\n%s\n", menu->help); in print_symbol()
684 struct menu *menu; in zconfdump() local
686 menu = rootmenu.list; in zconfdump()
687 while (menu) { in zconfdump()
688 if ((sym = menu->sym)) in zconfdump()
689 print_symbol(out, menu); in zconfdump()
690 else if ((prop = menu->prompt)) { in zconfdump()
712 if (menu->list) in zconfdump()
713 menu = menu->list; in zconfdump()
714 else if (menu->next) in zconfdump()
715 menu = menu->next; in zconfdump()
716 else while ((menu = menu->parent)) { in zconfdump()
717 if (menu->prompt && menu->prompt->type == P_MENU) in zconfdump()
719 if (menu->next) { in zconfdump()
720 menu = menu->next; in zconfdump()