diff src/file_read.cbc @ 153:49d8aba0002a

switch use sys_pipe_read.cbc
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 18 Dec 2019 15:55:22 +0900
parents 06449f2ae0c7
children
line wrap: on
line diff
--- a/src/file_read.cbc	Mon Dec 16 21:55:29 2019 +0900
+++ b/src/file_read.cbc	Wed Dec 18 15:55:22 2019 +0900
@@ -22,10 +22,10 @@
    return NULL; //Error?
 }
 
-__code selectReadInstance(struct Context cbc_context, struct file* f, __code ret(int i)) {
+__code selectReadInstance(struct Context cbc_context, struct file* f, __code next(int i)) {
    if (f->readable == 0) {
      i = -1;
-     goto ret(i);
+     goto next(i);
    }
    SysRead* read = createFileReadInstFromFile(proc->cbc_context, f);
    goto read->read(f,addr,n);