]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove C++ support from the public header
authorOndřej Surý <ondrej@isc.org>
Wed, 18 Dec 2024 11:00:54 +0000 (12:00 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 18 Dec 2024 12:10:39 +0000 (13:10 +0100)
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.

201 files changed:
bin/check/check-tool.h
bin/confgen/include/confgen/os.h
bin/confgen/keygen.h
bin/confgen/util.h
bin/dig/dighost.c
bin/dig/dighost.h
bin/named/include/named/builtin.h
bin/named/include/named/tkeyconf.h
bin/named/include/named/transportconf.h
bin/named/include/named/tsigconf.h
bin/named/include/named/zoneconf.h
bin/rndc/util.h
doc/dev/style.md
fuzz/fuzz.h
lib/dns/db_p.h
lib/dns/dst_internal.h
lib/dns/dst_openssl.h
lib/dns/dst_parse.h
lib/dns/include/dns/acl.h
lib/dns/include/dns/adb.h
lib/dns/include/dns/badcache.h
lib/dns/include/dns/byaddr.h
lib/dns/include/dns/cache.h
lib/dns/include/dns/callbacks.h
lib/dns/include/dns/catz.h
lib/dns/include/dns/cert.h
lib/dns/include/dns/client.h
lib/dns/include/dns/clientinfo.h
lib/dns/include/dns/compress.h
lib/dns/include/dns/db.h
lib/dns/include/dns/dbiterator.h
lib/dns/include/dns/diff.h
lib/dns/include/dns/dispatch.h
lib/dns/include/dns/dlz.h
lib/dns/include/dns/dlz_dlopen.h
lib/dns/include/dns/dns64.h
lib/dns/include/dns/dnssec.h
lib/dns/include/dns/ds.h
lib/dns/include/dns/dsdigest.h
lib/dns/include/dns/dyndb.h
lib/dns/include/dns/ecs.h
lib/dns/include/dns/fixedname.h
lib/dns/include/dns/forward.h
lib/dns/include/dns/geoip.h
lib/dns/include/dns/iptable.h
lib/dns/include/dns/journal.h
lib/dns/include/dns/kasp.h
lib/dns/include/dns/keydata.h
lib/dns/include/dns/keyflags.h
lib/dns/include/dns/keymgr.h
lib/dns/include/dns/keystore.h
lib/dns/include/dns/keytable.h
lib/dns/include/dns/master.h
lib/dns/include/dns/masterdump.h
lib/dns/include/dns/message.h
lib/dns/include/dns/name.h
lib/dns/include/dns/nametree.h
lib/dns/include/dns/ncache.h
lib/dns/include/dns/nsec.h
lib/dns/include/dns/nsec3.h
lib/dns/include/dns/nta.h
lib/dns/include/dns/opcode.h
lib/dns/include/dns/order.h
lib/dns/include/dns/peer.h
lib/dns/include/dns/private.h
lib/dns/include/dns/rcode.h
lib/dns/include/dns/rdata.h
lib/dns/include/dns/rdataclass.h
lib/dns/include/dns/rdatalist.h
lib/dns/include/dns/rdataset.h
lib/dns/include/dns/rdatasetiter.h
lib/dns/include/dns/rdataslab.h
lib/dns/include/dns/rdatatype.h
lib/dns/include/dns/remote.h
lib/dns/include/dns/request.h
lib/dns/include/dns/resolver.h
lib/dns/include/dns/result.h
lib/dns/include/dns/rootns.h
lib/dns/include/dns/rpz.h
lib/dns/include/dns/rriterator.h
lib/dns/include/dns/rrl.h
lib/dns/include/dns/sdlz.h
lib/dns/include/dns/secalg.h
lib/dns/include/dns/secproto.h
lib/dns/include/dns/skr.h
lib/dns/include/dns/soa.h
lib/dns/include/dns/ssu.h
lib/dns/include/dns/stats.h
lib/dns/include/dns/time.h
lib/dns/include/dns/tkey.h
lib/dns/include/dns/tsig.h
lib/dns/include/dns/ttl.h
lib/dns/include/dns/update.h
lib/dns/include/dns/validator.h
lib/dns/include/dns/view.h
lib/dns/include/dns/xfrin.h
lib/dns/include/dns/zone.h
lib/dns/include/dns/zonekey.h
lib/dns/include/dns/zoneverify.h
lib/dns/include/dns/zt.h
lib/dns/include/dst/dst.h
lib/dns/include/dst/gssapi.h
lib/dns/include/irs/resconf.h
lib/dns/qpcache_p.h
lib/dns/qpzone_p.h
lib/dns/rdata/generic/avc_258.h
lib/dns/rdata/generic/ninfo_56.h
lib/dns/rdata/generic/opt_41.h
lib/dns/rdata/generic/resinfo_261.h
lib/dns/rdata/generic/spf_99.h
lib/dns/rdata/generic/txt_16.h
lib/dns/rdata/generic/wallet_262.h
lib/dns/rdata/in_1/apl_42.h
lib/dns/rdata/rdatastructpre.h
lib/dns/rdata/rdatastructsuf.h
lib/dns/tsig_p.h
lib/dns/zone_p.h
lib/isc/Makefile.am
lib/isc/errno2result.h
lib/isc/include/isc/assertions.h
lib/isc/include/isc/async.h
lib/isc/include/isc/backtrace.h
lib/isc/include/isc/base32.h
lib/isc/include/isc/base64.h
lib/isc/include/isc/buffer.h
lib/isc/include/isc/commandline.h
lib/isc/include/isc/condition.h
lib/isc/include/isc/counter.h
lib/isc/include/isc/dir.h
lib/isc/include/isc/entropy.h
lib/isc/include/isc/errno.h
lib/isc/include/isc/error.h
lib/isc/include/isc/file.h
lib/isc/include/isc/fips.h
lib/isc/include/isc/getaddresses.h
lib/isc/include/isc/hash.h
lib/isc/include/isc/heap.h
lib/isc/include/isc/helper.h
lib/isc/include/isc/hex.h
lib/isc/include/isc/hmac.h
lib/isc/include/isc/interfaceiter.h
lib/isc/include/isc/iterated_hash.h
lib/isc/include/isc/job.h
lib/isc/include/isc/lang.h [deleted file]
lib/isc/include/isc/lex.h
lib/isc/include/isc/log.h
lib/isc/include/isc/loop.h
lib/isc/include/isc/md.h
lib/isc/include/isc/mem.h
lib/isc/include/isc/meminfo.h
lib/isc/include/isc/mutex.h
lib/isc/include/isc/mutexblock.h
lib/isc/include/isc/net.h
lib/isc/include/isc/netaddr.h
lib/isc/include/isc/netscope.h
lib/isc/include/isc/nonce.h
lib/isc/include/isc/os.h
lib/isc/include/isc/parseint.h
lib/isc/include/isc/portset.h
lib/isc/include/isc/proxy2.h
lib/isc/include/isc/quota.h
lib/isc/include/isc/random.h
lib/isc/include/isc/ratelimiter.h
lib/isc/include/isc/refcount.h
lib/isc/include/isc/regex.h
lib/isc/include/isc/region.h
lib/isc/include/isc/result.h
lib/isc/include/isc/rwlock.h
lib/isc/include/isc/safe.h
lib/isc/include/isc/serial.h
lib/isc/include/isc/signal.h
lib/isc/include/isc/siphash.h
lib/isc/include/isc/sockaddr.h
lib/isc/include/isc/spinlock.h
lib/isc/include/isc/stats.h
lib/isc/include/isc/stdio.h
lib/isc/include/isc/stdtime.h
lib/isc/include/isc/string.h
lib/isc/include/isc/symtab.h
lib/isc/include/isc/syslog.h
lib/isc/include/isc/thread.h
lib/isc/include/isc/tid.h
lib/isc/include/isc/time.h
lib/isc/include/isc/timer.h
lib/isc/include/isc/tm.h
lib/isc/include/isc/utf8.h
lib/isc/include/isc/work.h
lib/isc/loop_p.h
lib/isc/tid.c
lib/isccc/include/isccc/alist.h
lib/isccc/include/isccc/base64.h
lib/isccc/include/isccc/cc.h
lib/isccc/include/isccc/ccmsg.h
lib/isccc/include/isccc/sexpr.h
lib/isccc/include/isccc/symtab.h
lib/isccfg/include/isccfg/aclconf.h
lib/isccfg/include/isccfg/cfg.h
lib/isccfg/include/isccfg/check.h
lib/isccfg/include/isccfg/duration.h
lib/isccfg/include/isccfg/kaspconf.h
util/check-includes.pl

index b8da20324e432c7db24ebe66a3e7f54355e90f0b..7e8f946268ed698f92a2971e5e7ec57c44f5c748 100644 (file)
@@ -18,7 +18,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/stdio.h>
 #include <isc/types.h>
 
@@ -26,8 +25,6 @@
 #include <dns/types.h>
 #include <dns/zone.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 setup_logging(FILE *errout);
 
@@ -48,5 +45,3 @@ extern bool docheckmx;
 extern bool docheckns;
 extern bool dochecksrv;
 extern dns_zoneopt_t zone_options;
-
-ISC_LANG_ENDDECLS
index 2a924a30b1ad4df5c07b4282b7348101c4439f3a..f004a71a53a2eef109f01479babeeda5de6bfa8e 100644 (file)
 
 #include <stdio.h>
 
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
-
 int
 set_user(FILE *fd, const char *user);
 /*%<
@@ -29,5 +25,3 @@ set_user(FILE *fd, const char *user);
  *   0                 success
  *   -1        insufficient permissions, or 'user' does not exist.
  */
-
-ISC_LANG_ENDDECLS
index f5b7a551cd0bddbd8b298c6b6f39ed1208805a13..7a8ca3a4b09354ed0eb5da9d7631a6e27c6166f6 100644 (file)
 /*! \file */
 
 #include <isc/buffer.h>
-#include <isc/lang.h>
 #include <isc/mem.h>
 
 #include <dns/secalg.h>
 
-ISC_LANG_BEGINDECLS
-
 void
 generate_key(isc_mem_t *mctx, dns_secalg_t alg, int keysize,
             isc_buffer_t *key_txtbuffer);
@@ -37,5 +34,3 @@ dns_secalg_t
 alg_fromtext(const char *name);
 int
 alg_bits(dns_secalg_t alg);
-
-ISC_LANG_ENDDECLS
index 0567ad33b1dd13c339ee516b67e76dc98d9d4505..3300edad26dd1cec540fb92dc9c09badb9ff4ab9 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <isc/attributes.h>
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 
 #define NS_CONTROL_PORT 953
 
                        notify("%s", name);                               \
        } while (0)
 
-ISC_LANG_BEGINDECLS
-
 void
 notify(const char *fmt, ...) ISC_FORMAT_PRINTF(1, 2);
 
 ISC_NORETURN void
 fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
-
-ISC_LANG_ENDDECLS
index 6091445a7916e9ae36573c33542e44b5f44a12b9..efe4837e919759add1deae7b367c2e85e07377a0 100644 (file)
@@ -40,7 +40,6 @@
 #include <isc/file.h>
 #include <isc/getaddresses.h>
 #include <isc/hex.h>
-#include <isc/lang.h>
 #include <isc/log.h>
 #include <isc/loop.h>
 #include <isc/managers.h>
index 56842f941973de9d96bef33e7b37f6fbdcad9c38..81ce6b609d0eecb8cab16064c1b963f3eb47341b 100644 (file)
@@ -21,7 +21,6 @@
 #include <isc/attributes.h>
 #include <isc/buffer.h>
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 #include <isc/list.h>
 #include <isc/loop.h>
 #include <isc/magic.h>
@@ -85,8 +84,6 @@
  * in a tight loop of constant lookups.  It's value is arbitrary.
  */
 
-ISC_LANG_BEGINDECLS
-
 typedef struct dig_lookup dig_lookup_t;
 typedef struct dig_query dig_query_t;
 typedef struct dig_server dig_server_t;
@@ -466,5 +463,3 @@ dig_shutdown(void);
 
 bool
 dig_lookup_is_tls(const dig_lookup_t *lookup);
-
-ISC_LANG_ENDDECLS
index 688510137c39a3a7eac46bf6decc7edd95cfcd5a..bf0ac43fb580883a2aa3cd7213ae38aa91460313 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <dns/clientinfo.h>
index 79639d625adb44646ab00009b9306905b3e44ced..ad6a297dacbcf5dbd612cbff7e5348c2b87fe959 100644 (file)
 
 /*! \file */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <isccfg/cfg.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 named_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
                         dns_tkeyctx_t **tctxp);
@@ -39,5 +36,3 @@ named_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
  *\li          ISC_R_SUCCESS
  *\li          ISC_R_NOMEMORY
  */
-
-ISC_LANG_ENDDECLS
index 1e472ff45fe4552acec4d653cf393dacbeba8fa2..a377c0300cfcd783966186d36a1522d856af4bfa 100644 (file)
 
 /*! \file */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <dns/transport.h>
 
 #include <isccfg/cfg.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 named_transports_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
                            isc_mem_t *mctx, dns_transport_list_t **listp);
@@ -39,5 +36,3 @@ named_transports_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
  *     \li     'listp' is not NULL, and '*listp' is NULL
  *
  */
-
-ISC_LANG_ENDDECLS
index 240eebe130ab1650bd2a7921baa3078f88e8afb4..7adaf2ed8ba8e9f1b815ee10c3cd3f958195cda4 100644 (file)
 
 /*! \file */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 named_tsigkeyring_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
                             isc_mem_t *mctx, dns_tsigkeyring_t **ringp);
@@ -37,5 +34,3 @@ named_tsigkeyring_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
  *     \li     ISC_R_SUCCESS
  *     \li     ISC_R_NOMEMORY
  */
-
-ISC_LANG_ENDDECLS
index 1eb059b25a0c6928c31047e44dd33db1b29f2d5f..a10a650fc7a464bb04f35d29653dad53ccc362bc 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <isccfg/aclconf.h>
 #include <isccfg/cfg.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
                     const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
@@ -76,5 +73,3 @@ named_zone_configure_writeable_dlz(dns_dlzdb_t *dlzdatabase, dns_zone_t *zone,
  * \li 'rdclass' to be a valid rdataclass
  * \li 'name' to be a valid zone origin name
  */
-
-ISC_LANG_ENDDECLS
index 0567ad33b1dd13c339ee516b67e76dc98d9d4505..3300edad26dd1cec540fb92dc9c09badb9ff4ab9 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <isc/attributes.h>
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 
 #define NS_CONTROL_PORT 953
 
                        notify("%s", name);                               \
        } while (0)
 
-ISC_LANG_BEGINDECLS
-
 void
 notify(const char *fmt, ...) ISC_FORMAT_PRINTF(1, 2);
 
 ISC_NORETURN void
 fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
-
-ISC_LANG_ENDDECLS
index 8115f67e5ed4df8c7352617676aac793e741142d..1a9714f096436ba4ad6706fc0c3449dc166fbcf8 100644 (file)
@@ -180,14 +180,6 @@ within a library but not for public use, are kept in the source tree at the
 same level as their related C files, and often have `"_p"` in their names,
 e.g. `lib/isc/mem_p.h`.
 
-Header files that define modules should have a structure like the
-following.  Note that `<isc/lang.h>` MUST be included by any public header
-file using the ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS macros, so the
-correct name-mangling happens for function declarations when C++ programs
-include the file.  `<isc/lang.h>` SHOULD be included for private header files
-or for public files that do not declare any functions.
-
-
         /*
          * Copyright (C) 2016  Internet Systems Consortium, Inc. ("ISC")
          *
@@ -231,7 +223,6 @@ or for public files that do not declare any functions.
          ***/
 
         /* #includes here. */
-        #include <isc/lang.h>
 
         /***
          *** Types
@@ -242,9 +233,7 @@ or for public files that do not declare any functions.
         /***
          *** Functions
          ***/
-        ISC_LANG_BEGINDECLS
         /* (Function declarations here, with full prototypes.) */
-        ISC_LANG_ENDDECLS
 
 #### Including Interfaces (.h files)
 
index b34c6a26d7267cfd39b1cd1a1161170e748dd05f..7f8a2f1feb4a7a471457afe15569e96429ee7e50 100644 (file)
@@ -18,7 +18,6 @@
 #include <stdint.h>
 
 #include <isc/dir.h>
-#include <isc/lang.h>
 #include <isc/mem.h>
 #include <isc/once.h>
 #include <isc/types.h>
@@ -26,8 +25,6 @@
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 extern bool debug;
 
 int
@@ -40,5 +37,3 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
        if ((x) != ISC_R_SUCCESS) { \
                return (0);         \
        }
-
-ISC_LANG_ENDDECLS
index bfad169252ffb0299f52964d5dd3530b191e690f..b1e0460b5dd177568a463fa2828f0b6345a7f4f0 100644 (file)
@@ -14,7 +14,6 @@
 #pragma once
 
 #include <isc/heap.h>
-#include <isc/lang.h>
 #include <isc/urcu.h>
 
 #include <dns/nsec3.h>
 #define IS_STUB(db)  (((db)->common.attributes & DNS_DBATTR_STUB) != 0)
 #define IS_CACHE(db) (((db)->common.attributes & DNS_DBATTR_CACHE) != 0)
 
-ISC_LANG_BEGINDECLS
-
 struct dns_glue {
        struct dns_glue *next;
        dns_name_t name;
@@ -204,5 +201,3 @@ dns__db_logtoomanyrecords(dns_db_t *db, const dns_name_t *name,
  * 'maxrrperset' limit. 'op' is 'adding' or 'updating' depending on whether
  * the addition is to create a new rdataset or to merge to an existing one.
  */
-
-ISC_LANG_ENDDECLS
index 988d14cf9c23af696cc51de29c68563f14c25e41..cc57468f4f8b566f48ec8611bd7164c7032a6554 100644 (file)
@@ -39,7 +39,6 @@
 
 #include <isc/buffer.h>
 #include <isc/hmac.h>
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/md.h>
 #include <isc/refcount.h>
@@ -51,8 +50,6 @@
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 #define KEY_MAGIC ISC_MAGIC('D', 'S', 'T', 'K')
 #define CTX_MAGIC ISC_MAGIC('D', 'S', 'T', 'C')
 
@@ -227,6 +224,4 @@ dst_key_close(char *tmpname, FILE *fp, char *filename);
 isc_result_t
 dst_key_cleanup(char *tmpname, FILE *fp);
 
-ISC_LANG_ENDDECLS
-
 /*! \file */
index a7c796897eef73853aad50507cc8b7b8d1d8eaf7..8d57211af2daea469a83290e62f28e73b6c3f878 100644 (file)
 #include <openssl/evp.h>
 #include <openssl/rand.h>
 
-#include <isc/lang.h>
 #include <isc/log.h>
 #include <isc/result.h>
 #include <isc/tls.h>
 
-ISC_LANG_BEGINDECLS
-
 #define dst__openssl_toresult(fallback)                                    \
        isc__tlserr2result(ISC_LOGCATEGORY_INVALID, ISC_LOGMODULE_INVALID, \
                           NULL, fallback, __FILE__, __LINE__)
@@ -49,5 +46,3 @@ dst__openssl_keypair_isprivate(const dst_key_t *key);
 
 void
 dst__openssl_keypair_destroy(dst_key_t *key);
-
-ISC_LANG_ENDDECLS
index 8703810ff75eb93ecb08c1e530b1e89e7d417b2f..80612ec253faf8bcbb1968573b5c02fd457aded6 100644 (file)
@@ -30,8 +30,6 @@
 /*! \file */
 #pragma once
 
-#include <isc/lang.h>
-
 #include <dst/dst.h>
 
 #define MAXFIELDSIZE 512
@@ -109,8 +107,6 @@ struct dst_private {
 
 typedef struct dst_private dst_private_t;
 
-ISC_LANG_BEGINDECLS
-
 void
 dst__privstruct_free(dst_private_t *priv, isc_mem_t *mctx);
 
@@ -121,5 +117,3 @@ dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex,
 isc_result_t
 dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
                          const char *directory);
-
-ISC_LANG_ENDDECLS
index 7ad2e53a39212c34bebb5ad64905093c4cce27f6..bf11af019f1c4ac89d68afeb3b6f3481900dfca1 100644 (file)
@@ -30,7 +30,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/netaddr.h>
 #include <isc/refcount.h>
@@ -118,8 +117,6 @@ struct dns_aclenv {
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_acl_create(isc_mem_t *mctx, int n, dns_acl_t **target);
 /*%<
@@ -312,5 +309,3 @@ dns_acl_merge_ports_transports(dns_acl_t *dest, dns_acl_t *source, bool pos);
  *\li          'dest' is a valid ACL object;
  *\li          'source' is a valid ACL object.
  */
-
-ISC_LANG_ENDDECLS
index 585f0f6c9b5e74ffded6b291d88912142ea73848..87902a3277831c616f81ee76ffe0c269331e5366 100644 (file)
@@ -66,7 +66,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/mem.h>
 #include <isc/mutex.h>
@@ -75,8 +74,6 @@
 #include <dns/types.h>
 #include <dns/view.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Magic number checks
  ***/
@@ -754,4 +751,3 @@ dns_adb_dumpquota(dns_adb_t *adb, isc_buffer_t **buf);
  * Requires:
  * \li 'adb' is valid.
  */
-ISC_LANG_ENDDECLS
index 7552decef1ea753685c53c0550907e7ad0ee4ce6..1568ce7e00e3bff44995206426ed89e02bb71f01 100644 (file)
@@ -51,8 +51,6 @@
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  ***   Functions
  ***/
@@ -146,5 +144,3 @@ dns_badcache_print(dns_badcache_t *bc, const char *cachename, FILE *fp);
  * \li cachename != NULL
  * \li fp != NULL
  */
-
-ISC_LANG_ENDDECLS
index 718221f084afa2eb57c7b7b9b60216f819e6c309..ffd51093bb58093e972102dd6a74eb3bc80472e2 100644 (file)
  *\li  Drafts: TBS
  */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_byaddr_createptrname(const isc_netaddr_t *address, dns_name_t *name);
 /*%<
@@ -56,5 +52,3 @@ dns_byaddr_createptrname(const isc_netaddr_t *address, dns_name_t *name);
  * \li 'address' is a valid address.
  * \li 'name' is a valid name with a dedicated buffer.
  */
-
-ISC_LANG_ENDDECLS
index c629ab26c467b7333f22d2d868431a93ed5a26f0..2eaa705544adfa2e1d3d56c91525075f76938742 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/refcount.h>
 #include <isc/stats.h>
 #include <isc/stdtime.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  ***   Functions
  ***/
@@ -273,5 +270,3 @@ dns_cache_renderjson(dns_cache_t *cache, void *cstats0);
  * Render cache statistics and status in JSON
  */
 #endif /* HAVE_JSON_C */
-
-ISC_LANG_ENDDECLS
index da15ec9255e87e4273f6a16663bfc41ff1d97751..e9dce8c73a3364b635dcbb6065617686624f87f4 100644 (file)
  ***   Imports
  ***/
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  ***   Types
  ***/
@@ -100,5 +97,3 @@ dns_rdatacallbacks_init_stdio(dns_rdatacallbacks_t *callbacks);
 /*%<
  * Like dns_rdatacallbacks_init, but logs to stdio.
  */
-
-ISC_LANG_ENDDECLS
index 923f3b33a68dc3f934946262df71ed5be6f95761..32aecc4e14a949b04214b933981431bfad1226db 100644 (file)
@@ -19,7 +19,6 @@
 #include <stdbool.h>
 
 #include <isc/ht.h>
-#include <isc/lang.h>
 #include <isc/refcount.h>
 #include <isc/rwlock.h>
 #include <isc/time.h>
@@ -31,8 +30,6 @@
 #include <dns/rdata.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define DNS_CATZ_ERROR_LEVEL  ISC_LOG_WARNING
 #define DNS_CATZ_INFO_LEVEL   ISC_LOG_INFO
 #define DNS_CATZ_DEBUG_LEVEL1 ISC_LOG_DEBUG(1)
@@ -446,5 +443,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_catz_zones);
 ISC_REFCOUNT_DECL(dns_catz_zone);
 ISC_REFCOUNT_DECL(dns_catz_zones);
 #endif /* DNS_CATZ_TRACE */
-
-ISC_LANG_ENDDECLS
index c1a0a503eed3f156b79d2d7fe2cdfde5eac0d882..97a6ed0b2cdd74fdda5aa85192ee769f81535b99 100644 (file)
 
 /*! \file dns/cert.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_cert_fromtext(dns_cert_t *certp, isc_textregion_t *source);
 /*%<
@@ -56,5 +52,3 @@ dns_cert_totext(dns_cert_t cert, isc_buffer_t *target);
  *\li  #ISC_R_SUCCESS                  on success
  *\li  #ISC_R_NOSPACE                  target buffer is too small
  */
-
-ISC_LANG_ENDDECLS
index 75cbf8925000413b404aad4fc5faaa56bae631b0..6dd2a719980a6146cb956e39b0672abcb48b0ea7 100644 (file)
@@ -48,8 +48,6 @@
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Types
  ***/
@@ -292,5 +290,3 @@ dns_client_addtrustedkey(dns_client_t *client, dns_rdataclass_t rdclass,
  *
  *\li  Anything else                           Failure.
  */
-
-ISC_LANG_ENDDECLS
index fb644c304d2ba3fb8cd551508fb0a23925629bbf..9678161ce3ebca6aa80eff58f727fea7e01fd02e 100644 (file)
@@ -44,8 +44,6 @@
 
 #include <dns/ecs.h>
 
-ISC_LANG_BEGINDECLS
-
 /*****
 ***** Types
 *****/
@@ -98,5 +96,3 @@ dns_clientinfo_setecs(dns_clientinfo_t *ci, dns_ecs_t *ecs);
  * Set the ECS client data associated with a clientinfo object 'ci'.
  * If 'ecs' is NULL, initialize ci->ecs to 0/0/0; otherwise copy it.
  */
-
-ISC_LANG_ENDDECLS
index 8fbe2928b06b3ddb34dbdfde1efa69e243ada283..1e3fb84527b6f2ca3b0ade4421954439f114979d 100644 (file)
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/region.h>
 
 #include <dns/name.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*! \file dns/compress.h
  * Direct manipulation of the structures is strongly discouraged.
  *
@@ -228,5 +225,3 @@ dns_decompress_getpermitted(dns_decompress_t dctx) {
        return dctx == DNS_DECOMPRESS_ALWAYS ||
               dctx == DNS_DECOMPRESS_PERMITTED;
 }
-
-ISC_LANG_ENDDECLS
index e38f4a3acac3c8f695d350600e2b3ebcc46f65a4..c898957b11a3e3f6edee0db95823cdbcab259c8d 100644 (file)
@@ -52,7 +52,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/loop.h>
 #include <isc/magic.h>
 #include <isc/rwlock.h>
@@ -67,8 +66,6 @@
 #include <dns/rdataset.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * Tuning: external query load in packets per seconds.
  */
@@ -1821,4 +1818,3 @@ dns_db_setmaxtypepername(dns_db_t *db, uint32_t value);
  * stored at a given node, then any subsequent attempt to add an rdataset
  * with a new RR type will return ISC_R_TOOMANYRECORDS.
  */
-ISC_LANG_ENDDECLS
index 306b28b91801a6d5558671d6a21513f0086a6bfc..e97e9add0b926fb7f356bd3ebe23e0d20cc07d05 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*****
 ***** Types
 *****/
@@ -288,5 +285,3 @@ dns_dbiterator_origin(dns_dbiterator_t *iterator, dns_name_t *name);
  *
  *\li  Other results are possible, depending on the DB implementation.
  */
-
-ISC_LANG_ENDDECLS
index 95c0bce1a853cd3c410a2a520e3a7e35c98dce60..95a58f990a7aab5c44b18cb29ee24dbb986faca9 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <stddef.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 
 #include <dns/name.h>
@@ -110,8 +109,6 @@ dns_diff_compare_func(const void *, const void *);
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 /**************************************************************************/
 /*
  * Manipulation of diffs and tuples.
@@ -291,5 +288,3 @@ dns_diff_print(const dns_diff_t *diff, FILE *file);
  *\li  #ISC_R_UNEXPECTED
  *\li  any error from dns_rdataset_totext()
  */
-
-ISC_LANG_ENDDECLS
index 6e35e9533ff273570648b9d0e2d86bc84122d697..45fc4946d2b0a73add96cd3b3c7295b32ad05241 100644 (file)
@@ -50,7 +50,6 @@
 #include <stdbool.h>
 
 #include <isc/buffer.h>
-#include <isc/lang.h>
 #include <isc/mutex.h>
 #include <isc/netmgr.h>
 #include <isc/refcount.h>
@@ -60,8 +59,6 @@
 
 /* Add -DDNS_DISPATCH_TRACE=1 to CFLAGS for detailed reference tracing */
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * This is a set of one or more dispatches which can be retrieved
  * round-robin fashion.
@@ -435,5 +432,3 @@ dns_dispatch_checkperm(dns_dispatch_t *disp);
  * Requires:
  *\li  disp is valid
  */
-
-ISC_LANG_ENDDECLS
index 4b6141125944511be9070b6ea151b863272c7ec3..60de2aaebab8695352253dfd475b1dab66a50b12 100644 (file)
@@ -79,8 +79,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/clientinfo.h>
 #include <dns/name.h>
 #include <dns/types.h>
@@ -88,8 +86,6 @@
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Types
  ***/
@@ -329,5 +325,3 @@ dns_dlz_ssumatch(dns_dlzdb_t *dlzdatabase, const dns_name_t *signer,
 /*%<
  * call a DLZ drivers ssumatch method, if supplied. Otherwise return false
  */
-
-ISC_LANG_ENDDECLS
index a0059ffbdf8253bbb39ae1dc3f26d0bd0d85edf8..e388798dfde3185c9ce8c439a56f93dc03a267af 100644 (file)
@@ -20,8 +20,6 @@
 
 #include <dns/sdlz.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * This header provides a minimal set of defines and typedefs needed
  * for the entry points of an external DLZ module for bind9.
@@ -152,5 +150,3 @@ dlz_dlopen_subrdataset_t(const char *name, const char *rdatastr, void *dbdata,
 typedef isc_result_t
 dlz_dlopen_delrdataset_t(const char *name, const char *type, void *dbdata,
                         void *version);
-
-ISC_LANG_ENDDECLS
index 9242cbcbc81f59625c7eb7e03f11d4c295154e3a..7e10e5bfe0ff5227680bd188498bbe02e568b872 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * dns_dns64_create() flags.
  */
@@ -190,5 +186,3 @@ dns_dns64_findprefix(dns_rdataset_t *rdataset, isc_netprefix_t *prefix,
  *                     into 'prefix'.
  *     ISC_R_NOTFOUND  no prefixes where found.
  */
-
-ISC_LANG_ENDDECLS
index 3525672dcff5313301e144d82407bbc6a3d539fe..09281eb9cc0448c07b9f5e730289e5cc09695fb9 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/stats.h>
 #include <isc/stdtime.h>
 
@@ -27,8 +26,6 @@
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 extern isc_stats_t *dns_dnssec_stats;
 
 /*%< Maximum number of keys supported in a zone. */
@@ -423,4 +420,3 @@ dns_dnssec_matchdskey(dns_name_t *name, dns_rdata_t *dsrdata,
  *\li  ISC_R_NOTFOUND
  *\li  Other values indicate error
  */
-ISC_LANG_ENDDECLS
index 629729bc3ac713a3855ab0aa6f0d424f37eb7ce9..a10d9355c1b0e420369db747c67c5b9fc1956087 100644 (file)
@@ -13,8 +13,6 @@
 
 #pragma once
 
-#include <isc/lang.h>
-
 #include <dns/rdatastruct.h>
 #include <dns/types.h>
 
@@ -28,8 +26,6 @@
  */
 #define DNS_DS_BUFFERSIZE (52)
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_ds_fromkeyrdata(const dns_name_t *owner, dns_rdata_t *key,
                    dns_dsdigest_t digest_type, unsigned char *digest,
@@ -61,5 +57,3 @@ dns_ds_buildrdata(dns_name_t *owner, dns_rdata_t *key,
  *  \li    *rdata      Contains a valid DS rdata.  The 'data' member refers
  *             to 'buffer'.
  */
-
-ISC_LANG_ENDDECLS
index 3b3898b9cc7a3a11a1da42df4f43ddcf297ae92b..05ba253faa2dbbd7a01dcf56780286dfd1789c81 100644 (file)
 
 /*! \file dns/dsdigest.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_dsdigest_fromtext(dns_dsdigest_t *dsdigestp, isc_textregion_t *source);
 /*%<
@@ -65,5 +61,3 @@ dns_dsdigest_format(dns_dsdigest_t typ, char *cp, unsigned int size);
 /*%<
  * Wrapper for dns_dsdigest_totext(), writing text into 'cp'
  */
-
-ISC_LANG_ENDDECLS
index 7c481d4a973a678c4207fcb88e348030a4f9cced..acea3f0dcd07be5d536a9050d48c471fb061dd5b 100644 (file)
@@ -19,8 +19,6 @@
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*!
  * \brief
  * Context for initializing a dyndb module.
@@ -153,5 +151,3 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp);
  * Destroys a dyndb initialization context structure; all
  * reference-counted members are detached and the structure is freed.
  */
-
-ISC_LANG_ENDDECLS
index caa274c066a3bd6847d26944028ed165a8bbc725..e8b32e034dbd24c02ad9483ae644fbcd48835c60 100644 (file)
@@ -15,7 +15,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/netaddr.h>
 #include <isc/types.h>
 
@@ -46,8 +45,6 @@ struct dns_ecs {
 /* <address>/NNN/NNN */
 #define DNS_ECS_FORMATSIZE (ISC_NETADDR_FORMATSIZE + 9)
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_ecs_init(dns_ecs_t *ecs);
 /*%<
@@ -78,4 +75,3 @@ dns_ecs_format(const dns_ecs_t *ecs, char *buf, size_t size);
  * \li  'buf' is not NULL.
  * \li  'size' is at least DNS_ECS_FORMATSIZE
  */
-ISC_LANG_ENDDECLS
index 97155e77f051e3f32faed8f9210c29d91e0a6bf2..95ce7e083666a1e08cb75342ad6ceaa0e059cf1e 100644 (file)
@@ -50,7 +50,6 @@
 *****/
 
 #include <isc/buffer.h>
-#include <isc/lang.h>
 
 #include <dns/name.h>
 
@@ -65,8 +64,6 @@ struct dns_fixedname {
        unsigned char data[DNS_NAME_MAXWIRE];
 };
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_fixedname_init(dns_fixedname_t *fixed);
 
@@ -78,5 +75,3 @@ dns_fixedname_name(dns_fixedname_t *fixed);
 
 dns_name_t *
 dns_fixedname_initname(dns_fixedname_t *fixed);
-
-ISC_LANG_ENDDECLS
index 4da882943ae2750c33d24463e89143747aed3b22..ca5450f3fdd2f1976e92e1a9d57d6cdba421eec3 100644 (file)
@@ -15,7 +15,6 @@
 
 /*! \file dns/forward.h */
 
-#include <isc/lang.h>
 #include <isc/mem.h>
 #include <isc/refcount.h>
 #include <isc/result.h>
@@ -27,8 +26,6 @@
 
 /* Add -DDNS_FORWARD_TRACE=1 to CFLAGS for detailed reference tracing */
 
-ISC_LANG_BEGINDECLS
-
 struct dns_forwarder {
        isc_sockaddr_t addr;
        dns_name_t    *tlsname;
@@ -122,4 +119,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_forwarders);
 #else
 ISC_REFCOUNT_DECL(dns_forwarders);
 #endif
-ISC_LANG_ENDDECLS
index 0d44f6a9d36b076f40c98e9ad334e6c82dcd1073..9b461966547dc6e0791f2757fad415dd23193452 100644 (file)
@@ -30,7 +30,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/netaddr.h>
 #include <isc/refcount.h>
@@ -99,13 +98,9 @@ struct dns_geoip_databases {
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 bool
 dns_geoip_match(const isc_netaddr_t        *reqaddr,
                const dns_geoip_databases_t *geoip,
                const dns_geoip_elem_t      *elt);
 
-ISC_LANG_ENDDECLS
-
 #endif /* HAVE_GEOIP2 */
index 9c709141ca8481f4bc16a965c0ef0f55b947e804..939e8e723249d298f96c9ccd8a7e913ab5437010 100644 (file)
@@ -16,7 +16,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/radix.h>
 #include <isc/refcount.h>
@@ -40,8 +39,6 @@ struct dns_iptable {
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_iptable_create(isc_mem_t *mctx, dns_iptable_t **target);
 /*
@@ -73,5 +70,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_iptable);
 #else
 ISC_REFCOUNT_DECL(dns_iptable);
 #endif
-
-ISC_LANG_ENDDECLS
index 05f904ad61819179d874dc852fe7b67117ad3e09..6276bb687e82c0ba2ad222ad9807e813df3bf8f2 100644 (file)
@@ -29,7 +29,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 
 #include <dns/diff.h>
@@ -75,8 +74,6 @@ typedef struct dns_journal dns_journal_t;
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 /**************************************************************************/
 
 isc_result_t
@@ -334,5 +331,3 @@ dns_journal_set_sourceserial(dns_journal_t *j, uint32_t sourceserial);
  * Returns:
  *      true if sourceserial has previously been set.
  */
-
-ISC_LANG_ENDDECLS
index 674e733551c242be7be44d7b9c077068de12541c..fd8ec896f273e0e60aacbc5a336bd864d9c586cd 100644 (file)
@@ -25,7 +25,6 @@
  * signed and maintained.
  */
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/mutex.h>
 #include <isc/refcount.h>
@@ -34,8 +33,6 @@
 #include <dns/keystore.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /* For storing a list of digest types */
 struct dns_kasp_digest {
        dns_dsdigest_t digest;
@@ -904,5 +901,3 @@ dns_kasp_adddigest(dns_kasp_t *kasp, dns_dsdigest_t alg);
  *
  *\li   'kasp' is a valid, thawed kasp.
  */
-
-ISC_LANG_ENDDECLS
index fba86d4b375dbdcf0dc0d61779c31ce2d68d57d5..8456a451e4e6d721eee76426b5eab9736f7c97ca 100644 (file)
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <dns/rdatastruct.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_keydata_todnskey(dns_rdata_keydata_t *keydata, dns_rdata_dnskey_t *dnskey,
                     isc_mem_t *mctx);
@@ -44,5 +41,3 @@ isc_result_t
 dns_keydata_fromdnskey(dns_rdata_keydata_t *keydata, dns_rdata_dnskey_t *dnskey,
                       uint32_t refresh, uint32_t addhd, uint32_t removehd,
                       isc_mem_t *mctx);
-
-ISC_LANG_ENDDECLS
index 51f6cee335e833fcc5ac60612fd26a979143d30c..9d5142ea488cd44d7adbe55d61675bea66c99aaa 100644 (file)
 
 /*! \file dns/keyflags.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source);
 /*%<
@@ -41,5 +37,3 @@ dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source);
  *\li  ISC_R_RANGE                     numeric flag value is out of range
  *\li  DNS_R_UNKNOWN                   mnemonic flag is unknown
  */
-
-ISC_LANG_ENDDECLS
index deb007623fbfb12e02ac7a0bc4dd7fd80d1205cc..bbdb8fff78f24aaae410618c05f92614a3bd60b8 100644 (file)
 
 /*! \file dns/keymgr.h */
 
-#include <isc/lang.h>
 #include <isc/stdtime.h>
 
 #include <dns/types.h>
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_keymgr_settime_syncpublish(dst_key_t *key, dns_kasp_t *kasp, bool first);
 /*%<
@@ -158,5 +155,3 @@ dns_keymgr_status(dns_kasp_t *kasp, dns_dnsseckeylist_t *keyring,
  *\li          Printable status in 'out'.
  *
  */
-
-ISC_LANG_ENDDECLS
index 4e648bc414ab5f1a2ce895f9a277411bf04a60dd..2dd27389918e0823c397e336d38fe1b28f8d0a99 100644 (file)
@@ -26,7 +26,6 @@
 
 /* Add -DDNS_KEYSTORE_TRACE=1 to CFLAGS for detailed reference tracing */
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/mutex.h>
 #include <isc/refcount.h>
@@ -35,8 +34,6 @@
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 /* Key store */
 struct dns_keystore {
        unsigned int magic;
@@ -198,5 +195,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_keystore);
 #else
 ISC_REFCOUNT_DECL(dns_keystore);
 #endif /* DNS_KEYSTORE_TRACE */
-
-ISC_LANG_ENDDECLS
index dc0b398622b796b0d4ee79cf3be55778f98ad261..689aab7e9d30bd714713767ceddcaea38fbf9ad7 100644 (file)
@@ -36,7 +36,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/refcount.h>
 #include <isc/rwlock.h>
@@ -47,8 +46,6 @@
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 typedef void (*dns_keytable_callback_t)(const dns_name_t *name, void *fn_arg);
 
 void
@@ -296,4 +293,3 @@ dns_keytable_forall(dns_keytable_t *keytable,
 
 ISC_REFCOUNT_DECL(dns_keytable);
 ISC_REFCOUNT_DECL(dns_keynode);
-ISC_LANG_ENDDECLS
index 2e9966f8d0ecfd0e64a1fa7cef7150108380fe03..20402e58826f5bde05a0d36e3875bebfe94410ab 100644 (file)
@@ -22,8 +22,6 @@
 #include <inttypes.h>
 #include <stdio.h>
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
 /*
@@ -61,8 +59,6 @@
 #define DNS_MASTER_CHECKTTL  0x00010000 /*%< Check max-zone-ttl */
 #define DNS_MASTER_CHECKSVCB 0x00020000 /*%< Check SVBC records */
 
-ISC_LANG_BEGINDECLS
-
 /*
  * Structures that implement the "raw" format for master dump.
  * These are provided for a reference purpose only; in the actual
@@ -229,4 +225,3 @@ dns_master_initrawheader(dns_masterrawheader_t *header);
  * Initializes the header for a raw master file, setting all
  * values to zero.
  */
-ISC_LANG_ENDDECLS
index a030924e73677eaffc40ba94f2340a2dd890b31d..8d86e9364b466fff0486e5089f32f4c58bc46235 100644 (file)
@@ -21,8 +21,6 @@
 
 #include <stdio.h>
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
 /***
@@ -120,8 +118,6 @@ typedef struct dns_master_style dns_master_style_t;
  */
 #define DNS_STYLEFLAG_CLASS_PERNAME 0x400000000ULL
 
-ISC_LANG_BEGINDECLS
-
 /***
  ***   Constants
  ***/
@@ -349,5 +345,3 @@ dns_master_stylecreate(dns_master_style_t    **style,
 
 void
 dns_master_styledestroy(dns_master_style_t **style, isc_mem_t *mctx);
-
-ISC_LANG_ENDDECLS
index e63fff1f0a9d45370ff17d262e839119ade7e287..0189bbf297ac04b149732c5b8e84781fcd7aa3d0 100644 (file)
@@ -20,7 +20,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/refcount.h>
 
@@ -365,8 +364,6 @@ typedef void (*dns_message_cb_t)(void *arg, isc_result_t result);
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_message_create(isc_mem_t *mctx, isc_mempool_t *namepool,
                   isc_mempool_t *rdspool, dns_message_intent_t intent,
@@ -1533,5 +1530,3 @@ dns_ede_unlinkall(isc_mem_t *mctx, dns_edelist_t *list);
  * \li   mctx to be non NULL;
  * \li   list to be non NULL;
  */
-
-ISC_LANG_ENDDECLS
index d79fe445bd170e27338f50d147e392f1d29c05e5..3e405846e218c3952ed26c8b2b7b85a5d3d5bd5c 100644 (file)
 
 #include <isc/buffer.h>
 #include <isc/hashmap.h>
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/region.h> /* Required for storage size of dns_label_t. */
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*****
 ***** Names
 *****
@@ -1367,5 +1364,3 @@ dns_name_israd(const dns_name_t *name, const dns_name_t *rad);
  * Requires:
  * \li 'name' to be valid.
  */
-
-ISC_LANG_ENDDECLS
index 9fec23041b14fd1a73405f597c11c4fd3291f881..98a230e6bf6c8295aa8cf184fe7164faa9c9f84e 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/refcount.h>
 #include <isc/rwlock.h>
@@ -45,8 +44,6 @@ typedef enum {
        DNS_NAMETREE_COUNT
 } dns_nametree_type_t;
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_nametree_create(isc_mem_t *mctx, dns_nametree_type_t type, const char *name,
                    dns_nametree_t **ntp);
@@ -190,4 +187,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_ntnode);
 ISC_REFCOUNT_DECL(dns_nametree);
 ISC_REFCOUNT_DECL(dns_ntnode);
 #endif
-ISC_LANG_ENDDECLS
index ce6213637fd7cd19e1259cd1e443364f7119fc2b..4c196aa7fab72b9b54b9f2b47e953a635b486fd5 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/stdtime.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * _OMITDNSSEC:
  *      Omit DNSSEC records when rendering.
@@ -180,5 +177,3 @@ dns_ncache_current(dns_rdataset_t *ncacherdataset, dns_name_t *found,
  * \li 'found' to be valid.
  * \li 'rdataset' to be unassociated.
  */
-
-ISC_LANG_ENDDECLS
index e68ea35ebfb3ca4ad1971b4d9ebeac53de013221..eda6214bb1659d0657d08d967592b5a92bd6afc9 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/diff.h>
 #include <dns/name.h>
 #include <dns/types.h>
 
 #define DNS_NSEC_BUFFERSIZE (DNS_NAME_MAXWIRE + 8192 + 512)
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_nsec_buildrdata(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
                    const dns_name_t *target, unsigned char *buffer,
@@ -122,5 +118,3 @@ dns_nsec_requiredtypespresent(dns_rdataset_t *rdataset);
  * Requires:
  * \li rdataset to be a NSEC rdataset.
  */
-
-ISC_LANG_ENDDECLS
index 3cd81cc616135d76c1708924e9cbd4aa5c33202f..c1a7bd8c7fcc7d9a28763b71154899339761c3ab 100644 (file)
@@ -16,7 +16,6 @@
 #include <stdbool.h>
 
 #include <isc/iterated_hash.h>
-#include <isc/lang.h>
 #include <isc/log.h>
 
 #include <dns/db.h>
@@ -43,8 +42,6 @@
  */
 #define DNS_NSEC3_UNKNOWNALG ((dns_hash_t)245U)
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_nsec3_buildrdata(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
                     unsigned int hashalg, unsigned int optin,
@@ -265,5 +262,3 @@ dns_nsec3_noexistnodata(dns_rdatatype_t type, const dns_name_t *name,
                        bool *optout, bool *unknown, bool *setclosest,
                        bool *setnearest, dns_name_t *closest,
                        dns_name_t *nearest, dns_nseclog_t logit, void *arg);
-
-ISC_LANG_ENDDECLS
index 777a0fd3a42bf2e52ca886f858b796f012d9f555..36af12b4cf377b9393704113eb77bf28ffbc44e3 100644 (file)
@@ -28,7 +28,6 @@
 #include <stdbool.h>
 
 #include <isc/buffer.h>
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/refcount.h>
 #include <isc/rwlock.h>
@@ -42,8 +41,6 @@
 
 /* Add -DDNS_NTA_TRACE=1 to CFLAGS for detailed reference tracing */
 
-ISC_LANG_BEGINDECLS
-
 #define NTATABLE_MAGIC    ISC_MAGIC('N', 'T', 'A', 't')
 #define VALID_NTATABLE(nt) ISC_MAGIC_VALID(nt, NTATABLE_MAGIC)
 
@@ -180,5 +177,3 @@ ISC_REFCOUNT_TRACE_DECL(dns__nta);
 #else
 ISC_REFCOUNT_DECL(dns__nta);
 #endif
-
-ISC_LANG_ENDDECLS
index 6b8f6f88e7d8343d3af93e3ab1dac25afc377262..30f573d7c8e025bb9465e0b969116b730d450818 100644 (file)
 
 /*! \file dns/opcode.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_opcode_totext(dns_opcode_t opcode, isc_buffer_t *target);
 /*%<
@@ -39,5 +35,3 @@ dns_opcode_totext(dns_opcode_t opcode, isc_buffer_t *target);
  *\li  #ISC_R_SUCCESS                  on success
  *\li  #ISC_R_NOSPACE                  target buffer is too small
  */
-
-ISC_LANG_ENDDECLS
index 4b0a25f5046da8651cdf964abcfda4af665994c8..54261257bcd63e2e36bc4e203028f2fb6a56f1ce 100644 (file)
 
 /*! \file dns/order.h */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_order_create(isc_mem_t *mctx, dns_order_t **orderp);
 /*%<
@@ -86,5 +83,3 @@ dns_order_detach(dns_order_t **orderp);
  * Requires:
  *\li  '*orderp' to be valid.
  */
-
-ISC_LANG_ENDDECLS
index d429d667d02d5de4e039e342c5a316252a1c84fc..1e676113004500272666bd055f65359311f4a62d 100644 (file)
@@ -29,7 +29,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/netaddr.h>
 #include <isc/refcount.h>
@@ -46,8 +45,6 @@
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list);
 
@@ -217,4 +214,3 @@ dns_peer_setednsversion(dns_peer_t *peer, uint8_t ednsversion);
 
 isc_result_t
 dns_peer_getednsversion(dns_peer_t *peer, uint8_t *ednsversion);
-ISC_LANG_ENDDECLS
index 675510c0d188ddbafc828c37e73a0d608446e027..8f3d5a32ad541d7fc761452e92c0b51e66fb49b2 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <dns/db.h>
@@ -21,8 +20,6 @@
 
 #pragma once
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
                   dns_rdatatype_t privatetype, bool *build_nsec,
@@ -62,5 +59,3 @@ dns_private_totext(dns_rdata_t *privaterdata, isc_buffer_t *buffer);
  * \li         ISC_R_SUCCESS
  * \li other on error
  */
-
-ISC_LANG_ENDDECLS
index 2c496ee8f316fb65dc24aaa547a48e15202a1a62..cbdbbaf4c9547f75ee250f9e81d1034d641533cd 100644 (file)
 
 /*! \file dns/rcode.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_rcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source);
 /*%<
@@ -103,5 +99,3 @@ dns_hashalg_fromtext(unsigned char *hashalg, isc_textregion_t *source);
  *\li  #ISC_R_SUCCESS                  on success
  *\li  #DNS_R_UNKNOWN                  type is unknown
  */
-
-ISC_LANG_ENDDECLS
index 02ac4eef221bd0aa5862686bfe8f22940887abcd..2123bbc927a16f39211d5de08674917121849065 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/message.h>
 #include <dns/name.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Types
  ***/
@@ -822,5 +818,3 @@ dns_rdata_checksvcb(const dns_name_t *owner, const dns_rdata_t *rdata);
  *\li  #DNS_R_NOALPN           -- ALPN required for 'owner', but not found
  *\li  #DNS_R_NODOHPATH        -- DOHPATH required for 'owner', but not found
  */
-
-ISC_LANG_ENDDECLS
index 466c4a3fcc2cc4a1e2b758fcc2cce17a3163bdd1..41ede6e3dea8fcfebbd437ea734a8a586daade28 100644 (file)
 
 /*! \file dns/rdataclass.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source);
 /*%<
@@ -87,5 +83,3 @@ dns_rdataclass_format(dns_rdataclass_t rdclass, char *array, unsigned int size);
 /*%<
  * Minimum size of array to pass to dns_rdataclass_format().
  */
-
-ISC_LANG_ENDDECLS
index 6e564b635ee63f4557be87b9aab5d9adffc8d6d3..a61d6a0b2a947f772e6a0626a0e795b4d68af3b8 100644 (file)
@@ -37,8 +37,6 @@
  *\li  None.
  */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
 /*%
@@ -59,8 +57,6 @@ struct dns_rdatalist {
        unsigned char upper[32];
 };
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_rdatalist_init(dns_rdatalist_t *rdatalist);
 /*%<
@@ -151,5 +147,3 @@ dns_rdatalist_setownercase(dns_rdataset_t *rdataset, const dns_name_t *name);
 
 void
 dns_rdatalist_getownercase(const dns_rdataset_t *rdataset, dns_name_t *name);
-
-ISC_LANG_ENDDECLS
index d53f80fa559cdb7d65d9550746b55ceab8a33fc3..ae835b961d27c7578cbb4213c5727d6f98976124 100644 (file)
@@ -47,7 +47,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/stdtime.h>
 
@@ -66,8 +65,6 @@
 #define DNS_RDATASET_COUNT 0
 #endif /* DNS_RDATASET_FIXED */
 
-ISC_LANG_BEGINDECLS
-
 typedef enum {
        dns_rdatasetadditional_fromauth,
        dns_rdatasetadditional_fromcache,
@@ -655,5 +652,3 @@ dns_trust_totext(dns_trust_t trust);
 /*%<
  * Display trust in textual form.
  */
-
-ISC_LANG_ENDDECLS
index 4689d333c3cf69ea7eb2ee3ab609b4b5e4732312..a91c1ec416c6255ce20986b82af649f2f585f4ad 100644 (file)
 ***** Imports
 *****/
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/stdtime.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*****
 ***** Types
 *****/
@@ -166,5 +163,3 @@ dns__rdatasetiter_current(dns_rdatasetiter_t          *iterator,
  *\li  The rdataset cursor of 'iterator' is at a valid location (i.e. the
  *     result of last call to a cursor movement command was #ISC_R_SUCCESS).
  */
-
-ISC_LANG_ENDDECLS
index 3061f0ece45a33441cdf74dc048725d7ba962c41..00ed2f68956313296a7294502a762665773ea3c8 100644 (file)
@@ -45,7 +45,6 @@
 
 #include <isc/atomic.h>
 #include <isc/heap.h>
-#include <isc/lang.h>
 #include <isc/stdtime.h>
 #include <isc/urcu.h>
 
@@ -53,8 +52,6 @@
 #include <dns/rdataset.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define DNS_RDATASLAB_FORCE 0x1
 #define DNS_RDATASLAB_EXACT 0x2
 
@@ -321,4 +318,3 @@ dns_slabheader_freeproof(isc_mem_t *mctx, dns_slabheader_proof_t **proof);
 /*%<
  * Free all memory associated with a nonexistence proof.
  */
-ISC_LANG_ENDDECLS
index 61cad7d8bb2c9e9f972628b59a33e4a2f7ab2b13..b4005367c9cc3226740a76e6addaeac2f7915cfb 100644 (file)
@@ -15,8 +15,6 @@
 
 /*! \file dns/rdatatype.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
 #define DNS_TYPEPAIR_TYPE(type)          ((dns_rdatatype_t)((type) & 0xFFFF))
@@ -27,8 +25,6 @@
        ((dns_typepair_t)(((uint32_t)type) << 16) | \
         (((uint32_t)dns_rdatatype_rrsig) & 0xffff))
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_rdatatype_fromtext(dns_rdatatype_t *typep, isc_textregion_t *source);
 /*%<
@@ -98,5 +94,3 @@ dns_rdatatype_format(dns_rdatatype_t rdtype, char *array, unsigned int size);
  * May need to be adjusted if a new RR type with a very long
  * name is defined.
  */
-
-ISC_LANG_ENDDECLS
index 7d3a6f1fd9d64119eaaf903d881bcd8219cb63d8..6738fe11cf88a4b8689f4f6770bb29893d45cf08 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/mem.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define DNS_REMOTE_MAGIC        ISC_MAGIC('R', 'm', 't', 'e')
 #define DNS_REMOTE_VALID(remote) ISC_MAGIC_VALID(remote, DNS_REMOTE_MAGIC)
 
@@ -215,5 +212,3 @@ dns_remote_done(dns_remote_t *remote);
  *     Requires:
  *             'remote' is a valid remote structure.
  */
-
-ISC_LANG_ENDDECLS
index ccbc9e2b20a908e19ec72a0d908582e3bc9af377..07b2b17af952e15ab7b7b0ffcb4354a6dd10c2b1 100644 (file)
@@ -37,7 +37,6 @@
 #include <stdbool.h>
 
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/tls.h>
 
 #include <dns/types.h>
@@ -49,8 +48,6 @@
 #define DNS_REQUESTOPT_FIXEDID 0x00000004U
 #define DNS_REQUESTOPT_LARGE   0x00000008U
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_requestmgr_create(isc_mem_t *mctx, isc_loopmgr_t *loopmgr,
                      dns_dispatchmgr_t *dispatchmgr,
@@ -305,5 +302,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_request);
 #else
 ISC_REFCOUNT_DECL(dns_request);
 #endif
-
-ISC_LANG_ENDDECLS
index 5938cc835792dd59ab85e27c72af995c6f3dbdc0..93a215598cbecc34be54767095f6cd27808b51b7 100644 (file)
@@ -49,7 +49,6 @@
 #include <netinet/in.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/loop.h>
 #include <isc/refcount.h>
 #include <isc/stats.h>
@@ -62,8 +61,6 @@
 
 /* Add -DDNS_RESOLVER_TRACE=1 to CFLAGS for detailed reference tracing */
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * A dns_fetchresponse_t is sent to the caller when a fetch completes.
  * Any of 'db', 'node', 'rdataset', and 'sigrdataset' may be bound; it
@@ -637,5 +634,3 @@ dns_resolver_freefresp(dns_fetchresponse_t **frespp);
  * Requires:
  * \li 'frespp' is valid. No-op if *frespp == NULL
  */
-
-ISC_LANG_ENDDECLS
index 6ab7e51a4930d2240352f34dc449e0d3e2724985..8465e99323e6bb998787855a56aaee13697b58f6 100644 (file)
 
 /*! \file dns/result.h */
 
-#include <isc/lang.h>
 #include <isc/result.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 dns_rcode_t
 dns_result_torcode(isc_result_t result);
 
 isc_result_t
 dns_result_fromrcode(dns_rcode_t rcode);
-
-ISC_LANG_ENDDECLS
index d7740f78c993b22ad5355e3f3681d0d61a9214ca..df6026a1edd5f3d2ffa8032198e06d686bb4278d 100644 (file)
 
 /*! \file dns/rootns.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_rootns_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
                  const char *filename, dns_db_t **target);
@@ -32,5 +28,3 @@ dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db);
  *
  * Requires view, hints and (cache) db to be valid.
  */
-
-ISC_LANG_ENDDECLS
index be541441890257017fe05db9d0e021941cf2afbe..4cc81b4764456344ddf4b9e1205452f37ef4b2d0 100644 (file)
@@ -19,7 +19,6 @@
 #include <stdbool.h>
 
 #include <isc/ht.h>
-#include <isc/lang.h>
 #include <isc/refcount.h>
 #include <isc/rwlock.h>
 #include <isc/time.h>
@@ -30,8 +29,6 @@
 #include <dns/rdata.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define DNS_RPZ_PREFIX "rpz-"
 /*
  * Sub-zones of various trigger types.
@@ -418,5 +415,3 @@ dns_rpz_find_ip(dns_rpz_zones_t *rpzs, dns_rpz_type_t rpz_type,
 dns_rpz_zbits_t
 dns_rpz_find_name(dns_rpz_zones_t *rpzs, dns_rpz_type_t rpz_type,
                  dns_rpz_zbits_t zbits, dns_name_t *trig_name);
-
-ISC_LANG_ENDDECLS
index a1cd9b932a3da28df988c4952382f820eae9ca0f..606dd31af91efc4d75fcfd11a7d4a9bd3183f252 100644 (file)
@@ -28,7 +28,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/stdtime.h>
 
@@ -41,8 +40,6 @@
 #include <dns/rdatasetiter.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*****
 ***** Types
 *****/
@@ -175,5 +172,3 @@ dns_rriterator_destroy(dns_rriterator_t *it);
  *
  *\li  All resources used by the rriterator are freed.
  */
-
-ISC_LANG_ENDDECLS
index bdffed99ac0189ae711bf7e8929350ffa8d08840..aef47a7345e0c3c74f3b3eccb57e3525950a6365 100644 (file)
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/fixedname.h>
 #include <dns/rdata.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * Memory allocation or other failures.
  */
@@ -265,5 +261,3 @@ dns_rrl_view_destroy(dns_view_t *view);
 
 isc_result_t
 dns_rrl_init(dns_rrl_t **rrlp, dns_view_t *view, int min_entries);
-
-ISC_LANG_ENDDECLS
index b0388b98cfbe49219ebec44af97abb47ac0c449e..8466b581c45370e1661be000d0ca047e2d1ab47a 100644 (file)
@@ -56,8 +56,6 @@
 #include <dns/clientinfo.h>
 #include <dns/dlz.h>
 
-ISC_LANG_BEGINDECLS
-
 #define DNS_SDLZFLAG_THREADSAFE           0x00000001U
 #define DNS_SDLZFLAG_RELATIVEOWNER 0x00000002U
 #define DNS_SDLZFLAG_RELATIVERDATA 0x00000004U
@@ -352,5 +350,3 @@ dns_sdlz_setdb_t dns_sdlz_setdb;
 /*%<
  * Create the database pointers for a writeable SDLZ zone
  */
-
-ISC_LANG_ENDDECLS
index 09b3d2b3591d673a8e39840183ea804d5024a6d3..91f50e698c7c0d1ab66caecf3577c561740cde90 100644 (file)
 
 /*! \file dns/secalg.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_secalg_fromtext(dns_secalg_t *secalgp, isc_textregion_t *source);
 /*%<
@@ -65,5 +61,3 @@ dns_secalg_format(dns_secalg_t alg, char *cp, unsigned int size);
 /*%<
  * Wrapper for dns_secalg_totext(), writing text into 'cp'
  */
-
-ISC_LANG_ENDDECLS
index 0dc80a089f7dd88b60dc8e0f3798b3fc9ccbc9f0..f98df5c741c39595f413625b921043d310a9ed03 100644 (file)
 
 /*! \file dns/secproto.h */
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_secproto_fromtext(dns_secproto_t *secprotop, isc_textregion_t *source);
 /*%<
@@ -58,5 +54,3 @@ dns_secproto_totext(dns_secproto_t secproto, isc_buffer_t *target);
  *\li  ISC_R_SUCCESS                   on success
  *\li  ISC_R_NOSPACE                   target buffer is too small
  */
-
-ISC_LANG_ENDDECLS
index 6b2c3c71f92742a7c37f82a89b42038d794ce01f..a3e1255eb991121cb0f2cee5ee89d14aad619bc6 100644 (file)
@@ -26,8 +26,6 @@
 #include <dns/diff.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define DNS_SKR_MAGIC   ISC_MAGIC('S', 'K', 'R', '-')
 #define DNS_SKR_VALID(t) ISC_MAGIC_VALID(t, DNS_SKR_MAGIC)
 
@@ -145,5 +143,3 @@ dns_skr_destroy(dns_skr_t *skr);
  * Requires:
  * \li   'skr' is a valid SKR
  */
-
-ISC_LANG_ENDDECLS
index 4f8aa07ba52a49a8848f94ab17e2507d37c7a1b6..1f44f14c01cd9f16f69fa8fdc7f97d176ea15bcb 100644 (file)
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define DNS_SOA_BUFFERSIZE ((2 * DNS_NAME_MAXWIRE) + (4 * 5))
 
 isc_result_t
@@ -89,5 +86,3 @@ dns_soa_setminimum(uint32_t val, dns_rdata_t *rdata);
  * Requires:
  *     rdata refers to the rdata of a well-formed SOA record.
  */
-
-ISC_LANG_ENDDECLS
index b26f750911e0735ae9762c9809c6d69418e697ad..d71067bbf1a7e98d513dee06d5dbea6865fcce13 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/acl.h>
 #include <dns/types.h>
 
 #include <dst/dst.h>
 
-ISC_LANG_BEGINDECLS
-
 typedef enum {
        dns_ssumatchtype_name = 0,
        dns_ssumatchtype_subdomain = 1,
@@ -258,5 +254,3 @@ dns_ssu_mtypefromstring(const char *str, dns_ssumatchtype_t *mtype);
  *\li  #ISC_R_SUCCESS
  *\li  #ISC_R_NOTFOUND
  */
-
-ISC_LANG_ENDDECLS
index a08f0802171e5134fbf4f26af392d65270bcfb41..6384f3860312ebd079205b2bbe782866cccdc722 100644 (file)
@@ -257,8 +257,6 @@ typedef void (*dns_dnssecsignstats_dumper_t)(uint32_t, uint64_t, void *);
 typedef void (*dns_opcodestats_dumper_t)(dns_opcode_t, uint64_t, void *);
 typedef void (*dns_rcodestats_dumper_t)(dns_rcode_t, uint64_t, void *);
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_generalstats_create(isc_mem_t *mctx, dns_stats_t **statsp, int ncounters);
 /*%<
@@ -515,5 +513,3 @@ dns_rcodestats_dump(dns_stats_t *stats, dns_rcodestats_dumper_t dump_fn,
  * Requires:
  *\li  'stats' is a valid dns_stats_t created by dns_generalstats_create().
  */
-
-ISC_LANG_ENDDECLS
index db86a49ee6c8361e88905f1c9b779ae2a574476e..866d3fcebddd04de4850ad24dad9f20c1f086689 100644 (file)
@@ -22,9 +22,6 @@
 #include <inttypes.h>
 
 #include <isc/buffer.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
 
 /***
  ***   Functions
@@ -66,5 +63,3 @@ dns_time64_from32(uint32_t value);
 /*%<
  * Covert a 32-bit cyclic time value into a 64 bit time stamp.
  */
-
-ISC_LANG_ENDDECLS
index f1998beb1c9c5b1be69e9b9976fb71d16a8d1c53..5c58231c64de542bc297a3c9268f3123e2f2ca36 100644 (file)
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
 #include <dst/dst.h>
 #include <dst/gssapi.h>
 
-ISC_LANG_BEGINDECLS
-
 /* Key agreement modes */
 #define DNS_TKEYMODE_SERVERASSIGNED   1
 #define DNS_TKEYMODE_DIFFIEHELLMAN    2
@@ -139,4 +135,3 @@ dns_tkey_gssnegotiate(dns_message_t *qmsg, dns_message_t *rmsg,
  *             DNS_R_CONTINUE  additional context negotiation is required;
  *                                     send the new qmsg to the server
  */
-ISC_LANG_ENDDECLS
index edd0694df049238a0a3d3aa2bd5981de53cc86df..7fe3dcefd559d1f70b9499be7dd445fa78a4aec9 100644 (file)
@@ -18,7 +18,6 @@
 #include <stdbool.h>
 
 #include <isc/hashmap.h>
-#include <isc/lang.h>
 #include <isc/refcount.h>
 #include <isc/rwlock.h>
 #include <isc/stdio.h>
@@ -95,8 +94,6 @@ struct dns_tsigkey {
        ISC_LINK(dns_tsigkey_t) link;
 };
 
-ISC_LANG_BEGINDECLS
-
 const dns_name_t *
 dns_tsigkey_identity(const dns_tsigkey_t *tsigkey);
 /*%<
@@ -308,5 +305,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_tsigkeyring);
 ISC_REFCOUNT_DECL(dns_tsigkey);
 ISC_REFCOUNT_DECL(dns_tsigkeyring);
 #endif
-
-ISC_LANG_ENDDECLS
index 5495368125ffb95e88e5f24d50ba8c13d12fc9d0..afa7ea2c78292ac694af3022c2c198fe58249303 100644 (file)
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  ***   Functions
  ***/
@@ -73,5 +70,3 @@ dns_ttl_fromtext(isc_textregion_t *source, uint32_t *ttl);
  *\li  ISC_R_SUCCESS
  *\li  DNS_R_BADTTL
  */
-
-ISC_LANG_ENDDECLS
index 8ca1bf090e097efe633fcd6dc14e01a8d2e8a16c..ec406dca0c19798feb02efe4a281a0e96906f5f9 100644 (file)
@@ -21,8 +21,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
-
 #include <dns/diff.h>
 #include <dns/types.h>
 
@@ -32,8 +30,6 @@ typedef struct {
        void *arg;
 } dns_update_log_t;
 
-ISC_LANG_BEGINDECLS
-
 /***
  ***   Functions
  ***/
@@ -68,5 +64,3 @@ dns_update_signaturesinc(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
                         dns_dbversion_t *oldver, dns_dbversion_t *newver,
                         dns_diff_t *diff, uint32_t sigvalidityinterval,
                         dns_update_state_t **state);
-
-ISC_LANG_ENDDECLS
index 382d5c964cae6acab0a5853a9f37ef3bf8e8bb0c..e097c9861155192f701f913d7cefdc228bba2781 100644 (file)
@@ -49,7 +49,6 @@
 #include <stdbool.h>
 
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/refcount.h>
 
 #include <dns/fixedname.h>
@@ -164,8 +163,6 @@ struct dns_validator {
 #define DNS_VALIDATOR_NOCDFLAG 0x0004U
 #define DNS_VALIDATOR_NONTA    0x0008U /*% Ignore NTA table */
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
                     dns_rdataset_t *rdataset, dns_rdataset_t *sigrdataset,
@@ -264,5 +261,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_validator);
 #else
 ISC_REFCOUNT_DECL(dns_validator);
 #endif
-
-ISC_LANG_ENDDECLS
index eff61f113e83cb6f9dfbdcfae45f9a603693dd3b..edab9d2be1dd637bc349d00c4ca5b37c05f216c0 100644 (file)
@@ -57,7 +57,6 @@
 #include <stdbool.h>
 #include <stdio.h>
 
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/mutex.h>
 #include <isc/net.h>
@@ -78,8 +77,6 @@
 #include <dns/types.h>
 #include <dns/zt.h>
 
-ISC_LANG_BEGINDECLS
-
 struct dns_view {
        /* Unlocked. */
        unsigned int       magic;
@@ -1346,5 +1343,3 @@ dns_view_setmaxqueries(dns_view_t *view, uint16_t max_queries);
  *\li  'view' is valid;
  *\li  'max_queries' is greater than 0.
  */
-
-ISC_LANG_ENDDECLS
index 04ad65072d002a380350b4af29820bffa3deeae8..52c74ec91a0b603cbdd5f7cbf4e300fac15af329 100644 (file)
@@ -26,7 +26,6 @@
  *** Imports
  ***/
 
-#include <isc/lang.h>
 #include <isc/refcount.h>
 #include <isc/sockaddr.h>
 #include <isc/tls.h>
@@ -49,8 +48,6 @@ typedef struct dns_xfrin dns_xfrin_t;
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 void
 dns_xfrin_create(dns_zone_t *zone, dns_rdatatype_t xfrtype,
                 uint32_t ixfr_maxdiffs, const isc_sockaddr_t *primaryaddr,
@@ -235,4 +232,3 @@ ISC_REFCOUNT_TRACE_DECL(dns_xfrin);
 #else
 ISC_REFCOUNT_DECL(dns_xfrin);
 #endif
-ISC_LANG_ENDDECLS
index 23c89e519779b42f4b3c612561708cc8d0b99bc5..7866ac43a064955a91f047c118a92543ff5b6762 100644 (file)
@@ -24,7 +24,6 @@
 #include <stdio.h>
 
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 #include <isc/rwlock.h>
 #include <isc/tls.h>
 
@@ -150,8 +149,6 @@ typedef enum {
            * exponential backoff */
 #endif    /* ifndef DNS_ZONE_DEFAULTRETRY */
 
-ISC_LANG_BEGINDECLS
-
 /***
  ***   Functions
  ***/
@@ -2674,7 +2671,6 @@ dns_zone_setserial(dns_zone_t *zone, uint32_t serial);
 /*%
  * Set the zone's serial to 'serial'.
  */
-ISC_LANG_ENDDECLS
 
 isc_stats_t *
 dns_zone_getgluecachestats(dns_zone_t *zone);
index b093fa924d56af2c5a3e9a36de1f7c53330ae037..5b1b30a73da18348ec877eecd6e0e5af1433a662 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 bool
 dns_zonekey_iszonekey(dns_rdata_t *keyrdata);
 /*%<
@@ -31,5 +27,3 @@ dns_zonekey_iszonekey(dns_rdata_t *keyrdata);
  *     Requires:
  *             'keyrdata' is not NULL.
  */
-
-ISC_LANG_ENDDECLS
index 22a680ac536520740be72b47e517c2cc88a80e60..77f5d97eb2867ed99c970b60f582c7529981f54a 100644 (file)
@@ -21,8 +21,6 @@
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * Verify that certain things are sane:
  *
@@ -46,5 +44,3 @@ dns_zoneverify_dnssec(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver,
                      dns_name_t *origin, dns_keytable_t *secroots,
                      isc_mem_t *mctx, bool ignore_kskflag, bool keyset_kskonly,
                      void (*report)(const char *, ...));
-
-ISC_LANG_ENDDECLS
index 3ed74911c26ad170440f4b9ed5cfedf7440255c4..733f576f1ee6572cf5c6c27f3ea028559a628acf 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/rwlock.h>
 
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 typedef enum dns_ztfind {
        DNS_ZTFIND_EXACT = 1 << 0,
        DNS_ZTFIND_NOEXACT = 1 << 1,
@@ -215,5 +212,3 @@ dns_zt_setviewrevert(dns_zt_t *zt);
  * Requires:
  *\li  'zt' to be valid.
  */
-
-ISC_LANG_ENDDECLS
index c63a743f81694efb23240e299e5d07c65e3151b2..33866d66821be1189a1d87b89683192ee056d484 100644 (file)
@@ -18,7 +18,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/log.h>
 #include <isc/stdtime.h>
 
@@ -30,8 +29,6 @@
 
 #include <dst/gssapi.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Types
  ***/
@@ -1232,5 +1229,3 @@ dst_hmac_algorithm_totext(dst_algorithm_t alg);
  * Return the name associtated with the HMAC algorithm 'alg'
  * or return "unknown".
  */
-
-ISC_LANG_ENDDECLS
index 494b4b0762ba8dd8a30b7ef74517f5b8c49bd186..5c6f0d203d71a29c9f0e2f8ec76fd5396a1885de 100644 (file)
@@ -19,7 +19,6 @@
 #include <stdbool.h>
 
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <dns/types.h>
@@ -27,8 +26,6 @@
 typedef void *dns_gss_cred_id_t;
 typedef void *dns_gss_ctx_id_t;
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Types
  ***/
@@ -188,5 +185,3 @@ dst_gssapi_identitymatchesrealmms(const dns_name_t *signer,
  *     in "name" (which represents the realm name).
  *
  */
-
-ISC_LANG_ENDDECLS
index 3af1723447061dd94061c2279f127242bf29817e..23a5b82873c989ccd0b42c17620847e595f6edf9 100644 (file)
@@ -13,7 +13,6 @@
 
 #pragma once
 
-#include <isc/lang.h>
 #include <isc/list.h>
 #include <isc/types.h>
 
@@ -39,8 +38,6 @@ typedef struct irs_resconf_search {
 
 typedef ISC_LIST(irs_resconf_search_t) irs_resconf_searchlist_t;
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp);
 /*%<
@@ -136,5 +133,3 @@ irs_resconf_gettimeout(irs_resconf_t *conf);
  *
  *\li  'conf' is a valid resconf object.
  */
-
-ISC_LANG_ENDDECLS
index 63ffc584cb983df261001a3f6664e1a0db6e4fe4..041241cd719c511d08d1edfd5c335e8281e137a8 100644 (file)
@@ -14,7 +14,6 @@
 #pragma once
 
 #include <isc/heap.h>
-#include <isc/lang.h>
 #include <isc/urcu.h>
 
 #include <dns/nsec3.h>
@@ -30,8 +29,6 @@
  * DNS QPDB Implementation (minimally adapted from RBTDB)
  */
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns__qpcache_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
                    dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
@@ -48,4 +45,3 @@ dns__qpcache_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
  *
  * \li argc == 0 or argv[0] is a valid memory context.
  */
-ISC_LANG_ENDDECLS
index 23cd4ef1919795cfd41fe989b1623450c44c75c4..45502f95a26e29fc12044262e6d2a0e04361f725 100644 (file)
@@ -14,7 +14,6 @@
 #pragma once
 
 #include <isc/heap.h>
-#include <isc/lang.h>
 #include <isc/urcu.h>
 
 #include <dns/nsec3.h>
@@ -30,8 +29,6 @@
  * DNS QP-Trie DB Implementation
  */
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 dns__qpzone_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
                   dns_rdataclass_t rdclass, unsigned int argc, char **argv,
@@ -48,4 +45,3 @@ dns__qpzone_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
  *
  * \li argc == 0 or argv[0] is a valid memory context.
  */
-ISC_LANG_ENDDECLS
index 828d7f0a3b62b5d3b1e355590facec9d476caee0..b3128a87ff0103104ad5bfd9e1d1573b0f66c179 100644 (file)
@@ -23,8 +23,3 @@ typedef struct dns_rdata_avc {
        /* private */
        uint16_t offset;
 } dns_rdata_avc_t;
-
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
index 66cf9482b5224a866351b0c373e6ecebcc560f5f..b19737558c7651f5dc01aa4bb161b62f9fdfb724 100644 (file)
@@ -18,11 +18,6 @@ typedef struct dns_rdata_txt_string dns_rdata_ninfo_string_t;
 
 typedef struct dns_rdata_txt dns_rdata_ninfo_t;
 
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
 isc_result_t
 dns_rdata_ninfo_first(dns_rdata_ninfo_t *);
 
index 2198fde7728f420e56225fba273cea498fbab401..1842b0dc83f950ad0daa7a061a6fc93c9db246d3 100644 (file)
@@ -31,11 +31,6 @@ typedef struct dns_rdata_opt {
        uint16_t offset;
 } dns_rdata_opt_t;
 
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
 isc_result_t
 dns_rdata_opt_first(dns_rdata_opt_t *);
 
index a40365bacbc996c6aa961e0df240a4b116832b81..67218881a8b5e69fa37962fdabed7c8a9939c4a6 100644 (file)
@@ -26,8 +26,3 @@ typedef struct dns_rdata_resinfo {
        /* private */
        uint16_t offset;
 } dns_rdata_resinfo_t;
-
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
index f0963ed28d55855ce9877648bbc8dd1b2d6921ef..cffe055a666129e4c07714020a68b27520ae4f62 100644 (file)
@@ -26,8 +26,3 @@ typedef struct dns_rdata_spf {
        /* private */
        uint16_t offset;
 } dns_rdata_spf_t;
-
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
index 3e4c58ad7a9dfecf927799a144b0b5f792fd7dbd..c27b0a2c40349515435b7acec2e45e9a46d2023a 100644 (file)
@@ -28,11 +28,6 @@ typedef struct dns_rdata_txt {
        uint16_t offset;
 } dns_rdata_txt_t;
 
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
 isc_result_t
 dns_rdata_txt_first(dns_rdata_txt_t *);
 
index ca552ca42790d3e4b76a510028e6bf74753f1f20..9ac7b331c1996c95f1a61c728e97ff83a3452f3e 100644 (file)
@@ -18,11 +18,6 @@ typedef struct dns_rdata_txt_string dns_rdata_wallet_string_t;
 
 typedef struct dns_rdata_txt dns_rdata_wallet_t;
 
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
 isc_result_t
 dns_rdata_wallet_first(dns_rdata_wallet_t *);
 
index 0a3f7ac40f4cc596e7c2f1b329f3673d54fad76a..2408e6c2edeb19908214ffbf1e5efa51088318b1 100644 (file)
@@ -32,11 +32,6 @@ typedef struct dns_rdata_in_apl {
        uint16_t offset;
 } dns_rdata_in_apl_t;
 
-/*
- * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
- * via rdatastructpre.h and rdatastructsuf.h.
- */
-
 isc_result_t
 dns_rdata_apl_first(dns_rdata_in_apl_t *);
 
index 4fe31b1af1493bf40551b433d7d489fa2ccc6f20..f2019ac2dfd44d9d219f2f53b39a93123d2ebc4e 100644 (file)
 
 #pragma once
 
-#include <isc/lang.h>
 #include <isc/sockaddr.h>
 
 #include <dns/name.h>
 #include <dns/types.h>
 
-ISC_LANG_BEGINDECLS
-
 typedef struct dns_rdatacommon {
        dns_rdataclass_t rdclass;
        dns_rdatatype_t rdtype;
index c3ec424e6d2c7df7bd1f71d3bd1c1b7934830a5a..5ab4314b50b18ee483c1d26de623c071f8897427 100644 (file)
@@ -10,5 +10,3 @@
  * See the COPYRIGHT file distributed with this work for additional
  * information regarding copyright ownership.
  */
-
-ISC_LANG_ENDDECLS
index 42316a06088d341c7c3a6947d5fbdb4f2f56f85e..9b43c762f5ae0f4dc9897278858e3bd10aae5e0d 100644 (file)
  *     its associated unit tests.
  */
 
-ISC_LANG_BEGINDECLS
-
 bool
 dns__tsig_algvalid(unsigned int alg);
 dst_algorithm_t
 dns__tsig_algfromname(const dns_name_t *algorithm);
-
-ISC_LANG_ENDDECLS
index 16ee0e522a3d851c3a1d48a4c4d8b5fcc7c32514..3cd21982bcc7647afb498bdde44776a7c5bb6240 100644 (file)
@@ -22,8 +22,6 @@
  *     associated unit tests.
  */
 
-ISC_LANG_BEGINDECLS
-
 typedef struct {
        dns_diff_t *diff;
        bool offline;
@@ -40,5 +38,3 @@ isc_result_t
 dns__zone_lookup_nsec3param(dns_zone_t *zone, dns_rdata_nsec3param_t *lookup,
                            dns_rdata_nsec3param_t *param,
                            unsigned char saltbuf[255], bool resalt);
-
-ISC_LANG_ENDDECLS
index 277e5e951e4db6e62740751da5633464cfd6c52e..d60ccd03b16639b55f7553c56bc17621f9d0e0c3 100644 (file)
@@ -41,7 +41,6 @@ libisc_la_HEADERS =                   \
        include/isc/interfaceiter.h     \
        include/isc/iterated_hash.h     \
        include/isc/job.h               \
-       include/isc/lang.h              \
        include/isc/lex.h               \
        include/isc/list.h              \
        include/isc/log.h               \
index 80fee698e0ab9dede639124fe7c47e3b19d12a47..96eb059b805a2c9794d5094482eb2745557ade1e 100644 (file)
 #include <errno.h> /* Provides errno. */
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define isc__errno2result(x) isc___errno2result(x, true, __FILE__, __LINE__)
 
 isc_result_t
 isc___errno2result(int posixerrno, bool dolog, const char *file,
                   unsigned int line);
-
-ISC_LANG_ENDDECLS
index 03e90414eb7cbc572be3471c2b6caf5fd86ff00e..49182be1c85c986d81dd290490fa7729bf51ee54 100644 (file)
@@ -17,9 +17,6 @@
 #pragma once
 
 #include <isc/attributes.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
 
 /*% isc assertion type */
 typedef enum {
@@ -69,5 +66,3 @@ isc_assertion_typetotext(isc_assertiontype_t type);
        (isc_assertion_failed(__FILE__, __LINE__, isc_assertiontype_insist, \
                              "unreachable"),                               \
         __builtin_unreachable())
-
-ISC_LANG_ENDDECLS
index 2b94cd78e0946bbfb72e83dba31994243bb1ef88..78e16c2d96841497d99fec85660c0d2280790389 100644 (file)
 #include <inttypes.h>
 
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/loop.h>
 #include <isc/mem.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_async_run(isc_loop_t *loop, isc_job_cb cb, void *cbarg);
 /*%<
@@ -49,5 +46,3 @@ isc_async_run(isc_loop_t *loop, isc_job_cb cb, void *cbarg);
 /*%<
  * Helper macro to run the job on the current loop
  */
-
-ISC_LANG_ENDDECLS
index 2198f2a408874e21a72a1dd01486d0aa80c510b5..dbb6f2b7f014cc6425c6f49246ba2ee1e805f50f 100644 (file)
@@ -46,7 +46,6 @@
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
 int
 isc_backtrace(void **addrs, int maxaddrs);
 /*%<
@@ -111,5 +110,3 @@ isc_backtrace_log(isc_logcategory_t category, isc_logmodule_t module,
 /*
  * Write a backtrace to the log.
  */
-
-ISC_LANG_ENDDECLS
index 1faa6296ea7aef4a4455cc64e1584dce01b78105..31ef37aed3a25f689286b04ed76831deae6e2f41 100644 (file)
  * Base 32 hex "np" is base 32 hex but no padding is produced or accepted.
  */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Functions
  ***/
@@ -139,5 +136,3 @@ isc_base32hexnp_decoderegion(isc_region_t *source, isc_buffer_t *target);
  *                         fit in 'target'.
  *\li   #ISC_R_BADBASE32 -- 'source' is not a valid base32 encoding.
  */
-
-ISC_LANG_ENDDECLS
index b1bc0892df9bd317534043434a527a8d858e80a3..8eba7826ab6acf5094794f1ec9fa081cae552d06 100644 (file)
 
 /*! \file isc/base64.h */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Functions
  ***/
@@ -94,5 +91,3 @@ isc_base64_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length);
  *     be read, if `length` is non-negative.  The 'used' pointer in
  *     'target' will be advanced as necessary.
  */
-
-ISC_LANG_ENDDECLS
index 6d62415461b365cae94ae0633aecfb2aa2c934d3..9cd508bfd31717ad4e0c45689f67c0406da933ab 100644 (file)
 #include <isc/assertions.h>
 #include <isc/endian.h>
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 #include <isc/list.h>
 #include <isc/magic.h>
 #include <isc/mem.h>
 #include <isc/types.h>
 #include <isc/util.h>
 
-ISC_LANG_BEGINDECLS
-
 /*@{*/
 /*!
  *** Magic numbers
@@ -1257,5 +1254,3 @@ isc_buffer_printf(isc_buffer_t *restrict b, const char *restrict format, ...) {
 
        return ISC_R_SUCCESS;
 }
-
-ISC_LANG_ENDDECLS
index ac721359ffd72df38afe74d85766b84516dbcf93..2caec1f1d1df0dbcf7194656a38f6e0a4d8460c0 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/result.h>
 #include <isc/types.h>
 
@@ -34,8 +33,6 @@ extern bool isc_commandline_errprint;
 /*% Reset getopt. */
 extern bool isc_commandline_reset;
 
-ISC_LANG_BEGINDECLS
-
 int
 isc_commandline_parse(int argc, char *const *argv, const char *options);
 /*%<
@@ -52,5 +49,3 @@ isc_commandline_strtoargv(isc_mem_t *mctx, char *s, unsigned int *argcp,
  * must free the array using isc_mem_free().  The string
  * is modified in-place.
  */
-
-ISC_LANG_ENDDECLS
index 4d820ab4b8cc1e0b133bd14d67ae671ee845d747..27f2b80c7398b885b02bde6e32416fc702d1b4a4 100644 (file)
 #include <stdlib.h>
 
 #include <isc/error.h>
-#include <isc/lang.h>
 #include <isc/mutex.h>
 #include <isc/result.h>
 #include <isc/string.h>
 #include <isc/types.h>
 #include <isc/util.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * We use macros instead of static inline functions so that the exact code
  * location can be reported when PTHREADS_RUNTIME_CHECK() fails or when mutrace
@@ -98,5 +95,3 @@ typedef pthread_cond_t isc_condition_t;
 
 isc_result_t
 isc__condition_waituntil(pthread_cond_t *, pthread_mutex_t *, isc_time_t *);
-
-ISC_LANG_ENDDECLS
index 385b08cd4f61692cae737010162433d0e3ec59a3..68fbf0ade4231d4d71f6a954f84472c5fcd3362b 100644 (file)
@@ -30,7 +30,6 @@
  *** Imports.
  ***/
 
-#include <isc/lang.h>
 #include <isc/mutex.h>
 #include <isc/types.h>
 
@@ -38,8 +37,6 @@
 ***** Types.
 *****/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_counter_create(isc_mem_t *mctx, int limit, isc_counter_t **counterp);
 /*%<
@@ -86,5 +83,3 @@ isc_counter_detach(isc_counter_t **counterp);
  * Detach (and destroy if reference counter has dropped to zero)
  * a counter object.
  */
-
-ISC_LANG_ENDDECLS
index 51db17f75adf4eadffa3ad9d76f00cffbe4c5d43..2b25b4164f76e79ef69fc87460e497a96b4c7124 100644 (file)
@@ -19,7 +19,6 @@
 #include <limits.h>
 #include <sys/types.h> /* Required on some systems. */
 
-#include <isc/lang.h>
 #include <isc/result.h>
 
 #ifndef NAME_MAX
@@ -44,8 +43,6 @@ typedef struct isc_dir {
        DIR           *handle;
 } isc_dir_t;
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_dir_init(isc_dir_t *dir);
 
@@ -66,5 +63,3 @@ isc_dir_chdir(const char *dirname);
 
 isc_result_t
 isc_dir_chroot(const char *dirname);
-
-ISC_LANG_ENDDECLS
index 4e2dc5f884231c206f1cc1522cb8c8d7445cacc7..81c2ed7cac4815c24cf25a4655fc9470745540b6 100644 (file)
@@ -15,8 +15,6 @@
 
 #include <stdlib.h>
 
-#include <isc/lang.h>
-
 /*! \file isc/entropy.h
  * \brief Implements wrapper around CSPRNG cryptographic library calls
  * for getting cryptographically secure pseudo-random numbers.
  * Uses synchronous version of uv_random().
  */
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_entropy_get(void *buf, size_t buflen);
 /*!<
  * \brief Get cryptographically-secure pseudo-random data.
  */
-
-ISC_LANG_ENDDECLS
index 0151df38ea5a29daa4ecf3b41f35af69d635491c..fb62149468bd7193a26ce25352b41fbf3fca500d 100644 (file)
 
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_errno_toresult(int err);
 /*!<
  * \brief Convert a POSIX errno value to an ISC result code.
  */
-ISC_LANG_ENDDECLS
index fe7b5c62089fbadcfd489b795a975d909f7ff71b..b6eb7d5920ac12aa40614225aa430bd66c51dd47 100644 (file)
@@ -19,9 +19,6 @@
 
 #include <isc/attributes.h>
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
 
 typedef void (*isc_errorcallback_t)(const char *, int, const char *,
                                    const char *, va_list);
@@ -41,5 +38,3 @@ isc_error_unexpected(const char *, int, const char *, const char *, ...)
 ISC_NORETURN void
 isc_error_fatal(const char *, int, const char *, const char *, ...)
        ISC_FORMAT_PRINTF(4, 5);
-
-ISC_LANG_ENDDECLS
index 61365a32d2399161618c70a8e4558cec7d8cbee3..5db3a9cb4414b4aaf5e0896b941bbd509d1c75a9 100644 (file)
 #include <stdio.h>
 #include <sys/stat.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_file_settime(const char *file, isc_time_t *time);
 
@@ -369,5 +366,3 @@ isc_file_isdirwritable(const char *path);
 /*%<
  *     Return true if the path is a directory and is writable
  */
-
-ISC_LANG_ENDDECLS
index c75ac71361f9beae36991a11817c1bb683e80260..087197b8d30feef0ab60f20bbc2fdccccd95f401 100644 (file)
  *** Imports
  ***/
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Functions
  ***/
@@ -41,5 +38,3 @@ isc_fips_set_mode(int mode);
 /*
  * Enable FIPS mode.
  */
-
-ISC_LANG_ENDDECLS
index 00b405161b2977b797f284934874fdca77ec628d..8fe3e3c1bb59d4c7468841a63e7c4b7be6ee1cc7 100644 (file)
 
 /*! \file isc/getaddresses.h */
 
-#include <isc/lang.h>
 #include <isc/net.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_getaddresses(const char *hostname, in_port_t port, isc_sockaddr_t *addrs,
                 int addrsize, int *addrcount);
@@ -48,5 +45,3 @@ isc_getaddresses(const char *hostname, in_port_t port, isc_sockaddr_t *addrs,
  *\li  #ISC_R_FAMILYNOSUPPORT - 'hostname' is an IPv6 address, and IPv6 is
  *             not supported.
  */
-
-ISC_LANG_ENDDECLS
index bee5a8332d5b59ab09fb23632d0de7ec0af83fc2..676df77de8474be1bbc7a3b3831a7b333fc07bba 100644 (file)
@@ -17,7 +17,6 @@
 #include <stdbool.h>
 
 #include <isc/assertions.h>
-#include <isc/lang.h>
 #include <isc/siphash.h>
 #include <isc/types.h>
 #include <isc/util.h>
@@ -33,7 +32,6 @@ typedef struct isc_siphash24   isc_hash64_t;
 /***
  *** Functions
  ***/
-ISC_LANG_BEGINDECLS
 
 void
 isc__hash_initialize(void);
@@ -118,5 +116,3 @@ isc_hash_bits32(uint32_t val, unsigned int bits) {
        /* High bits are more random. */
        return val * ISC_HASH_GOLDENRATIO_32 >> (32 - bits);
 }
-
-ISC_LANG_ENDDECLS
index 98ae74c3f7d2c2997350f18e20420dcd431a581f..d0c4f8e11a0be5109cda1d99b744ec9f0e130f39 100644 (file)
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * The comparison function returns true if the first argument has
  * higher priority than the second argument, and false otherwise.
@@ -157,5 +154,3 @@ isc_heap_foreach(isc_heap_t *heap, isc_heapaction_t action, void *uap);
  *\li  The heap structure CANNOT be modified during this iteration.  The only
  *     safe function to call while iterating the heap is isc_heap_element().
  */
-
-ISC_LANG_ENDDECLS
index fa13f0baf20dff6c86e3922a7aa27a97cc5f6461..e13ec9b5c021c73ed411379da902f1332bd6ec07 100644 (file)
 #include <inttypes.h>
 
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/loop.h>
 #include <isc/mem.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_helper_run(isc_loop_t *loop, isc_job_cb cb, void *cbarg);
 /*%<
@@ -41,5 +38,3 @@ isc_helper_run(isc_loop_t *loop, isc_job_cb cb, void *cbarg);
 /*%<
  * Helper macro to run the job on the current loop
  */
-
-ISC_LANG_ENDDECLS
index 4599bfc893e0aeed0b38550a7dd8d5c9248e5042..dd36f943913b890ddc0d0f469fa603cbc0f92338 100644 (file)
 
 /*! \file isc/hex.h */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * An `isc__hex_char` table entry is non-zero if the character is a hex digit;
  * You can subtract the table entry from the character to convert the hex digit
@@ -107,5 +104,3 @@ isc_hex_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length);
  *     be read, if `length` is non-negative.  The 'used' pointer in
  *     'target' will be advanced as necessary.
  */
-
-ISC_LANG_ENDDECLS
index 68b63d478a9e0cc83fb63be6f51f7e8d3e6dbcc0..0a6ba8c4ff14857d77c543e6e2d6f4e2e279a51d 100644 (file)
@@ -18,7 +18,6 @@
 
 #pragma once
 
-#include <isc/lang.h>
 #include <isc/md.h>
 #include <isc/result.h>
 #include <isc/types.h>
index c696091bbb53a157aa8d9b6e5758e6690f11c260..9aad357402cc0cd0479fc82a6401cd7e7127a621 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/netaddr.h>
 #include <isc/types.h>
 
@@ -66,8 +65,6 @@ struct isc_interface {
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp);
 /*!<
@@ -123,5 +120,3 @@ isc_interfaceiter_destroy(isc_interfaceiter_t **iterp);
 /*!<
  * \brief Destroy the iterator.
  */
-
-ISC_LANG_ENDDECLS
index cb21761c962ac4a16a6491e5a823340dba8f07c7..c96753b632f3137ddfd7ad1870b6e54e7cff4298 100644 (file)
@@ -13,8 +13,6 @@
 
 #pragma once
 
-#include <isc/lang.h>
-
 /*
  * The maximal hash length that can be encoded in a name
  * using base32hex.  floor(255/8)*5
@@ -27,8 +25,6 @@
  */
 #define NSEC3_MAX_LABEL_HASH 35
 
-ISC_LANG_BEGINDECLS
-
 int
 isc_iterated_hash(unsigned char *out, const unsigned int hashalg,
                  const int iterations, const unsigned char *salt,
@@ -43,5 +39,3 @@ void
 isc__iterated_hash_initialize(void);
 void
 isc__iterated_hash_shutdown(void);
-
-ISC_LANG_ENDDECLS
index 9a44974c251b38f14a67f599a68c67986a3e3b71..3a92aa0c72e1d3d32ecb57c13d091c90d89103eb 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/mem.h>
 #include <isc/refcount.h>
 #include <isc/types.h>
@@ -47,8 +46,6 @@ struct isc_job {
                .link = ISC_LINK_INITIALIZER, \
        }
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_job_run(isc_loop_t *loop, isc_job_t *job, isc_job_cb cb, void *cbarg);
 /*%<
@@ -62,5 +59,3 @@ isc_job_run(isc_loop_t *loop, isc_job_t *job, isc_job_cb cb, void *cbarg);
  *\li  'cb' is a callback function, must be non-NULL
  *\li  'cbarg' is passed to the 'cb' as the only argument, may be NULL
  */
-
-ISC_LANG_ENDDECLS
diff --git a/lib/isc/include/isc/lang.h b/lib/isc/include/isc/lang.h
deleted file mode 100644 (file)
index b7e88a5..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * SPDX-License-Identifier: MPL-2.0
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, you can obtain one at https://mozilla.org/MPL/2.0/.
- *
- * See the COPYRIGHT file distributed with this work for additional
- * information regarding copyright ownership.
- */
-
-#pragma once
-
-/*! \file isc/lang.h */
-
-#ifdef __cplusplus
-#define ISC_LANG_BEGINDECLS extern "C" {
-#define ISC_LANG_ENDDECLS   }
-#else /* ifdef __cplusplus */
-#define ISC_LANG_BEGINDECLS
-#define ISC_LANG_ENDDECLS
-#endif /* ifdef __cplusplus */
index 2579ea46476b0a0258f77f29883ffd9402b8a3b4..9ce051c6f3f98f7e4a0e218833ea0cd9bb67e857 100644 (file)
 #include <stdbool.h>
 #include <stdio.h>
 
-#include <isc/lang.h>
 #include <isc/region.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Options
  ***/
@@ -440,5 +437,3 @@ isc_lex_isfile(isc_lex_t *lex);
  * \li #true if the current input is a file,
  *\li  #false otherwise.
  */
-
-ISC_LANG_ENDDECLS
index 3469c4bdede92b678c5e6b085c88befae4c2e013..c076aff901a194702b8d183c424b2dcabba058ee 100644 (file)
@@ -22,7 +22,6 @@
 #include <syslog.h> /* XXXDCL NT */
 
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 #include <isc/types.h>
 #include <isc/util.h>
 
@@ -297,8 +296,6 @@ extern isc_logcategory_t isc_categories[];
 extern isc_logmodule_t  isc_modules[];
 /*@}*/
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_logconfig_create(isc_logconfig_t **lcfgp);
 /*%<
@@ -768,5 +765,3 @@ isc__log_shutdown(void);
 /*%<
  * Library constructor/destructor
  */
-
-ISC_LANG_ENDDECLS
index fe3545115a12904b72072eccb8ce48e1df8d286b..ae263d4e83c050f1e751191bf8366b20d31b93ff 100644 (file)
@@ -16,7 +16,6 @@
 #include <inttypes.h>
 
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/mem.h>
 #include <isc/refcount.h>
 #include <isc/types.h>
@@ -25,8 +24,6 @@ typedef void (*isc_job_cb)(void *);
 
 /* Add -DISC_LOOP_TRACE=1 to CFLAGS for detailed reference tracing */
 
-ISC_LANG_BEGINDECLS
-
 /*%<
  * Returns the current running loop.
  */
@@ -225,4 +222,3 @@ isc_loop_shuttingdown(isc_loop_t *loop);
  *
  * \li 'loop' is a valid loop and the loop tid matches the current tid.
  */
-ISC_LANG_ENDDECLS
index e2ecb76dd060dcf0290d6e57e526aa5bd3a43039..41c3447565c46e4cd32adb07cbb5512260a8e3d6 100644 (file)
@@ -19,7 +19,6 @@
 #pragma once
 
 #include <isc/crypto.h>
-#include <isc/lang.h>
 #include <isc/result.h>
 #include <isc/types.h>
 
index 2ee8c9e20027ead50aa7364e9e2db4646c42dc4a..789efee2cbe93cc8ed1de9c1825ea76b23e3aa81 100644 (file)
 #include <stdio.h>
 
 #include <isc/attributes.h>
-#include <isc/lang.h>
 #include <isc/mutex.h>
 #include <isc/overflow.h>
 #include <isc/types.h>
 #include <isc/urcu.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * Define ISC_MEM_TRACKLINES=1 to turn on detailed tracing of memory
  * allocation and freeing by file and line number.
@@ -548,5 +545,3 @@ isc__mempool_put(isc_mempool_t *, void *_ISC_MEM_FLARG);
  */
 #pragma pop_macro("malloc")
 #endif
-
-ISC_LANG_ENDDECLS
index fc39e268439f554f3ca4b506b8b6e98b6f5d180a..dfea93a078bd3b3a7cb99e494d87a0a2246c1b81 100644 (file)
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 uint64_t
 isc_meminfo_totalphys(void);
 /*%<
  * Return total available physical memory in bytes, or 0 if this cannot
  * be determined
  */
-
-ISC_LANG_ENDDECLS
index df249223365eb5e44caba2d92d151be4fb1bd7c0..a975b0d0650f21b0ac5536c68dac2d580854a6ad 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 
-#include <isc/lang.h>
 #include <isc/result.h> /* for ISC_R_ codes */
 #include <isc/util.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * We use macros instead of static inline functions so that the exact code
  * location can be reported when PTHREADS_RUNTIME_CHECK() fails or when mutrace
@@ -89,5 +86,3 @@ extern pthread_mutexattr_t isc__mutex_init_attr;
                int _ret = pthread_mutex_destroy(mp);                \
                PTHREADS_RUNTIME_CHECK(pthread_mutex_destroy, _ret); \
        }
-
-ISC_LANG_ENDDECLS
index f5f2e32e8e7b2a10823a97615dbf768649c1c647..7251efe0e5e15fbcc286a7b4984ad49aaae594e2 100644 (file)
 
 /*! \file isc/mutexblock.h */
 
-#include <isc/lang.h>
 #include <isc/mutex.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_mutexblock_init(isc_mutex_t *block, unsigned int count);
 /*%<
@@ -50,5 +47,3 @@ isc_mutexblock_destroy(isc_mutex_t *block, unsigned int count);
  *     the whole block was initialized via isc_mutex_initblock().
  *
  */
-
-ISC_LANG_ENDDECLS
index 7d7ad6b7e120c728fb51dd2ee48dcb91dc3194ce..4c83db2a1b3958f8cd70f641f7aa516816bc1f81 100644 (file)
@@ -72,7 +72,6 @@
 #include <sys/socket.h> /* Contractual promise. */
 #include <sys/types.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #ifndef IN6ADDR_LOOPBACK_INIT
  *** Functions.
  ***/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_net_probeipv4(void);
 /*%<
@@ -235,5 +232,3 @@ isc_net_getudpportrange(int af, in_port_t *low, in_port_t *high);
  *\li  *low and *high will be the ports specifying the low and high ends of
  *     the range.
  */
-
-ISC_LANG_ENDDECLS
index d8797776f35055749b63fec88de2fa60744cd387..6e7004a9a9985703438bd694a21f37b3c239dfcb 100644 (file)
 #include <sys/types.h>
 #include <sys/un.h>
 
-#include <isc/lang.h>
 #include <isc/net.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * Any updates to this structure should also be applied in
  * https://gitlab.isc.org/isc-projects/dlz-modules/-/raw/main/modules/include/dlz_minimal.h
@@ -190,4 +187,3 @@ isc_netaddr_isloopback(const isc_netaddr_t *na);
  * Test whether the netaddr 'na' is a loopback IPv4 or IPv6 address (in
  * 127.0.0.0/8 or ::1).
  */
-ISC_LANG_ENDDECLS
index 307864af7675ff233c77c63d964550c6da4e6e5e..8cb66a991ace41b4d283ac6eb22dfc475dfdfce7 100644 (file)
@@ -17,8 +17,6 @@
 
 #include <inttypes.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * Convert a string of an IPv6 scope zone to zone index.  If the conversion
  * succeeds, 'zoneid' will store the index value.
@@ -32,5 +30,3 @@ ISC_LANG_BEGINDECLS
  */
 isc_result_t
 isc_netscope_pton(int af, char *scopename, void *addr, uint32_t *zoneid);
-
-ISC_LANG_ENDDECLS
index b593e41445626eaf78e68a684bc4404ca864e5bb..ce15b7e12a215d18db567000e411523a7f88129f 100644 (file)
 
 #include <stdlib.h>
 
-#include <isc/lang.h>
-
 /*! \file isc/nonce.h
  * \brief Provides a function for generating an arbitrarily long nonce.
  */
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_nonce_buf(void *buf, size_t buflen);
 /*!<
  * Fill 'buf', up to 'buflen' bytes, with random data from the
  * crypto provider's random function.
  */
-
-ISC_LANG_ENDDECLS
index 32770b992f9597917a1ebf7e0ae2d6b67320b8d4..85b5d80746af008887716265ac0fb518d2174a6b 100644 (file)
 /*! \file isc/os.h */
 #include <sys/stat.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%<
  * Hardcode the L1 cacheline size of the CPU to 64, this is checked in
  * the os.c library constructor if operating system provide means to
@@ -48,5 +45,3 @@ isc_os_umask(void);
 /*%<
  * Return umask of the current process as initialized at the program start
  */
-
-ISC_LANG_ENDDECLS
index aa54772a7908ab17e4fa098c57f76d3b5ccaff9f..9565d5f32ae0e0baf88ae09536178461d4c5fa18 100644 (file)
@@ -15,7 +15,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 /*! \file isc/parseint.h
@@ -26,8 +25,6 @@
  ***   Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_parse_uint32(uint32_t *uip, const char *string, int base);
 
@@ -53,5 +50,3 @@ isc_parse_uint8(uint8_t *uip, const char *string, int base);
  *\li  #ISC_R_BADNUMBER   The string is not numeric (in the given base)
  *\li  #ISC_R_RANGE      The number is not representable as the requested type.
  */
-
-ISC_LANG_ENDDECLS
index fa5d51e5d6c070c924062b463394b198efc9d572..30aa11f8383ec29ec9aa5d1bf4a73c1296a021fd 100644 (file)
@@ -37,8 +37,6 @@
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_portset_create(isc_mem_t *mctx, isc_portset_t **portsetp);
 /*%<
@@ -131,5 +129,3 @@ isc_portset_removerange(isc_portset_t *portset, in_port_t port_lo,
  *\li  'portlist' to be valid.
  *\li  port_lo <= port_hi
  */
-
-ISC_LANG_ENDDECLS
index b831ee74ca3208072036e38ea7045fb6a8f9d651..175e5052ce33386b50be37db924f177f056defe0 100644 (file)
@@ -50,8 +50,6 @@
 #define ISC_PROXY2_TLS_SUBHEADER_MIN_SIZE \
        (1 /* client_flags */ + 4 /* verify */)
 
-ISC_LANG_BEGINDECLS
-
 typedef enum isc_proxy2_command {
        ISC_PROXY2_CMD_ILLEGAL = -1,
        /*
@@ -851,5 +849,3 @@ isc_proxy2_append_tlv_string(isc_buffer_t *restrict outbuf, const uint8_t type,
  *\li  'ISC_R_NOSPACE' - not enough data in the output buffer
  *\li  'ISC_R_RANGE' - too much data for PROXYv2 header.
  */
-
-ISC_LANG_ENDDECLS
index 5597b9fda12af7522e6abb74962456c72b720450..da5b3465c19f013ca2074e17573089c5a709b3e5 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <isc/atomic.h>
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/magic.h>
 #include <isc/mutex.h>
 #include <isc/os.h>
@@ -46,8 +45,6 @@
 
 /* Add -DISC_QUOTA_TRACE=1 to CFLAGS for detailed reference tracing */
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * isc_quota structure
  *
@@ -142,5 +139,3 @@ isc_quota_release(isc_quota_t *quota);
 /*%<
  * Release one unit of quota.
  */
-
-ISC_LANG_ENDDECLS
index 79f1f9de2cb97354aea8cb7338157734290fd4b9..213e979ec6bc78510ea3b092e842f4ba045fd161 100644 (file)
@@ -16,7 +16,6 @@
 #include <inttypes.h>
 #include <stdlib.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 /*! \file isc/random.h
@@ -25,8 +24,6 @@
  *
  */
 
-ISC_LANG_BEGINDECLS
-
 uint8_t
 isc_random8(void);
 /*!<
@@ -67,5 +64,3 @@ isc_random_uniform(uint32_t upper_bound);
  * resample is very small when the upper_bound is small, rising to 0.5
  * when upper_bound is UINT32_MAX/2.
  */
-
-ISC_LANG_ENDDECLS
index d5510cf97865da23a47dea4a19fb68af1a239243..d4834bf4fd51c6a41ead2b4b9b4f40e656898be9 100644 (file)
@@ -30,7 +30,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/loop.h>
 #include <isc/time.h>
 #include <isc/types.h>
@@ -44,8 +43,6 @@ struct isc_rlevent {
        ISC_LINK(isc_rlevent_t) link;
 };
 
-ISC_LANG_BEGINDECLS
-
 /*****
 ***** Functions.
 *****/
@@ -138,5 +135,3 @@ ISC_REFCOUNT_DECL(isc_ratelimiter);
 /*%<
  * The rate limiter reference counting.
  */
-
-ISC_LANG_ENDDECLS
index 82f5796bd601d8f3ae3d541a8dd1b19e58710053..eb4efed40198a5b29238d28f270ae59ab1f79a6a 100644 (file)
@@ -18,7 +18,6 @@
 #include <isc/assertions.h>
 #include <isc/atomic.h>
 #include <isc/error.h>
-#include <isc/lang.h>
 #include <isc/mutex.h>
 #include <isc/tid.h>
 #include <isc/types.h>
@@ -30,8 +29,6 @@
  * counting.  The isc_refcount_t type must not be accessed directly.
  */
 
-ISC_LANG_BEGINDECLS
-
 typedef atomic_uint_fast32_t isc_refcount_t;
 
 #define ISC_REFCOUNT_INITIALIZER(a) (a)
@@ -235,5 +232,3 @@ typedef atomic_uint_fast32_t isc_refcount_t;
        ISC__REFCOUNT_IMPL(name, destroy, ISC_REFCOUNT_BLANK)
 #define ISC_REFCOUNT_STATIC_IMPL(name, destroy) \
        ISC__REFCOUNT_IMPL(name, destroy, static inline)
-
-ISC_LANG_ENDDECLS
index 989d7b1219caf6d66537722e8f08ad445b9c69ca..ca7ff8499f0686082502e3dbc7bd4b1ee09596b5 100644 (file)
 
 /*! \file isc/regex.h */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 int
 isc_regex_validate(const char *expression);
 /*%<
@@ -29,5 +26,3 @@ isc_regex_validate(const char *expression);
  *\li   -1 on error.
  *\li   the number of groups in the expression.
  */
-
-ISC_LANG_ENDDECLS
index 536451142f9cee2fb856935617701c3285a679c3..4767b5f8900dfc046f1b5dbe5d340a7dedb1a21a 100644 (file)
@@ -15,7 +15,6 @@
 
 /*! \file isc/region.h */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 struct isc_region {
@@ -75,8 +74,6 @@ struct isc_consttextregion {
        } while (0)
 /*@}*/
 
-ISC_LANG_BEGINDECLS
-
 int
 isc_region_compare(isc_region_t *r1, isc_region_t *r2);
 /*%<
@@ -93,5 +90,3 @@ isc_region_compare(isc_region_t *r1, isc_region_t *r2);
  *\li   = 0 if r1 is lexicographically identical to r2
  *\li   > 0 if r1 is lexicographically greater than r2
  */
-
-ISC_LANG_ENDDECLS
index 6db606ee78e8a92971603fce91da94386ba6b9ae..e93c002ad4817e30abe7cc8ca12b11d09c068025 100644 (file)
@@ -17,8 +17,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
-
 typedef enum isc_result {
        ISC_R_SUCCESS,                /*%< success */
        ISC_R_NOMEMORY,               /*%< out of memory */
@@ -280,8 +278,6 @@ typedef enum isc_result {
        ISC_R_MAKE_ENUM_32BIT = INT32_MAX,
 } isc_result_t;
 
-ISC_LANG_BEGINDECLS
-
 const char *isc_result_totext(isc_result_t);
 /*%<
  * Convert an isc_result_t into a string message describing the result.
@@ -292,5 +288,3 @@ const char *isc_result_toid(isc_result_t);
  * Convert an isc_result_t into a string identifier such as
  * "ISC_R_SUCCESS".
  */
-
-ISC_LANG_ENDDECLS
index 3ae93d6a3a6702edaa01944cc48d643ce91d64d3..16cbe536d8d271bd92b74ddf339c305104b14d10 100644 (file)
 
 /*! \file isc/rwlock.h */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 #include <isc/util.h>
 
-ISC_LANG_BEGINDECLS
-
 typedef enum {
        isc_rwlocktype_none = 0,
        isc_rwlocktype_read,
@@ -260,5 +257,3 @@ isc_rwlock_setworkers(uint16_t workers);
        }
 
 #endif /* USE_PTHREAD_RWLOCK */
-
-ISC_LANG_ENDDECLS
index 35e775980b780f6f2edde474643a41aca0ded295..b5abbaff21ced7e1e5bb4a483982a7dae0382066 100644 (file)
 
 /*! \file isc/safe.h */
 
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
-
 int
 isc_safe_memequal(const void *, const void *, size_t);
 
@@ -40,5 +36,3 @@ isc_safe_memwipe(void *, size_t);
  * function to perform the memset operation so that the compiler cannot
  * infer about what the function does and optimize the call away.
  */
-
-ISC_LANG_ENDDECLS
index b7bfa5f304074514700fecd2c39ad7b8a3ffc7e1..43d8f0e2c78afe7ddf8724f0f1af3930d6eac2a7 100644 (file)
@@ -16,7 +16,6 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 /*! \file isc/serial.h
@@ -28,8 +27,6 @@
  ***   Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 bool
 isc_serial_lt(uint32_t a, uint32_t b);
 /*%<
@@ -65,5 +62,3 @@ isc_serial_ne(uint32_t a, uint32_t b);
 /*%<
  *     Return true if 'a' != 'b' otherwise false.
  */
-
-ISC_LANG_ENDDECLS
index af13d723ea6396b7942e09bb0c58411fe721f847..d6c19bca22c00966cea5e542deb1b8a73bc0f629 100644 (file)
 
 #include <stdlib.h>
 
-#include <isc/lang.h>
 #include <isc/loop.h>
 
 typedef void (*isc_signal_cb)(void *, int);
 
-ISC_LANG_BEGINDECLS
-
 isc_signal_t *
 isc_signal_new(isc_loopmgr_t *loopmgr, isc_signal_cb cb, void *cbarg,
               int signum);
@@ -52,4 +49,3 @@ isc_signal_stop(isc_signal_t *signal);
  * Stop using the signal handler 'signal'. (It can be restarted with
  * isc_signal_start().)
  */
-ISC_LANG_ENDDECLS
index 1cb3582f01cf992b43e5dd823d84d01ba287add6..c066a85f163843914c1baeae3ac2d2985eb19796 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <isc/ascii.h>
 #include <isc/endian.h>
-#include <isc/lang.h>
 #include <isc/types.h>
 #include <isc/util.h>
 
@@ -80,8 +79,6 @@
 #define U8TO64_ONE(case_sensitive, byte) \
        (uint64_t)(case_sensitive ? byte : isc__ascii_tolower1(byte))
 
-ISC_LANG_BEGINDECLS
-
 typedef struct isc_siphash24 {
        uint64_t k0;
        uint64_t k1;
@@ -429,5 +426,3 @@ isc_halfsiphash24(const uint8_t *k, const uint8_t *in, const size_t inlen,
        isc_halfsiphash24_hash(&state, in, inlen, case_sensitive);
        isc_halfsiphash24_finalize(&state, out);
 }
-
-ISC_LANG_ENDDECLS
index be735cb7700fd24a7f2388037dd08622ebc1878d..00c0d56eb4659089b3a51cdb88699b3ac70a31a2 100644 (file)
@@ -19,7 +19,6 @@
 #include <sys/un.h>
 
 #include <isc/hash.h>
-#include <isc/lang.h>
 #include <isc/net.h>
 #include <isc/types.h>
 
@@ -50,8 +49,6 @@ struct isc_sockaddr {
        0x0008 /*%< when comparing scopes \
                *   zero scopes always match */
 
-ISC_LANG_BEGINDECLS
-
 bool
 isc_sockaddr_compare(const isc_sockaddr_t *a, const isc_sockaddr_t *b,
                     unsigned int flags);
@@ -247,5 +244,3 @@ isc_sockaddr_disabled(const isc_sockaddr_t *sockaddr);
  * Report whether or not the address family of 'sockaddr'
  * has been disabled.
  */
-
-ISC_LANG_ENDDECLS
index e8b5432e9cd0f73cbf0e34b80cc768207eba0ebf..3333836af5318e47b4786b74f91d372c9cb52954 100644 (file)
 #include <stdlib.h>
 
 #include <isc/atomic.h>
-#include <isc/lang.h>
 #include <isc/util.h>
 
-ISC_LANG_BEGINDECLS
-
 /*
  * We use macros instead of static inline functions so that the exact code
  * location can be reported when PTHREADS_RUNTIME_CHECK() fails or when mutrace
@@ -121,5 +118,3 @@ typedef atomic_uint_fast32_t isc_spinlock_t;
        }
 
 #endif
-
-ISC_LANG_ENDDECLS
index f6520969c805cbef6ffcdd37ab78652bdd5f885b..e070f1f13f617eedad89b922a9305510561e96af 100644 (file)
@@ -83,8 +83,6 @@ enum {
        isc_sockstatscounter_max,
 };
 
-ISC_LANG_BEGINDECLS
-
 /*%<
  * Flag(s) for isc_stats_dump().
  */
@@ -224,5 +222,3 @@ isc_stats_resize(isc_stats_t **stats, int ncounters);
  *\li  'stats' is a valid isc_stats_t.
  *\li  'ncounters' is a non-zero positive number.
  */
-
-ISC_LANG_ENDDECLS
index c8bac4d251434794d4907dbae2dd3bb145049b25..a22015432042eb735fa9e74ce8a393d8d82e972a 100644 (file)
 
 #include <stdio.h>
 
-#include <isc/lang.h>
 #include <isc/result.h>
 
-ISC_LANG_BEGINDECLS
-
 /*% Open */
 isc_result_t
 isc_stdio_open(const char *filename, const char *mode, FILE **fp);
@@ -67,5 +64,3 @@ isc_stdio_sync(FILE *f);
  * equivalent system-dependent operation.  Note that this function has no
  * direct counterpart in the stdio library.
  */
-
-ISC_LANG_ENDDECLS
index 59cd058b5c7e7bbb8729fc52e3ca4bb33803fd81..338b36b3ed305c9c3179a503ae6a1436eba7c3b5 100644 (file)
@@ -18,7 +18,6 @@
 #include <inttypes.h>
 #include <stdlib.h>
 
-#include <isc/lang.h>
 #include <isc/time.h>
 
 /*%
@@ -28,8 +27,6 @@
  */
 typedef uint32_t isc_stdtime_t;
 
-ISC_LANG_BEGINDECLS
-
 isc_stdtime_t
 isc_stdtime_now(void);
 /*%<
@@ -49,5 +46,3 @@ isc_stdtime_tostring(isc_stdtime_t t, char *out, size_t outlen);
  *     'out' is a valid pointer.
  *     'outlen' is at least 26.
  */
-
-ISC_LANG_ENDDECLS
index fbf6129cbef29a180dd4ecf84afa9597fd7e2e8e..9b8381f72b38869fcf715e5a17ce4b44e425a05c 100644 (file)
 
 #include <string.h>
 
-#include <isc/lang.h>
-
-ISC_LANG_BEGINDECLS
-
 #if !defined(HAVE_STRLCPY)
 size_t
 strlcpy(char *dst, const char *src, size_t size);
@@ -38,5 +34,3 @@ strnstr(const char *s, const char *find, size_t slen);
 
 int
 isc_string_strerror_r(int errnum, char *buf, size_t buflen);
-
-ISC_LANG_ENDDECLS
index 2be3a8b5b1a749af05250261e48e2f382d659030..3cc9b9b0cc08a0f13362ce9ef4c8229d9d54e2e9 100644 (file)
@@ -80,7 +80,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 /*
@@ -103,8 +102,6 @@ typedef enum {
        isc_symexists_add = 2      /*%< Add the new tuple */
 } isc_symexists_t;
 
-ISC_LANG_BEGINDECLS
-
 /*% Create a symbol table. */
 isc_result_t
 isc_symtab_create(isc_mem_t *mctx, unsigned int size,
@@ -132,4 +129,3 @@ isc_symtab_undefine(isc_symtab_t *symtab, const char *key, unsigned int type);
 /*% Return the number of items in a symbol table. */
 unsigned int
 isc_symtab_count(isc_symtab_t *symtab);
-ISC_LANG_ENDDECLS
index 021f7fa596155cd5b6f808af632763df3cd4871c..bc1432eedb5fdc88a84993ceafc23ce52f7799f7 100644 (file)
 
 /*! \file */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isc_syslog_facilityfromstring(const char *str, int *facilityp);
 /*%<
@@ -34,5 +31,3 @@ isc_syslog_facilityfromstring(const char *str, int *facilityp);
  * \li #ISC_R_SUCCESS
  * \li #ISC_R_NOTFOUND
  */
-
-ISC_LANG_ENDDECLS
index 8920ca2f191473aa8fbefa142435594607b9e605..17c0fff9b18fa9b205af910a9c8eee44fd49f674 100644 (file)
 #include <pthread_np.h>
 #endif /* if defined(HAVE_PTHREAD_NP_H) */
 
-#include <isc/lang.h>
 #include <isc/result.h>
 
-ISC_LANG_BEGINDECLS
-
 typedef pthread_t isc_thread_t;
 typedef void *(*isc_threadfunc_t)(void *);
 
@@ -55,5 +52,3 @@ void
 isc_thread_setname(isc_thread_t thread, const char *name);
 
 #define isc_thread_self (uintptr_t)pthread_self
-
-ISC_LANG_ENDDECLS
index 8100237031081a2e9f8188ec37104a501b6e656e..318d09a6fd0117329cd6621c6e550de3d013c305 100644 (file)
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
 #include <isc/thread.h>
 
-ISC_LANG_BEGINDECLS
-
 #define ISC_TID_UNKNOWN UINT32_MAX
 
 uint32_t
@@ -45,5 +42,3 @@ isc__tid_init(uint32_t tid);
 
 void
 isc__tid_initcount(uint32_t count);
-
-ISC_LANG_ENDDECLS
index f08cd2e112d79a1f955f6067bf851785069107d4..0ba40129faa5be238db674d46f49a6c7e3de6ac3 100644 (file)
@@ -19,7 +19,6 @@
 #include <time.h>
 
 #include <isc/attributes.h>
-#include <isc/lang.h>
 #include <isc/types.h>
 
 /*
@@ -45,8 +44,6 @@ ISC_CONSTEXPR unsigned int NS_PER_SEC = 1000 * 1000 * 1000;
 #define isc_interval_zero isc_time_epoch
 #define isc_interval_t   isc_time_t
 
-ISC_LANG_BEGINDECLS
-
 #define isc_interval_set(i, seconds, nanoseconds) \
        isc_time_set((isc_time_t *)i, seconds, nanoseconds)
 /*%<
@@ -478,5 +475,3 @@ isc_time_formatshorttimestamp(const isc_time_t *t, char *buf, unsigned int len);
  *\li      'buf' points to an array of at least len chars
  *
  */
-
-ISC_LANG_ENDDECLS
index 0c0cf1a8d6a50a1cd67401dbcb953e051a250c85..9d1e95a1d1b7163b86257aaf639bf1663e120dff 100644 (file)
 #include <stdbool.h>
 
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/time.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Types
  ***/
@@ -155,5 +152,3 @@ isc_timer_destroy(isc_timer_t **timerp);
  *
  *\li  *timerp is NULL.
  */
-
-ISC_LANG_ENDDECLS
index 58feec441f0bdb6db8be57e78721383589f5eb62..66140aedf0cc2dbf8c1e699da037c5fb15d79370 100644 (file)
  */
 #include <time.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 time_t
 isc_tm_timegm(struct tm *tm);
 /*
@@ -35,5 +32,3 @@ isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm);
 /*
  * Parse a formatted date string into struct tm.
  */
-
-ISC_LANG_ENDDECLS
index 5643c5de5545dc3a6d5490fc06e96d2375b6dd55..c44f97b8290188192470e66290e482b5206d02b0 100644 (file)
 
 #pragma once
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 bool
 isc_utf8_bom(const unsigned char *buf, size_t len);
 /*<
@@ -39,5 +36,3 @@ isc_utf8_valid(const unsigned char *buf, size_t len);
  * Requires:
  *\li  'buf' != NULL
  */
-
-ISC_LANG_ENDDECLS
index df196e95ea078ec8568cead1515eec227f2e45b3..d986b2e7093443360af0fa9a416059ed2c9abee8 100644 (file)
 
 #include <stdlib.h>
 
-#include <isc/lang.h>
 #include <isc/loop.h>
 
 typedef void (*isc_work_cb)(void *arg);
 typedef void (*isc_after_work_cb)(void *arg);
 typedef struct isc_work isc_work_t;
 
-ISC_LANG_BEGINDECLS
-
 void
 isc_work_enqueue(isc_loop_t *loop, isc_work_cb work_cb,
                 isc_after_work_cb after_work_cb, void *cbarg);
@@ -37,5 +34,3 @@ isc_work_enqueue(isc_loop_t *loop, isc_work_cb work_cb,
  * \li 'loop' is a valid event loop.
  * \li 'work_cb' and 'after_work_cb' are not NULL.
  */
-
-ISC_LANG_ENDDECLS
index a822004e8874ffa787e3556ddbd114fed381b640..6bfdcdf1879d952cb89ab7f10f3d933505e27a49 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <isc/barrier.h>
 #include <isc/job.h>
-#include <isc/lang.h>
 #include <isc/loop.h>
 #include <isc/magic.h>
 #include <isc/mem.h>
index 6979f0cf662b602c8c04eb56975cf682a39df1b0..2f4788189e7082a113ff64302cbca78ff4967ae6 100644 (file)
@@ -15,7 +15,6 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#include <isc/lang.h>
 #include <isc/thread.h>
 #include <isc/tid.h>
 #include <isc/util.h>
index dc7004434f5d89b7a3e25802af2278cba4c2a78b..d6927516f0157e878809d5d99042d82120bad040 100644 (file)
 #include <stdbool.h>
 #include <stdio.h>
 
-#include <isc/lang.h>
-
 #include <isccc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 isccc_sexpr_t *
 isccc_alist_create(void);
 
@@ -82,5 +78,3 @@ isccc_alist_lookupbinary(isccc_sexpr_t *alist, const char *key,
 void
 isccc_alist_prettyprint(isccc_sexpr_t *sexpr, unsigned int indent,
                        FILE *stream);
-
-ISC_LANG_ENDDECLS
index 641dd4e003288575a0211d8bf5def34f262bd1a2..192e1f679de3b50575f940886387be515cba1b75 100644 (file)
 
 /*! \file isccc/base64.h */
 
-#include <isc/lang.h>
-
 #include <isccc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /***
  *** Functions
  ***/
@@ -75,5 +71,3 @@ isccc_base64_decode(const char *cstr, isccc_region_t *target);
  *\li  #ISC_R_BADBASE64 -- 'cstr' is not a valid base64 encoding.
  *\li  #ISC_R_NOSPACE  -- 'target' is not big enough.
  */
-
-ISC_LANG_ENDDECLS
index 20fe17b7dbf49b83f5c9bfe7a12c949066a19a70..edf89df0417ef4542437160a23d05f6f17180ec0 100644 (file)
 #include <stdbool.h>
 
 #include <isc/buffer.h>
-#include <isc/lang.h>
 
 #include <dst/dst.h>
 
 #include <isccc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*%
  * The HMAC algorithms supported by isccc_cc_fromwire and
  * isccc_cc_towire as implemented in DST.
@@ -128,5 +125,3 @@ isccc_cc_cleansymtab(isccc_symtab_t *symtab, isccc_time_t now);
 isc_result_t
 isccc_cc_checkdup(isccc_symtab_t *symtab, isccc_sexpr_t *message,
                  isccc_time_t now);
-
-ISC_LANG_ENDDECLS
index 07ca331f1e46e41ab3bed5c34d99a85c1291a84b..75a10070eaff40e5cb16a13b3962993cf9c385db 100644 (file)
@@ -34,7 +34,6 @@
 #include <inttypes.h>
 
 #include <isc/buffer.h>
-#include <isc/lang.h>
 #include <isc/netmgr.h>
 #include <isc/sockaddr.h>
 
@@ -55,8 +54,6 @@ typedef struct isccc_ccmsg {
        void           *send_cbarg;
 } isccc_ccmsg_t;
 
-ISC_LANG_BEGINDECLS
-
 void
 isccc_ccmsg_init(isc_mem_t *mctx, isc_nmhandle_t *handle, isccc_ccmsg_t *ccmsg);
 /*%
@@ -141,5 +138,3 @@ isccc_ccmsg_invalidate(isccc_ccmsg_t *ccmsg);
 
 void
 isccc_ccmsg_toregion(isccc_ccmsg_t *ccmsg, isccc_region_t *ccregion);
-
-ISC_LANG_ENDDECLS
index 133d06d869e7ddc82013b399cd08e09eb418be88..0e96172b4d22348b935370bac6cb57373833ede7 100644 (file)
 #include <stdbool.h>
 #include <stdio.h>
 
-#include <isc/lang.h>
-
 #include <isccc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 /*% dotted pair structure */
 struct isccc_dottedpair {
        isccc_sexpr_t *car;
@@ -115,5 +111,3 @@ isccc_sexpr_tostring(isccc_sexpr_t *sexpr);
 
 isccc_region_t *
 isccc_sexpr_tobinary(isccc_sexpr_t *sexpr);
-
-ISC_LANG_ENDDECLS
index a156c061b7e4aaf0ae3eea2fc5054ba02e0f5ef0..96dc9429fe13028466d006a16ec67d424cb53a1f 100644 (file)
@@ -75,8 +75,6 @@
 
 #include <stdbool.h>
 
-#include <isc/lang.h>
-
 #include <isccc/types.h>
 
 /***
@@ -103,8 +101,6 @@ typedef enum {
        isccc_symexists_add = 2
 } isccc_symexists_t;
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isccc_symtab_create(unsigned int             size,
                    isccc_symtabundefaction_t undefine_action,
@@ -129,5 +125,3 @@ isccc_symtab_undefine(isccc_symtab_t *symtab, const char *key,
 void
 isccc_symtab_foreach(isccc_symtab_t *symtab, isccc_symtabforeachaction_t action,
                     void *arg);
-
-ISC_LANG_ENDDECLS
index f40cbb60ed375eea2f2b60df6751e5a1aa0aa958..ad99e2452b4e7cddb0489367ccb7a8e9baff95c4 100644 (file)
@@ -15,8 +15,6 @@
 
 #include <inttypes.h>
 
-#include <isc/lang.h>
-
 #include <dns/geoip.h>
 #include <dns/types.h>
 
@@ -35,8 +33,6 @@ typedef struct cfg_aclconfctx {
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 cfg_aclconfctx_create(isc_mem_t *mctx, cfg_aclconfctx_t **ret);
 /*
@@ -76,5 +72,3 @@ cfg_acl_fromconfig(const cfg_obj_t *caml, const cfg_obj_t *cctx,
  *     'ctx' to be non NULL.
  *     '*target' to be NULL or a valid dns_acl_t.
  */
-
-ISC_LANG_ENDDECLS
index 537f8073ca97d10ece5ecaab9d874aef54a92982..5a43e36e31875b57d50c5f5810e2780ed951d4f1 100644 (file)
@@ -31,7 +31,6 @@
 #include <time.h>
 
 #include <isc/formatcheck.h>
-#include <isc/lang.h>
 #include <isc/list.h>
 #include <isc/refcount.h>
 #include <isc/types.h>
@@ -78,8 +77,6 @@ typedef isc_result_t (*cfg_parsecallback_t)(const char            *clausename,
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 void
 cfg_parser_attach(cfg_parser_t *src, cfg_parser_t **dest);
 /*%<
@@ -623,5 +620,3 @@ cfg_pluginlist_foreach(const cfg_obj_t *config, const cfg_obj_t *list,
  *     'list'
  * \li first 'callback' return value which was not #ISC_R_SUCCESS otherwise
  */
-
-ISC_LANG_ENDDECLS
index 053ed3e9958c59e69058990cb6fce3abe53b547d..c4e5d2b3a247b8743ecb7a224081f4c08ab1e9db 100644 (file)
@@ -15,7 +15,6 @@
 
 /*! \file isccfg/check.h */
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
 #include <isccfg/cfg.h>
@@ -42,8 +41,6 @@
  * supported by the crypto provider.
  */
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 isccfg_check_namedconf(const cfg_obj_t *config, unsigned int flags,
                       isc_mem_t *mctx);
@@ -69,5 +66,3 @@ isccfg_check_key(const cfg_obj_t *config);
 /*%<
  * Same as isccfg_check_namedconf(), but for a single 'key' statement.
  */
-
-ISC_LANG_ENDDECLS
index bd0c35bad8a0e1145e6ee9af30e102cadcd58ca0..44012b4a1a047c5f3a609cbf80ccf5228761063b 100644 (file)
 #include <inttypes.h>
 #include <stdbool.h>
 
-#include <isc/lang.h>
 #include <isc/types.h>
 
-ISC_LANG_BEGINDECLS
-
 #define CFG_DURATION_MAXLEN 80
 
 /*%
@@ -83,5 +80,3 @@ isccfg_duration_toseconds(const isccfg_duration_t *duration);
  * Returns:
  *\li  The duration in seconds.
  */
-
-ISC_LANG_ENDDECLS
index d717998ba0c68f80a5152393c1276596a21d0407..1818ef319924021a356f421476f77acfe2f97d45 100644 (file)
 
 #pragma once
 
-#include <isc/lang.h>
-
 #include <isccfg/cfg.h>
 
 /***
  *** Functions
  ***/
 
-ISC_LANG_BEGINDECLS
-
 isc_result_t
 cfg_kasp_fromconfig(const cfg_obj_t *config, dns_kasp_t *default_kasp,
                    bool check_algorithms, isc_mem_t *mctx,
@@ -87,5 +83,3 @@ cfg_keystore_fromconfig(const cfg_obj_t *config, isc_mem_t *mctx,
  *
  *\li  Other errors are possible.
  */
-
-ISC_LANG_ENDDECLS
index d2ffe3cbf267cbc5904535c27ee5ccbe2fe680ed..3f15a0701c135aa72fd3b47ab012c7f9ae9afda0 100644 (file)
@@ -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";