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

Function free_glyphid_cache

src/glyphs.c:354–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354void
355free_glyphid_cache(void)
356{
357 size_t idx;
358
359 if (!glyphid_cache)
360 return;
361 for (idx = 0; idx < glyphid_cache_size; ++idx) {
362 if (glyphid_cache[idx].id) {
363 free(glyphid_cache[idx].id);
364 glyphid_cache[idx].id = (char *) 0;
365 }
366 }
367 free(glyphid_cache);
368 glyphid_cache = (struct glyphid_cache_t *) 0;
369}
370
371staticfn void
372add_glyph_to_cache(int glyphnum, const char *id)

Callers 6

optfn_symsetFunction · 0.85
initoptions_finishFunction · 0.85
do_symsetFunction · 0.85
fill_glyphid_cacheFunction · 0.85
wiz_customFunction · 0.85
freedynamicdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected