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

Function fill_glyphid_cache

src/glyphs.c:302–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301
302void
303fill_glyphid_cache(void)
304{
305 int reslt = 0;
306
307 if (!glyphid_cache) {
308 init_glyph_cache();
309 }
310 if (glyphid_cache) {
311 glyphcache_find = zero_find;
312 glyphcache_find.findtype = find_nothing;
313 glyphcache_find.reserved = (genericptr_t) glyphid_cache;
314 glyphcache_find.restype = res_fill_cache;
315 reslt = parse_id((char *) 0, &glyphcache_find);
316 if (!reslt) {
317 free_glyphid_cache();
318 glyphid_cache = (struct glyphid_cache_t *) 0;
319 }
320 }
321}
322
323/*
324 * The glyph ID cache is a simple double-hash table.

Callers 4

optfn_symsetFunction · 0.85
initoptions_initFunction · 0.85
do_symsetFunction · 0.85
wiz_customFunction · 0.85

Calls 3

init_glyph_cacheFunction · 0.85
parse_idFunction · 0.85
free_glyphid_cacheFunction · 0.85

Tested by

no test coverage detected