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

Function menu_add_entry

scripts/config/menu.c:48–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void menu_add_entry(struct symbol *sym)
49{
50 struct menu *menu;
51
52 menu = xmalloc(sizeof(*menu));
53 memset(menu, 0, sizeof(*menu));
54 menu->sym = sym;
55 menu->parent = current_menu;
56 menu->file = current_file;
57 menu->lineno = zconf_lineno();
58
59 *last_entry_ptr = menu;
60 last_entry_ptr = &menu->next;
61 current_entry = menu;
62 if (sym)
63 menu_add_symbol(P_SYMBOL, sym, NULL);
64}
65
66struct menu *menu_add_menu(void)
67{

Callers 1

yyparseFunction · 0.85

Calls 3

xmallocFunction · 0.85
zconf_linenoFunction · 0.85
menu_add_symbolFunction · 0.85

Tested by

no test coverage detected