mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:03:36 +03:00
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:
parent
9e9adfddbf
commit
b81341e8f5
24 changed files with 409 additions and 468 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue