diff options
author | Ori Bernstein <ori@eigenstate.org> | 2013-08-14 23:34:22 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2013-08-14 23:34:22 -0400 |
commit | 8e46913c52cec95c1266ce8ee5ee2794eafc9364 (patch) | |
tree | dcd1aae71a2b91ac4c84b7e45adbf29ba782628d /libstd/utf.myr | |
parent | def0aab5b2b3a1c2326a6c593761e1f27a089601 (diff) | |
download | mc-8e46913c52cec95c1266ce8ee5ee2794eafc9364.tar.gz |
Add a constant for the maximum UTF size.
Diffstat (limited to 'libstd/utf.myr')
-rw-r--r-- | libstd/utf.myr | 1 |
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) |