summaryrefslogtreecommitdiff
path: root/regcomp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regcomp.pl')
-rw-r--r--regcomp.pl9
1 files changed, 3 insertions, 6 deletions
diff --git a/regcomp.pl b/regcomp.pl
index 700268d83d..14c2eb7be2 100644
--- a/regcomp.pl
+++ b/regcomp.pl
@@ -55,12 +55,9 @@ while (<DESC>) {
}
}
-my ($width,$rwidth,$twidth)=(0,0,0);
-for (1..@name) {
- $width=length($name[$_]) if $name[$_] and $width<length($name[$_]);
- $twidth=length($type[$_]) if $type[$_] and $twidth<length($type[$_]);
- $rwidth=$width if $_ == $lastregop;
-}
+# use fixed width to keep the diffs between regcomp.pl recompiles
+# as small as possible.
+my ($width,$rwidth,$twidth)=(22,12,9);
$lastregop ||= $ind;
my $tot = $ind;
close DESC;