Remove C++ support from the public header
Since BIND 9 headers are not longer public, there's no reason to keep the ISC_LANG_BEGINDECL and ISC_LANG_ENDDECL macros to support including them from C++ projects.
This commit is contained in:
@@ -81,11 +81,6 @@ for (<>) {
|
||||
|
||||
# check use of macros without having included proper header for them.
|
||||
|
||||
if (/^(\Uisc\E_LANG_(BEGIN|END)DECLS)$/m &&
|
||||
! m%^#include <isc/lang\.h>$%m) {
|
||||
print "$file has $1 without <isc/lang.h>\n";
|
||||
}
|
||||
|
||||
if (/$nocomment.*ISC_EVENTCLASS_/m && ! m%^#include <isc/eventclass\.h>%m) {
|
||||
print "$file has ISC_EVENTCLASS_ without <isc/eventclass.h>\n"
|
||||
unless $file =~ m%isc/eventclass.h%;
|
||||
@@ -104,11 +99,6 @@ for (<>) {
|
||||
unless $file =~ m%\L$1\E/result.h%m;
|
||||
}
|
||||
|
||||
if (/^$nocomment(?!#define)[a-z].*([a-zA-Z0-9]\([^;]*\);)/m &&
|
||||
! m%^#include <isc/lang.h>%m) {
|
||||
print "$file has declarations without <isc/lang.h>\n";
|
||||
}
|
||||
|
||||
#
|
||||
# First see whether it can be compiled without any additional includes.
|
||||
# Only bother doing this for files that will be installed as public
|
||||
@@ -181,19 +171,6 @@ for (<>) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($elided eq "<isc/lang.h>") {
|
||||
if (! /^\Uisc\E_LANG_BEGINDECLS$/m) {
|
||||
print "$file includes <isc/lang.h> but " .
|
||||
"has no \Uisc\E_LANG_BEGINDECLS\n";
|
||||
} elsif (! /^\Uisc\E_LANG_ENDDECLS$/m) {
|
||||
print "$file has \Uisc\E_LANG_BEGINDECLS but " .
|
||||
"has no \Uisc\E_LANG_ENDDECLS\n";
|
||||
} elsif (! /^$nocomment(?!#define)[a-z].*([a-zA-Z0-9]\()/m) {
|
||||
print "$file has <isc/lang.h> apparently not function declarations\n";
|
||||
}
|
||||
next;
|
||||
}
|
||||
|
||||
if ($elided eq "<isc/eventclass.h>") {
|
||||
if (! /$nocomment.*ISC_EVENTCLASS_/m) {
|
||||
print "$file has <isc/eventclass.h> without ISC_EVENTCLASS_\n";
|
||||
|
||||
Reference in New Issue
Block a user