23 lines
315 B
C
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;
|
|
}
|
|
|