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

Function fixup_rootmenu

scripts/config/qconf.cc:1860–1874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1858}
1859
1860void fixup_rootmenu(struct menu *menu)
1861{
1862 struct menu *child;
1863 static int menu_cnt = 0;
1864
1865 menu->flags |= MENU_ROOT;
1866 for (child = menu->list; child; child = child->next) {
1867 if (child->prompt && child->prompt->type == P_MENU) {
1868 menu_cnt++;
1869 fixup_rootmenu(child);
1870 menu_cnt--;
1871 } else if (!menu_cnt)
1872 fixup_rootmenu(child);
1873 }
1874}
1875
1876static const char *progname;
1877

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected