view src/impl/PipeRead.cbc @ 139:0f8ae55cacbe

tweak
author anatofuz
date Thu, 12 Dec 2019 14:27:05 +0900
parents 547c20b052dc
children eef045e9772a
line wrap: on
line source

#include "../context.h";
#interface "SysRead.h";

// ----
// typedef struct PipeRead<Type, Isa> impl SysRead {
//   struct CbCPipe *pipe;
//   struct String *addr;
//   struct Integer* i;
// } PipeRead;
// ----

SysRead* createPipeRead(struct Context* cbc_context) {
    struct SysRead* sys_read  = new SysRead();
    struct PipeRead* pipe_read = new PipeRead();
    sys_read->sys_read = (union Data*)pipe_read;
    pipe_read->num = NULL;
    sys_read->read = C_readPipeRead;
    sys_read->next = C_nextPipeRead;
    return sys_read;
}
__code readPipeRead(__code next(...)) {

  goto next(...);
}

__code nextPipeRead(...) {

}