104
|
1 #include "../context.h";
|
|
2 #interface "SysRead.h";
|
|
3
|
|
4 // ----
|
|
5 // typedef struct PipeRead<Type, Isa> impl SysRead {
|
|
6 // struct CbCPipe *pipe;
|
|
7 // struct String *addr;
|
|
8 // struct Integer* i;
|
|
9 // } PipeRead;
|
|
10 // ----
|
|
11
|
|
12 SysRead* createPipeRead(struct Context* cbc_context) {
|
|
13 struct SysRead* sys_read = new SysRead();
|
105
|
14 struct PipeRead* pipe_read = new PipeRead();
|
|
15 sys_read->sys_read = (union Data*)pipe_read;
|
|
16 pipe_read->num = NULL;
|
104
|
17 sys_read->read = C_readPipeRead;
|
|
18 sys_read->next = C_nextPipeRead;
|
|
19 return sys_read;
|
|
20 }
|
|
21 __code readPipeRead(__code next(...)) {
|
|
22
|
|
23 goto next(...);
|
|
24 }
|
|
25
|
|
26 __code nextPipeRead(...) {
|
|
27
|
|
28 }
|
|
29
|