diff src/impl/PipeRead.h @ 138:e3dd8f96c2fb

add impl file read interface
author anatofuz
date Thu, 12 Dec 2019 14:13:51 +0900
parents 9bfc4fbb5502
children 819537a244ee dec1fa964271
line wrap: on
line diff
--- a/src/impl/PipeRead.h	Thu Dec 12 14:01:06 2019 +0900
+++ b/src/impl/PipeRead.h	Thu Dec 12 14:13:51 2019 +0900
@@ -1,5 +1,15 @@
 typedef struct PipeRead<Type, Isa> impl SysRead {
-  struct CbCPipe *pipe;
-  struct String *addr;
-  struct Integer* i;
+  struct pipe* p;
+  int i;
+  int n;
+  __code cbc_piperead1(Type* sys_read, struct pipe* p, __code next(...));
+  __code cbc_piperead2(Type* sys_read, int i, int n,struct pipe* p, __code next(...));
+  __code cbc_piperead3(Type* sys_read, struct pipe* p, int i, __code next(...));
+  __code next(...);
 } PipeRead;
+
+/*
+ __code cbc_piperead1(Impl* sys_read, struct pipe* p);
+ __code cbc_piperead2(Impl* sys_read, int i, int n,struct pipe* p);
+ __code cbc_piperead3(Impl* sys_read, struct pipe* p, int i);
+*/