projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba073cf
)
regen/regcharclass.pl: Rename a variable
author
Karl Williamson
<public@khwilliamson.com>
Wed, 5 Sep 2012 16:26:22 +0000
(10:26 -0600)
committer
Karl Williamson
<public@khwilliamson.com>
Fri, 14 Sep 2012 03:14:03 +0000
(21:14 -0600)
I find it confusing that the array element name is the same as the full array
regen/regcharclass.pl
patch
|
blob
|
history
diff --git
a/regen/regcharclass.pl
b/regen/regcharclass.pl
index
f337729
..
9b84bd1
100755
(executable)
--- a/
regen/regcharclass.pl
+++ b/
regen/regcharclass.pl
@@
-562,10
+562,10
@@
sub _cond_as_str {
}
}
};
- for my $cond ( @$cond ) {
- if ( !@ranges || $cond != $ranges[-1][1] + 1 ) {
+ for my $cond
ition
( @$cond ) {
+ if ( !@ranges || $cond
ition
!= $ranges[-1][1] + 1 ) {
$Update->();
- push @ranges, [ $cond
, $cond
];
+ push @ranges, [ $cond
ition, $condition
];
} else {
$ranges[-1][1]++;
}