132
|
1 #include "../context.h"
|
|
2 #interface "SysRead.h"
|
|
3 //data_gear "file.dg"
|
|
4
|
|
5 // ----
|
|
6 // typedef struct SysReadImpl <Type, Isa> impl SysRead {
|
|
7 //
|
|
8 // } SysReadImpl;
|
|
9 // ----
|
|
10
|
|
11 SysRead* createSysReadImpl(struct Context* cbc_context) {
|
|
12 struct SysRead* sys_read = new SysRead();
|
|
13 struct SysReadImpl* sys_read_impl = new SysReadImpl();
|
|
14 sys_read->sys_read = (union Data*)sys_read_impl;
|
|
15 sys_read->num = 0;
|
|
16 sys_read->addr = NULL;
|
|
17 sys_read->file = NULL;
|
|
18 sys_read->read = C_readSysReadImpl;
|
|
19 sys_read->next = C_nextSysReadImpl;
|
|
20 return sys_read;
|
|
21 }
|
|
22 __code readSysReadImpl(struct SysReadImpl* sys_read, __code next(...)) {
|
|
23
|
|
24 goto next(...);
|
|
25 }
|
|
26
|
|
27 __code nextSysReadImpl(...) {
|
|
28
|
|
29 }
|
|
30
|