lisp-take-1/stringtree/new.c
2024-11-28 18:36:25 -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;
}