24 lines
371 B
C
24 lines
371 B
C
|
|
#include <debug.h>
|
|
|
|
#include <memory/smalloc.h>
|
|
|
|
#include "struct.h"
|
|
#include "new.h"
|
|
|
|
struct wcostream* new_wcostream(
|
|
const struct wcostream_inheritance* inheritance,
|
|
size_t alloc_size)
|
|
{
|
|
ENTER;
|
|
|
|
struct wcostream* this = smalloc(alloc_size);
|
|
|
|
this->inheritance = inheritance;
|
|
|
|
this->refcount = 1;
|
|
|
|
EXIT;
|
|
return this;
|
|
}
|
|
|