lambda-calc-1/wcistream/new.c
2025-01-20 13:40:51 -06:00

26 lines
394 B
C

#include <debug.h>
#include <memory/smalloc.h>
#include "struct.h"
#include "new.h"
struct wcistream* new_wcistream(
const struct wcistream_inheritance* inheritance,
size_t alloc_size)
{
ENTER;
struct wcistream* this = smalloc(alloc_size);
this->inheritance = inheritance;
this->wc = 0;
this->refcount = 1;
EXIT;
return this;
}