typecheck-gcc: add type checks for curl_multi_setopt()

Test 745 verifies that all options are tested.

Closes #18357
This commit is contained in:
Daniel Stenberg 2025-08-22 15:54:10 +02:00
parent b3570b36d7
commit 844c385812
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 93 additions and 1 deletions

View file

@ -60,6 +60,18 @@ sub getinclude {
$enum{"CURLOPT_CONV_FROM_UTF8_FUNCTION"}++;
$enum{"CURLOPT_CONV_TO_NETWORK_FUNCTION"}++;
close($f);
open(my $f, "<", "$root/include/curl/multi.h")
|| die "no curl.h";
while(<$f>) {
if($_ =~ /\((CURLMOPT[^,]*), (CURLOPTTYPE_[^,]*)/) {
my ($opt, $type) = ($1, $2);
if($type !~ /LONG|OFF_T/) {
$enum{$opt}++;
}
}
}
close($f);
}
gettypecheck();