MCPcopy Create free account
hub / github.com/Entware/Entware / menu_is_empty

Function menu_is_empty

scripts/config/menu.c:606–615  ·  view source on GitHub ↗

* Determine if a menu is empty. * A menu is considered empty if it contains no or only * invisible entries. */

Source from the content-addressed store, hash-verified

604 * invisible entries.
605 */
606bool menu_is_empty(struct menu *menu)
607{
608 struct menu *child;
609
610 for (child = menu->list; child; child = child->next) {
611 if (menu_is_visible(child))
612 return(false);
613 }
614 return(true);
615}
616
617bool menu_is_visible(struct menu *menu)
618{

Callers 2

build_confFunction · 0.85
build_confFunction · 0.85

Calls 1

menu_is_visibleFunction · 0.85

Tested by

no test coverage detected