| 28 | } |
| 29 | |
| 30 | static void _menuAddEntry(menu_s* m, menuEntry_s* me) |
| 31 | { |
| 32 | me->menu = m; |
| 33 | if (m->lastEntry) |
| 34 | { |
| 35 | m->lastEntry->next = me; |
| 36 | m->lastEntry = me; |
| 37 | } else |
| 38 | { |
| 39 | m->firstEntry = me; |
| 40 | m->lastEntry = me; |
| 41 | } |
| 42 | m->nEntries++; |
| 43 | } |
| 44 | |
| 45 | static void _menuClear(menu_s* menu) |
| 46 | { |
no outgoing calls
no test coverage detected