lambda-calc-1/stringtree/struct.h
2025-01-13 20:36:07 -06:00

27 lines
446 B
C

#include <wchar.h>
struct stringtree
{
struct child
{
enum child_kind {
ck_cstr,
ck_string,
ck_stringtree,
} kind;
union {
const wchar_t* cstr;
struct string* string;
struct stringtree* stringtree;
};
struct child *prev, *next;
} *head, *tail;
unsigned refcount;
};