| 352 | } |
| 353 | |
| 354 | void |
| 355 | free_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 | |
| 371 | staticfn void |
| 372 | add_glyph_to_cache(int glyphnum, const char *id) |
no outgoing calls
no test coverage detected