| 124 | /* ── Helpers ─────────────────────────────────────────────────────── */ |
| 125 | |
| 126 | static char *heap_strdup(const char *s) { |
| 127 | return s ? strdup(s) : strdup("{}"); |
| 128 | } |
| 129 | |
| 130 | /* Intern a repetitive string into the buffer's pool: identical content collapses |
| 131 | * to a single heap copy owned by the pool. NULL maps to "{}" (matches |
no outgoing calls
no test coverage detected