From: Daniel Stenberg Date: Sun, 6 Aug 2023 20:29:11 +0000 (+0200) Subject: tests: fix header scan tools for attribute edits in mprintf.h X-Git-Tag: curl-8_3_0~209 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f3d06ec393e089bbb39391b8ca5c0c46c48f68f;p=thirdparty%2Fcurl.git tests: fix header scan tools for attribute edits in mprintf.h --- diff --git a/tests/extern-scan.pl b/tests/extern-scan.pl index 17b4842369..d8f46ee3ba 100755 --- a/tests/extern-scan.pl +++ b/tests/extern-scan.pl @@ -79,7 +79,7 @@ foreach my $f (@incs) { while() { s/CURL_DEPRECATED\(.*"\)//; s/ */ /g; - if (/^(^CURL_EXTERN .*)\(/) { + if (/^(^CURL_EXTERN .*?)\(/) { my $decl = $1; $decl =~ s/\r$//; $decl =~ /([a-z_]+)$/; diff --git a/tests/symbol-scan.pl b/tests/symbol-scan.pl index 5c4f337d9b..2b9ac37596 100755 --- a/tests/symbol-scan.pl +++ b/tests/symbol-scan.pl @@ -170,11 +170,13 @@ for my $e (sort @syms) { # # CURLINC_ - defines for header dual-include prevention, ignore those. # + # CURL_TEMP_ - are defined and *undefined* again within the file + # # *_LAST and *_LASTENTRY are just prefix for the placeholders used for the # last entry in many enum series. # - if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURLINC_|_LAST\z|_LASTENTRY\z)/) { + if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURLINC_|_LAST\z|_LASTENTRY\z|^CURL_TEMP_)/) { $ignored++; next; }