lambda-calculus/stringtree/new.c
2025-01-13 20:36:07 -06:00

23 lines
315 B
C

#include <debug.h>
#include <memory/smalloc.h>
#include "struct.h"
#include "new.h"
struct stringtree* new_stringtree(void)
{
ENTER;
struct stringtree* this = smalloc(sizeof(*this));
this->head = NULL;
this->tail = NULL;
this->refcount = 1;
EXIT;
return this;
}