MCPcopy Create free account
hub / github.com/NetHack/NetHack / nhcmdset_destroy

Function nhcmdset_destroy

outdated/sys/wince/mhcmd.c:1301–1312  ·  view source on GitHub ↗

-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

1299}
1300/*-------------------------------------------------------------------------*/
1301void
1302nhcmdset_destroy(PNHCmdSet p)
1303{
1304 int i = 0;
1305 assert(p);
1306 for (i = 0; i < p->count; i++) {
1307 if (p->elements[i].free_on_destroy) {
1308 nhcmdlayout_destroy(p->elements[i].layout);
1309 }
1310 }
1311 free(p);
1312}
1313/*-------------------------------------------------------------------------*/
1314
1315#if defined(WIN_CE_SMARTPHONE)

Callers 3

NHSPhoneSetKeypadDefaultFunction · 0.85

Calls 1

nhcmdlayout_destroyFunction · 0.85

Tested by

no test coverage detected