]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: fix header scan tools for attribute edits in mprintf.h
authorDaniel Stenberg <daniel@haxx.se>
Sun, 6 Aug 2023 20:29:11 +0000 (22:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 7 Aug 2023 08:46:13 +0000 (10:46 +0200)
tests/extern-scan.pl
tests/symbol-scan.pl

index 17b48423699e1312682f87fd6dd591594a36fdf7..d8f46ee3bad93dd5375f64b691b85d4d37f471c5 100755 (executable)
@@ -79,7 +79,7 @@ foreach my $f (@incs) {
     while(<H>) {
         s/CURL_DEPRECATED\(.*"\)//;
         s/  */ /g;
-        if (/^(^CURL_EXTERN .*)\(/) {
+        if (/^(^CURL_EXTERN .*?)\(/) {
             my $decl = $1;
             $decl =~ s/\r$//;
             $decl =~ /([a-z_]+)$/;
index 5c4f337d9b983a0748d7576d1534ffff3fc0bd06..2b9ac375960d69982bc20ff3dff3b53833b1e749 100755 (executable)
@@ -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;
     }