| 300 | |
| 301 | |
| 302 | void |
| 303 | fill_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. |
no test coverage detected