| 32 | } |
| 33 | |
| 34 | static void memo_release(struct hc_malloc *a, void *p) { |
| 35 | struct hc_memo_alloc *ma = hc_baseof(a, struct hc_memo_alloc, malloc); |
| 36 | struct memo *m = hc_baseof(p, struct memo, data); |
| 37 | *(struct memo **)hc_set_add(&ma->memo, &m->size, true) = m; |
| 38 | } |
| 39 | |
| 40 | static enum hc_order memo_cmp(const void *l, const void *r) { |
| 41 | return hc_cmp(*(size_t *)l, *(size_t *)r); |
nothing calls this directly
no test coverage detected