change Rune from ushort to uint for to 21 bit runes (thanks mischief!)
big big change. requires rebuilding 8c first and then rebuild everything.
This commit is contained in:
parent
e30f50283c
commit
a5e9641906
15 changed files with 24 additions and 24 deletions
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef uintptr jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -9,7 +9,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef uintptr jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef long long vlong;
|
|||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long uintptr;
|
||||
typedef unsigned long usize;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef long jmp_buf[2];
|
||||
#define JMPBUFSP 0
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/* 8 bit chars (signed), 16 bit shorts, 32 bit ints/longs */
|
||||
|
||||
#define CHAR_BIT 8
|
||||
#define MB_LEN_MAX 3
|
||||
#define MB_LEN_MAX 4
|
||||
|
||||
#define UCHAR_MAX 0xff
|
||||
#define USHRT_MAX 0xffff
|
||||
|
|
|
@ -12,7 +12,7 @@ typedef unsigned int uint;
|
|||
typedef signed char schar;
|
||||
typedef long long vlong;
|
||||
typedef unsigned long long uvlong;
|
||||
typedef ushort Rune;
|
||||
typedef uint Rune;
|
||||
typedef union FPdbleword FPdbleword;
|
||||
typedef char* p9va_list;
|
||||
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef unsigned short Rune; /* 16 bits */
|
||||
typedef unsigned int Rune; /* 32 bits */
|
||||
|
||||
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 */
|
||||
Runemax = 0x10FFFF, /* 21 bit rune */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -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) */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue