mirror of
https://github.com/curl/curl.git
synced 2026-07-29 03:03:08 +03:00
tidy-up: add spaces around equal operators where missing
Found via regex search: `=[^~>= ]` Closes #21975
This commit is contained in:
parent
2a606c68fa
commit
e35ba09f47
56 changed files with 593 additions and 596 deletions
|
|
@ -30,7 +30,7 @@ use warnings;
|
|||
|
||||
use File::Copy;
|
||||
|
||||
my $docroot="https://curl.se/libcurl/c";
|
||||
my $docroot = "https://curl.se/libcurl/c";
|
||||
|
||||
for my $f (@ARGV) {
|
||||
open(NEW, ">$f.new");
|
||||
|
|
|
|||
|
|
@ -47,15 +47,15 @@ my %doc;
|
|||
my %rem;
|
||||
while(<S>) {
|
||||
if(/(^CURL[^ \n]*) *(.*)/) {
|
||||
my ($sym, $rest)=($1, $2);
|
||||
my @a=split(/ +/, $rest);
|
||||
my ($sym, $rest) = ($1, $2);
|
||||
my @a = split(/ +/, $rest);
|
||||
|
||||
$doc{$sym}=$a[0]; # when it was introduced
|
||||
$doc{$sym} = $a[0]; # when it was introduced
|
||||
|
||||
if($a[2]) {
|
||||
# this symbol is documented to have been present the last time
|
||||
# in this release
|
||||
$rem{$sym}=$a[2];
|
||||
$rem{$sym} = $a[2];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -63,9 +63,9 @@ while(<S>) {
|
|||
close(S);
|
||||
|
||||
sub age {
|
||||
my ($ver)=@_;
|
||||
my ($ver) = @_;
|
||||
|
||||
my @s=split(/\./, $ver);
|
||||
my @s = split(/\./, $ver);
|
||||
return $s[0]*10000+$s[1]*100+($s[2] || 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue