#define CLEARBIT(a,c) ((a)[(c)/8] &= ~bits[(c)&07])
#define BITSET(a,c) ((a)[(c)/8] & bits[(c)&07])
-#define MAXRUNE 0xFFFF
-
-uchar f[(MAXRUNE+1)/8];
-uchar t[(MAXRUNE+1)/8];
+uchar f[(Runemax+1)/8];
+uchar t[(Runemax+1)/8];
char wbuf[4096];
char *wptr;
SETBIT(t, c);
}
- last = 0x10000;
+ last = Runemax+1;
while (readrune(0, &c) > 0) {
if(!BITSET(f, c) && (c != last || !BITSET(t,c))) {
last = c;
else p[i] = i;
}
if (sflag){
- lastc = 0x10000;
+ lastc = Runemax+1;
while (readrune(0, &from) > 0) {
if (from > high)
from = to;
SETBIT(t,to);
}
if (sflag){
- lastc = 0x10000;
+ lastc = Runemax+1;
while (readrune(0, &from) > 0) {
if (from <= high)
from = p[from];