ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/gentables
(Generate patch)

Comparing rxvt-unicode/src/gentables (file contents):
Revision 1.10 by ayin, Wed Oct 31 09:55:23 2007 UTC vs.
Revision 1.11 by root, Sat Apr 11 18:27:25 2015 UTC

93 $fun .= sprintf "if (· == 0x%04x) return 0x%04x;\n", $b + $_, $enc->[$b + $_]; 93 $fun .= sprintf "if (· == 0x%04x) return 0x%04x;\n", $b + $_, $enc->[$b + $_];
94 } 94 }
95 } elsif (linear $enc, $b + $l, $b + $h, $enc->[$b + $l]) { 95 } elsif (linear $enc, $b + $l, $b + $h, $enc->[$b + $l]) {
96 my $dif = $enc->[$b + $l] - ($b + $l); 96 my $dif = $enc->[$b + $l] - ($b + $l);
97 $dif = $dif < 0 ? sprintf "- 0x%04x", -$dif : sprintf "+ 0x%04x", $dif; 97 $dif = $dif < 0 ? sprintf "- 0x%04x", -$dif : sprintf "+ 0x%04x", $dif;
98 $fun .= sprintf "if (· <= 0x%04x && 0x%04x <= ·) return · %s;\n", $b + $l, $b + $h, $dif; 98 $fun .= sprintf "if (· >= 0x%04x && 0x%04x >= ·) return · %s;\n", $b + $l, $b + $h, $dif;
99 } elsif ($map2[$p] <= 5) { # defunct 99 } elsif ($map2[$p] <= 5) { # defunct
100 $fun .= "switch (·)\n {\n"; 100 $fun .= "switch (·)\n {\n";
101 for ($l .. $h) { 101 for ($l .. $h) {
102 next unless defined $enc->[$b + $_]; 102 next unless defined $enc->[$b + $_];
103 $fun .= sprintf " case 0x%04x: return 0x%04x;\n", $b + $_, $enc->[$b + $_]; 103 $fun .= sprintf " case 0x%04x: return 0x%04x;\n", $b + $_, $enc->[$b + $_];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines