diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-11-11 22:58:29 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-11-11 23:25:55 -0800 |
commit | 307745bcc2efbd4c5b8191b45d5e1885be1c0089 (patch) | |
tree | a0da43e2258fea744143b24e2560e042c481125a /apps/tile/data.mu | |
parent | 7d15b0884eb57657b130b98f3701544fedaf4b7f (diff) | |
download | mu-307745bcc2efbd4c5b8191b45d5e1885be1c0089.tar.gz |
7225
Both manual tests described in commit 7222 now work. To make them work I had to figure out how to copy a file. It requires a dependency on a new syscall: lseek.
Diffstat (limited to 'apps/tile/data.mu')
-rw-r--r-- | apps/tile/data.mu | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tile/data.mu b/apps/tile/data.mu index e2c1a47e..0464c54f 100644 --- a/apps/tile/data.mu +++ b/apps/tile/data.mu @@ -33,12 +33,14 @@ type word { prev: (handle word) } +# todo: turn this into a sum type type value { type: int int-data: int # if type = 0 text-data: (handle array byte) # if type = 1 array-data: (handle array value) # if type = 2 file-data: (handle buffered-file) # if type = 3 + filename: (handle array byte) # if type = 3 screen-data: (handle screen) # if type = 4 } |