about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-28 23:24:04 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-28 23:24:04 -0700
commitcd94852dbc713ff38f38a30d6e5fb4675606823c (patch)
treedc2a52048a609937cf0de0d0906336d52419ef65 /400.mu
parent392ebcce803423631de77fdc85c837be636078bb (diff)
downloadmu-cd94852dbc713ff38f38a30d6e5fb4675606823c.tar.gz
6733 - read utf-8 'grapheme' from byte stream
No support for combining characters. Graphemes are currently just utf-8
encodings of a single Unicode code-point. No support for code-points that
require more than 32 bits in utf-8.
Diffstat (limited to '400.mu')
-rw-r--r--400.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/400.mu b/400.mu
index 09b84c67..0bcf7e64 100644
--- a/400.mu
+++ b/400.mu
@@ -51,6 +51,7 @@ sig tailor-exit-descriptor ed: (addr exit-descriptor), nbytes: int
 sig stop ed: (addr exit-descriptor), value: int
 #sig read f: fd or (addr stream byte), s: (addr stream byte) -> num-bytes-read/eax: int
 sig read-byte-buffered f: (addr buffered-file) -> byte-or-Eof/eax: byte
+sig read-byte s: (addr stream byte) -> result/eax: byte
 #sig write-stream f: fd or (addr stream byte), s: (addr stream byte)
 #sig error ed: (addr exit-descriptor), out: fd or (addr stream byte), msg: (addr array byte)
 sig write-byte-buffered f: (addr buffered-file), n: int