Lines Matching refs:menu

20 static void conf(struct menu *menu);
21 static void check_conf(struct menu *menu);
48 static struct menu *rootEntry;
50 static void print_help(struct menu *menu) in print_help() argument
54 menu_get_ext_help(menu, &help); in print_help()
122 static void randomize_choice_values(struct menu *choice) in randomize_choice_values()
124 struct menu *menu; in randomize_choice_values() local
133 menu_for_each_sub_entry(menu, choice) { in randomize_choice_values()
134 struct symbol *sym = menu->sym; in randomize_choice_values()
143 menu_for_each_sub_entry(menu, choice) { in randomize_choice_values()
144 struct symbol *sym = menu->sym; in randomize_choice_values()
177 struct menu *menu; in conf_set_all_new_symbols() local
232 menu_for_each_entry(menu) { in conf_set_all_new_symbols()
233 struct symbol *sym = menu->sym; in conf_set_all_new_symbols()
236 if (!sym || !menu->prompt || sym_has_value(sym) || in conf_set_all_new_symbols()
243 randomize_choice_values(menu); in conf_set_all_new_symbols()
323 static int conf_string(struct menu *menu) in conf_string() argument
325 struct symbol *sym = menu->sym; in conf_string()
329 printf("%*s%s ", indent - 1, "", menu->prompt->text); in conf_string()
342 print_help(menu); in conf_string()
356 static int conf_sym(struct menu *menu) in conf_sym() argument
358 struct symbol *sym = menu->sym; in conf_sym()
362 printf("%*s%s ", indent - 1, "", menu->prompt->text); in conf_sym()
419 print_help(menu); in conf_sym()
423 static void conf_choice(struct menu *menu) in conf_choice() argument
426 struct menu *child; in conf_choice()
432 printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu)); in conf_choice()
433 def_sym = sym_calc_choice(menu); in conf_choice()
436 for (child = menu->list; child; child = child->next) { in conf_choice()
477 print_help(menu); in conf_choice()
492 for (child = menu->list; child; child = child->next) { in conf_choice()
504 choice_set_value(menu, child->sym); in conf_choice()
509 static void conf(struct menu *menu) in conf() argument
513 struct menu *child; in conf()
515 if (!menu_is_visible(menu)) in conf()
518 sym = menu->sym; in conf()
519 prop = menu->prompt; in conf()
529 if (input_mode != oldaskconfig && rootEntry != menu) { in conf()
530 check_conf(menu); in conf()
535 prompt = menu_get_prompt(menu); in conf()
550 conf_choice(menu); in conf()
558 conf_string(menu); in conf()
561 conf_sym(menu); in conf()
568 for (child = menu->list; child; child = child->next) in conf()
574 static void check_conf(struct menu *menu) in check_conf() argument
577 struct menu *child; in check_conf()
579 if (!menu_is_visible(menu)) in check_conf()
582 sym = menu->sym; in check_conf()
591 print_help(menu); in check_conf()
597 rootEntry = menu_get_parent_menu(menu); in check_conf()
603 for (child = menu->list; child; child = child->next) in check_conf()