adddocsref.pl: rename variable to avoid spelling exceptions

This commit is contained in:
Viktor Szakats 2025-07-12 11:18:21 +02:00
parent c79ed59e36
commit 9de25ee030
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 4 additions and 5 deletions

View file

@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: curl
admi
anc
anull
ba
bu

View file

@ -5,7 +5,7 @@
[default]
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)",
"(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|GOST|HELO|helo|htpt|PARM|PASE)",
"(HEADE|numer|optin|stati)",
"(Januar|passin|Passiv|perfec|PUNICODE|TEMPLAT|varius)",

View file

@ -36,9 +36,9 @@ for $f (@ARGV) {
# just ignore preciously added refs
}
elsif($l =~ /^( *).*curl_easy_setopt\([^,]*, *([^ ,]*) *,/) {
my ($prefix, $anc) = ($1, $2);
$anc =~ s/_//g;
print NEW "$prefix/* $docroot/curl_easy_setopt.html#$anc */\n";
my ($prefix, $anchor) = ($1, $2);
$anchor =~ s/_//g;
print NEW "$prefix/* $docroot/curl_easy_setopt.html#$anchor */\n";
print NEW $l;
}
elsif($l =~ /^( *).*(curl_([^\(]*))\(/) {