tidy-up: Markdown, clang-format nits

- drop leading indent from Markdown.
- switch to Markdown section markers where missing.
- move `&&` and `||` to the end of the line (C, Perl).
- openssl: add parenthesis to an if sub-expression.
- misc clang-format nits.
- unfold Markdown links.
- SSL-PROBLEMS.md: drop stray half code-fence.

Closes #20402
This commit is contained in:
Viktor Szakats 2026-01-21 00:44:39 +01:00
parent 9e9adfddbf
commit b81341e8f5
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
24 changed files with 409 additions and 468 deletions

View file

@ -72,9 +72,9 @@ BEGIN {
#
{
# Cached static variable, Perl 5.0-compatible.
my $is_win = $^O eq 'MSWin32'
|| $^O eq 'cygwin'
|| $^O eq 'msys';
my $is_win = $^O eq 'MSWin32' ||
$^O eq 'cygwin' ||
$^O eq 'msys';
# Returns boolean true if OS is any form of Windows.
sub os_is_win {

View file

@ -33,8 +33,7 @@ my %typecheck; # from the include file
my %enum; # from libcurl-errors.3
sub gettypecheck {
open(my $f, "<", "$root/include/curl/typecheck-gcc.h")
|| die "no typecheck file";
open(my $f, "<", "$root/include/curl/typecheck-gcc.h") || die "no typecheck file";
while(<$f>) {
chomp;
if($_ =~ /\(option\) == (CURL[^ \)]*)/) {
@ -46,8 +45,7 @@ sub gettypecheck {
sub getinclude {
my $f;
open($f, "<", "$root/include/curl/curl.h")
|| die "no curl.h";
open($f, "<", "$root/include/curl/curl.h") || die "no curl.h";
while(<$f>) {
if($_ =~ /\((CURLOPT[^,]*), (CURLOPTTYPE_[^,]*)/) {
my ($opt, $type) = ($1, $2);
@ -62,8 +60,7 @@ sub getinclude {
$enum{"CURLOPT_CONV_TO_NETWORK_FUNCTION"}++;
close($f);
open($f, "<", "$root/include/curl/multi.h")
|| die "no curl.h";
open($f, "<", "$root/include/curl/multi.h") || die "no curl.h";
while(<$f>) {
if($_ =~ /\((CURLMOPT[^,]*), (CURLOPTTYPE_[^,]*)/) {
my ($opt, $type) = ($1, $2);