summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-08-14 23:34:22 -0400
committerOri Bernstein <ori@eigenstate.org>2013-08-14 23:34:22 -0400
commit8e46913c52cec95c1266ce8ee5ee2794eafc9364 (patch)
treedcd1aae71a2b91ac4c84b7e45adbf29ba782628d
parentdef0aab5b2b3a1c2326a6c593761e1f27a089601 (diff)
downloadmc-8e46913c52cec95c1266ce8ee5ee2794eafc9364.tar.gz
Add a constant for the maximum UTF size.
-rw-r--r--libstd/utf.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstd/utf.myr b/libstd/utf.myr
index 40b509c..83a86f2 100644
--- a/libstd/utf.myr
+++ b/libstd/utf.myr
@@ -4,6 +4,7 @@ use "types.use"
pkg std =
const Badchar : char = -1 castto(char)
+ const Maxcharlen : size= 4
const charlen : (chr : char -> size)
const encode : (buf : byte[:], chr : char -> size)