diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-17 12:02:45 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-17 12:02:45 +0200 |
commit | a5e964190697f7367e92628620baaee370c32f88 (patch) | |
tree | f0fc96abf5b9052a503d7bfe6af9025941dc8feb /sys/include/libc.h | |
parent | e30f50283c60e21763aa28def66deab70ae12187 (diff) |
change Rune from ushort to uint for to 21 bit runes (thanks mischief!)
big big change. requires rebuilding 8c first and then rebuild
everything.
Diffstat (limited to 'sys/include/libc.h')
-rw-r--r-- | sys/include/libc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/include/libc.h b/sys/include/libc.h index a92e5680d..1300d46d5 100644 --- a/sys/include/libc.h +++ b/sys/include/libc.h @@ -41,12 +41,12 @@ extern int tokenize(char*, char**, int); enum { - UTFmax = 3, /* maximum bytes per rune */ + UTFmax = 4, /* maximum bytes per rune */ Runesync = 0x80, /* cannot represent part of a UTF sequence (<) */ Runeself = 0x80, /* rune and UTF sequences are the same (<) */ Runeerror = 0xFFFD, /* decoding error in UTF */ - Runemax = 0xFFFF, /* 16 bit rune */ - Runemask = 0xFFFF, /* bits used by runes (see grep) */ + Runemax = 0x10FFFF, /* 21 bit rune */ + Runemask = 0x1FFFFF, /* bits used by runes (see grep) */ }; /* |