]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/tr.c
make all the commands agnostic about Rune width. (from sources)
[plan9front.git] / sys / src / cmd / tr.c
index adea05c25bdbad8d5fa608d500e8de2304d6e97f..85c76935bb3f1376b7d2df5bdfb46e8e9a4a784d 100644 (file)
@@ -15,10 +15,8 @@ uchar        bits[] = { 1, 2, 4, 8, 16, 32, 64, 128 };
 #define        CLEARBIT(a,c)           ((a)[(c)/8] &= ~bits[(c)&07])
 #define        BITSET(a,c)             ((a)[(c)/8] & bits[(c)&07])
 
-#define        MAXRUNE Runemax
-
-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;