#ifndef STRING_H #define STRING_H #include #include #define SV(sp, s) sv_create(sp, s, sizeof(s)) struct string_pool { uintptr_t mem; size_t offset; }; struct string_view { size_t len; char *buf; }; void sp_init(struct string_pool *sp); struct string_view sv_create(struct string_pool *sp, const char *buf, size_t s); #endif