| 662 | } |
| 663 | |
| 664 | struct menu *menu_get_parent_menu(struct menu *menu) |
| 665 | { |
| 666 | enum prop_type type; |
| 667 | |
| 668 | for (; menu != &rootmenu; menu = menu->parent) { |
| 669 | type = menu->prompt ? menu->prompt->type : 0; |
| 670 | if (type == P_MENU) |
| 671 | break; |
| 672 | } |
| 673 | return menu; |
| 674 | } |
| 675 | |
| 676 | bool menu_has_help(struct menu *menu) |
| 677 | { |
no outgoing calls
no test coverage detected