summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-22 15:29:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-23 11:47:57 +0200
commit32d64b2e875f0d74cd433dff8bda9f8a98dcd44e (patch)
treedb6ada3797b657b4bb60fe408923d9dfa82cb84a /tests
parent95507f1dc8c159c05b34f96f7a7baf4e8a9a4106 (diff)
downloadgnurl-32d64b2e875f0d74cd433dff8bda9f8a98dcd44e.tar.gz
gnurl-32d64b2e875f0d74cd433dff8bda9f8a98dcd44e.tar.bz2
gnurl-32d64b2e875f0d74cd433dff8bda9f8a98dcd44e.zip
defines: avoid underscore-prefixed defines
Double-underscored or underscore plus uppercase letter at least. ... as they're claimed to be reserved. Reported-by: patnyb on github Fixes #4254 Closes #4255
Diffstat (limited to 'tests')
-rwxr-xr-xtests/symbol-scan.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/symbol-scan.pl b/tests/symbol-scan.pl
index 6706aa707..1379299d3 100755
--- a/tests/symbol-scan.pl
+++ b/tests/symbol-scan.pl
@@ -119,11 +119,13 @@ for my $e (sort @syms) {
# CURL_EXTERN - is a define used for libcurl functions that are external,
# public. No app or other code should ever use it.
#
+ # CURLINC_ - defines for header dual-include prevention, ignore those.
+ #
# *_LAST and *_LASTENTRY are just prefix for the placeholders used for the
# last entry in many enum series.
#
- if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) {
+ if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURLINC_|_LAST\z|_LASTENTRY\z)/) {
$ignored++;
next;
}