#include #include #include #include #include "struct.h" #include "print.h" void stringtree_print( struct stringtree* this, struct wcostream* stream) { for (struct child* c = this->head; c; c = c->next) { switch (c->kind) { case ck_cstr: { wcostream_write(stream, c->cstr, wcslen(c->cstr)); break; } case ck_string: { string_write(c->string, stream); break; } case ck_stringtree: { stringtree_print(c->stringtree, stream); break; } default: TODO; break; } } }