diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2013-06-06 21:01:54 +0000 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2013-06-06 21:01:54 +0000 |
| commit | 1f303b3397c4a329dd5193981151f1359b453232 (patch) | |
| tree | 38d6d40ecd3bb1b6b560265ed951f32a24d845ea /include/kern.h | |
| parent | 7ded4a527bdfd0e8b3a9049955f2af89e5f039ee (diff) | |
change Runeerror
Diffstat (limited to 'include/kern.h')
| -rw-r--r-- | include/kern.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/kern.h b/include/kern.h index cf268bff..d3d31f30 100644 --- a/include/kern.h +++ b/include/kern.h @@ -40,10 +40,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 = 0x80, /* decoding error in UTF */ + Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0x10FFFF, /* 21-bit rune */ + Runemask = 0x1FFFFF, /* bits used by runes (see grep) */ }; /* |
