MCPcopy Index your code
hub / github.com/NetHack/NetHack / selection_free

Function selection_free

src/selvar.c:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void
33selection_free(struct selectionvar *sel, boolean freesel)
34{
35 if (sel) {
36 if (sel->map)
37 free(sel->map);
38 sel->map = NULL;
39 if (freesel)
40 free((genericptr_t) sel);
41 else
42 (void) memset((genericptr_t) sel, 0, sizeof *sel);
43 }
44}
45
46/* clear selection, setting all locations to value val */
47void

Callers 15

end_runningFunction · 0.85
l_selection_gcFunction · 0.85
l_selection_push_newFunction · 0.85
l_selection_roomFunction · 0.85
selection_do_growFunction · 0.85
selection_floodfillFunction · 0.85
lspo_replace_terrainFunction · 0.85
generate_way_out_methodFunction · 0.85
ensure_way_outFunction · 0.85
lspo_regionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected