| 35 | } InternEntry; |
| 36 | |
| 37 | struct CBMInternPool { |
| 38 | CBMArena arena; |
| 39 | InternEntry *buckets; |
| 40 | uint32_t capacity; |
| 41 | uint32_t count; |
| 42 | uint32_t mask; |
| 43 | size_t total_bytes; /* sum of string lengths stored */ |
| 44 | }; |
| 45 | |
| 46 | CBMInternPool *cbm_intern_create(void) { |
| 47 | CBMInternPool *p = (CBMInternPool *)calloc(CBM_ALLOC_ONE, sizeof(*p)); |
nothing calls this directly
no outgoing calls
no test coverage detected