tpostscript: update for 32-bit Rune - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit a21158473db3261329f14e565e3bcc257cc8ccc2
DIR parent 37c9485968da09d0412b2c1297e9c325789476a3
HTML Author: Russ Cox <rsc@swtch.com>
Date: Sun, 13 Sep 2009 17:42:33 -0400
postscript: update for 32-bit Rune
http://codereview.appspot.com/117062
Diffstat:
M src/cmd/postscript/common/rune.h | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
---
DIR diff --git a/src/cmd/postscript/common/rune.h b/src/cmd/postscript/common/rune.h
t@@ -4,16 +4,4 @@
*
*/
-#define RUNELIB 1
-
-#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
+#include <utf.h>