| 147 | /* ── Helpers ─────────────────────────────────────────────────────── */ |
| 148 | |
| 149 | static char *heap_strdup(const char *s) { |
| 150 | return cbm_mem_strdup(CBM_MEM_CLASS_GBUF_STRING, s ? s : "{}"); |
| 151 | } |
| 152 | |
| 153 | /* Intern a repetitive string into the buffer's pool: identical content collapses |
| 154 | * to a single heap copy owned by the pool. NULL maps to "{}" (matches |
no test coverage detected