summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appl/cmd/tr.b11
-rw-r--r--dis/tr.disbin3429 -> 3429 bytes
2 files changed, 5 insertions, 6 deletions
diff --git a/appl/cmd/tr.b b/appl/cmd/tr.b
index 60d4aa6c..73ffe28a 100644
--- a/appl/cmd/tr.b
+++ b/appl/cmd/tr.b
@@ -47,10 +47,9 @@ BITSET(a: array of byte, c: int): int
return int (a[c>>3] & bits[c&7]);
}
-MAXRUNE: con 16rFFFF;
-f := array[(MAXRUNE+1)/8] of byte;
-t := array[(MAXRUNE+1)/8] of byte;
+f := array[(Sys->Runemax+1)/8] of byte;
+t := array[(Sys->Runemax+1)/8] of byte;
pto, pfrom: ref Pcb;
@@ -128,7 +127,7 @@ delete()
SETBIT(t, c);
}
- last := MAXRUNE+1;
+ last := Sys->Runemax+1;
while ((c := ib.getc()) >= 0) {
if(!BITSET(f, c) && (c != last || !BITSET(t,c))) {
last = c;
@@ -164,7 +163,7 @@ complement()
p[i] = i;
}
if (sflag){
- lastc = MAXRUNE+1;
+ lastc = Sys->Runemax+1;
while ((from = ib.getc()) >= 0) {
if (from > high)
from = cto;
@@ -211,7 +210,7 @@ translit()
while ((cto := pto.canon()) >= 0)
SETBIT(t,cto);
if (sflag){
- lastc = MAXRUNE+1;
+ lastc = Sys->Runemax+1;
while ((from = ib.getc()) >= 0) {
if (from <= high)
from = p[from];
diff --git a/dis/tr.dis b/dis/tr.dis
index e1cd15e0..ccfdd14f 100644
--- a/dis/tr.dis
+++ b/dis/tr.dis
Binary files differ