mirror of
https://github.com/curl/curl.git
synced 2026-06-06 12:54:17 +03:00
test1173.pl: rename variable to avoid type hit
This commit is contained in:
parent
2bf9c4f247
commit
3ac6df7f7c
2 changed files with 6 additions and 6 deletions
2
.github/scripts/typos.toml
vendored
2
.github/scripts/typos.toml
vendored
|
|
@ -6,7 +6,7 @@
|
|||
extend-ignore-identifiers-re = [
|
||||
"(ba|BA|fo|Fo|FU|Iy|ND|OT|pn|PN|ue|UE)",
|
||||
"(anc|bck|ben|CNA|ECT|EDE|edn|ein|Jod|kno|MEK|Nam|Ned|noo|nin|nto|ser|ths|Typ|typ|URE|wrk)",
|
||||
"(admi|alue|CLEA|clen|dout|GOST|HELO|helo|htpt|inex|PARM|parm|PASE)",
|
||||
"(admi|alue|CLEA|clen|dout|GOST|HELO|helo|htpt|PARM|parm|PASE)",
|
||||
"(HEADE|numer|optin|parms|stati|ttests)",
|
||||
"(Januar|passin|Passiv|perfec|PUNICODE|TEMPLAT|varius)",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ sub scanmanpage {
|
|||
my ($file) = @_;
|
||||
my $reqex = 0;
|
||||
my $inseealso = 0;
|
||||
my $inex = 0;
|
||||
my $inexample = 0;
|
||||
my $insynop = 0;
|
||||
my $exsize = 0;
|
||||
my $synopsize = 0;
|
||||
|
|
@ -166,18 +166,18 @@ sub scanmanpage {
|
|||
if(($_ =~ /^\.SH SYNOPSIS/i) && ($reqex)) {
|
||||
# this is for libcurl manpage SYNOPSIS checks
|
||||
$insynop = 1;
|
||||
$inex = 0;
|
||||
$inexample = 0;
|
||||
}
|
||||
elsif($_ =~ /^\.SH EXAMPLE/i) {
|
||||
$insynop = 0;
|
||||
$inex = 1;
|
||||
$inexample = 1;
|
||||
}
|
||||
elsif($_ =~ /^\.SH \"SEE ALSO\"/i) {
|
||||
$inseealso = 1;
|
||||
}
|
||||
elsif($_ =~ /^\.SH/i) {
|
||||
$insynop = 0;
|
||||
$inex = 0;
|
||||
$inexample = 0;
|
||||
}
|
||||
elsif($inseealso) {
|
||||
if($_ =~ /^\.BR (.*)/i) {
|
||||
|
|
@ -206,7 +206,7 @@ sub scanmanpage {
|
|||
}
|
||||
}
|
||||
}
|
||||
elsif($inex) {
|
||||
elsif($inexample) {
|
||||
$exsize++;
|
||||
if($_ =~ /[^\\]\\n/) {
|
||||
print STDERR "$file:$line '\\n' need to be '\\\\n'!\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue