| 1554 | /* ── Cross-reference ─────────────────────────────────────────────── */ |
| 1555 | |
| 1556 | static void xref_free(pdf_xref_t *x) { |
| 1557 | cbm_free(CBM_MEM_CLASS_EXTRACT, x->v); |
| 1558 | pdf_map_free(&x->by_num); |
| 1559 | memset(x, 0, sizeof(*x)); |
| 1560 | } |
| 1561 | |
| 1562 | /* The entry for num; created (zeroed) when absent. *fresh says which. */ |
| 1563 | static pdf_xent_t *xref_slot(pdf_doc_t *d, pdf_xref_t *x, int64_t num, bool *fresh) { |
no test coverage detected