diff src/interface/File.h @ 88:f38d8d39d617

add file interface
author tobaru
date Wed, 16 Oct 2019 19:40:37 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/interface/File.h	Wed Oct 16 19:40:37 2019 +0900
@@ -0,0 +1,8 @@
+typedef struct File<Type, Impl>{
+        union Data* file;
+        struct file *f;
+        int n;
+        char *p;
+        __code file_read(__code, next(...));
+        __code next(...);
+} File;