| 630 | } |
| 631 | |
| 632 | static void check_conf(struct menu *menu) |
| 633 | { |
| 634 | struct symbol *sym; |
| 635 | struct menu *child; |
| 636 | |
| 637 | if (!menu_is_visible(menu)) |
| 638 | return; |
| 639 | |
| 640 | sym = menu->sym; |
| 641 | if (sym && !sym_has_value(sym) && |
| 642 | (sym_is_changeable(sym) || |
| 643 | (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes))) { |
| 644 | |
| 645 | switch (input_mode) { |
| 646 | case listnewconfig: |
| 647 | if (sym->name) |
| 648 | print_symbol_for_listconfig(sym); |
| 649 | break; |
| 650 | case helpnewconfig: |
| 651 | printf("-----\n"); |
| 652 | print_help(menu); |
| 653 | printf("-----\n"); |
| 654 | break; |
| 655 | default: |
| 656 | if (!conf_cnt++) |
| 657 | printf("*\n* Restart config...\n*\n"); |
| 658 | rootEntry = menu_get_parent_menu(menu); |
| 659 | conf(rootEntry); |
| 660 | break; |
| 661 | } |
| 662 | } |
| 663 | |
| 664 | for (child = menu->list; child; child = child->next) |
| 665 | check_conf(child); |
| 666 | } |
| 667 | |
| 668 | static const struct option long_opts[] = { |
| 669 | {"help", no_argument, NULL, 'h'}, |
no test coverage detected