mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
test1135: sync with recent API updates
This test verifies that the order of functions in public headers remain the same but hasn't been updated to care for recently added header files. The order is important for some few platforms - or VERSIONINFO needs to updated. This fix also updates VERSIONINFO to be sure. Closes #8620
This commit is contained in:
parent
f07be5d1fa
commit
2e1ef61560
3 changed files with 110 additions and 80 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# | (__| |_| | _ <| |___
|
||||
# \___|\___/|_| \_\_____|
|
||||
#
|
||||
# Copyright (C) 2010 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
# Copyright (C) 2010 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
#
|
||||
# This software is licensed as described in the file COPYING, which
|
||||
# you should have received as part of this distribution. The terms
|
||||
|
|
@ -34,6 +34,9 @@ my @incs = (
|
|||
"$root/include/curl/easy.h",
|
||||
"$root/include/curl/mprintf.h",
|
||||
"$root/include/curl/multi.h",
|
||||
"$root/include/curl/urlapi.h",
|
||||
"$root/include/curl/options.h",
|
||||
"$root/include/curl/header.h",
|
||||
);
|
||||
|
||||
my $verbose=0;
|
||||
|
|
@ -47,12 +50,28 @@ my %rem;
|
|||
sub scanheader {
|
||||
my ($f)=@_;
|
||||
open H, "<$f" || die;
|
||||
my $first = "";
|
||||
while(<H>) {
|
||||
if (/^(CURL_EXTERN.*)/) {
|
||||
if (/^(^CURL_EXTERN .*)\(/) {
|
||||
my $decl = $1;
|
||||
$decl =~ s/\r$//;
|
||||
print "$decl\n";
|
||||
}
|
||||
elsif (/^(^CURL_EXTERN .*)/) {
|
||||
# handle two-line declarations
|
||||
my $decl = $1;
|
||||
$decl =~ s/\r$//;
|
||||
$first = $decl;
|
||||
}
|
||||
elsif($first) {
|
||||
if (/^(.*)\(/) {
|
||||
my $decl = $1;
|
||||
$decl =~ s/\r$//;
|
||||
$first .= $decl;
|
||||
print "$first\n";
|
||||
}
|
||||
$first = "";
|
||||
}
|
||||
}
|
||||
close H;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue