mirror of
https://github.com/curl/curl.git
synced 2026-05-05 15:17:28 +03:00
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
This commit is contained in:
parent
95507f1dc8
commit
32d64b2e87
13 changed files with 332 additions and 332 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue