34 lines
502 B
C
34 lines
502 B
C
|
|
#include <assert.h>
|
|
#include <fcntl.h>
|
|
|
|
#include <debug.h>
|
|
|
|
#include "../../istream/inc.h"
|
|
|
|
#include "../new.h"
|
|
|
|
#include "inheritance.h"
|
|
#include "struct.h"
|
|
#include "new.h"
|
|
|
|
struct wcistream* new_istream_wcistream(
|
|
struct istream* stream)
|
|
{
|
|
ENTER;
|
|
|
|
assert(stream);
|
|
|
|
struct stream_wcistream* this = (void*) new_wcistream(
|
|
&stream_wcistream_inheritance,
|
|
sizeof(*this));
|
|
|
|
this->stream = inc_istream(stream);
|
|
|
|
EXIT;
|
|
return (void*) this;
|
|
}
|
|
|
|
|
|
|
|
|