Mercurial > hg > Members > menikon > CbC_xv6
comparison src/file.cbc @ 92:bc5bcfd2f6d6
rename CbCFile to CbCSysFile
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 19 Oct 2019 16:44:24 +0900 |
parents | b5ddf6fb0a6d |
children | 0ddcd561d975 |
comparison
equal
deleted
inserted
replaced
91:b5ddf6fb0a6d | 92:bc5bcfd2f6d6 |
---|---|
133 | 133 |
134 goto cbc_panic("fileread"); | 134 goto cbc_panic("fileread"); |
135 } | 135 } |
136 | 136 |
137 __code cbc_fileread_stub(struct Context* cbc_context) { | 137 __code cbc_fileread_stub(struct Context* cbc_context) { |
138 struct CbCFile* cbc_file = &cbc_context->data[D_CbCFile]->CbCFile; | 138 struct CbCSysFile* cbc_file = &cbc_context->data[D_CbCSysFile]->CbCSysFile; |
139 enum Code next = cbc_context->next; | 139 enum Code next = cbc_context->next; |
140 goto cbc_fileread(cbc_file->f, cbc_file->p, cbc_file->n, cbc_context->code[next]); | 140 goto cbc_fileread(cbc_file->f, cbc_file->p, cbc_file->n, cbc_context->code[next]); |
141 } | 141 } |
142 | 142 |
143 // Read from file f. | 143 // Read from file f. |