lisp-take-1/stringtree/struct.h
2024-11-28 18:36:25 -06:00

25 lines
423 B
C

struct stringtree
{
struct child
{
enum child_kind {
ck_cstr,
ck_string,
ck_stringtree,
} kind;
union {
const char* cstr;
struct string* string;
struct stringtree* stringtree;
};
struct child *prev, *next;
} *head, *tail;
unsigned refcount;
};