mirror of
https://github.com/curl/curl.git
synced 2026-07-30 12:58:04 +03:00
typecheck-gcc: add type checks for curl_multi_setopt()
Test 745 verifies that all options are tested. Closes #18357
This commit is contained in:
parent
b3570b36d7
commit
844c385812
2 changed files with 93 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue