mirror of
https://github.com/curl/curl.git
synced 2025-09-15 00:22:42 +03:00
tests: fix header scan tools for attribute edits in mprintf.h
This commit is contained in:
parent
80ea7f7fc2
commit
4f3d06ec39
|
@ -79,7 +79,7 @@ foreach my $f (@incs) {
|
||||||
while(<H>) {
|
while(<H>) {
|
||||||
s/CURL_DEPRECATED\(.*"\)//;
|
s/CURL_DEPRECATED\(.*"\)//;
|
||||||
s/ */ /g;
|
s/ */ /g;
|
||||||
if (/^(^CURL_EXTERN .*)\(/) {
|
if (/^(^CURL_EXTERN .*?)\(/) {
|
||||||
my $decl = $1;
|
my $decl = $1;
|
||||||
$decl =~ s/\r$//;
|
$decl =~ s/\r$//;
|
||||||
$decl =~ /([a-z_]+)$/;
|
$decl =~ /([a-z_]+)$/;
|
||||||
|
|
|
@ -170,11 +170,13 @@ for my $e (sort @syms) {
|
||||||
#
|
#
|
||||||
# CURLINC_ - defines for header dual-include prevention, ignore those.
|
# 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 and *_LASTENTRY are just prefix for the placeholders used for the
|
||||||
# last entry in many enum series.
|
# 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++;
|
$ignored++;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user