postscript: update for 32-bit Rune
http://codereview.appspot.com/117062
This commit is contained in:
parent
37c9485968
commit
a21158473d
1 changed files with 1 additions and 13 deletions
|
|
@ -4,16 +4,4 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define RUNELIB 1
|
#include <utf.h>
|
||||||
|
|
||||||
#ifdef RUNELIB
|
|
||||||
typedef unsigned short Rune;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
UTFmax = 3, /* 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 */
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue