]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use #pragma once as header guards
authorOndřej Surý <ondrej@sury.org>
Tue, 5 Oct 2021 14:49:47 +0000 (16:49 +0200)
committerEvan Hunt <each@isc.org>
Wed, 13 Oct 2021 07:49:15 +0000 (00:49 -0700)
Unify the header guard style and replace the inconsistent include guards
with #pragma once.

The #pragma once is widely and very well supported in all compilers that
BIND 9 supports, and #pragma once was already in use in several new or
refactored headers.

Using simpler method will also allow us to automate header guard checks
as this is simpler to programatically check.

For reference, here are the reasons for the change taken from
Wikipedia[1]:

> In the C and C++ programming languages, #pragma once is a non-standard
> but widely supported preprocessor directive designed to cause the
> current source file to be included only once in a single compilation.
>
> Thus, #pragma once serves the same purpose as include guards, but with
> several advantages, including: less code, avoidance of name clashes,
> and sometimes improvement in compilation speed. On the other hand,
> #pragma once is not necessarily available in all compilers and its
> implementation is tricky and might not always be reliable.

1. https://en.wikipedia.org/wiki/Pragma_once

328 files changed:
bin/check/check-tool.h
bin/confgen/include/confgen/os.h
bin/confgen/keygen.h
bin/confgen/util.h
bin/dig/dighost.h
bin/dnssec/dnssectool.h
bin/named/include/dlz/dlz_dlopen_driver.h
bin/named/include/named/builtin.h
bin/named/include/named/config.h
bin/named/include/named/control.h
bin/named/include/named/fuzz.h
bin/named/include/named/globals.h
bin/named/include/named/log.h
bin/named/include/named/logconf.h
bin/named/include/named/os.h
bin/named/include/named/server.h
bin/named/include/named/smf_globals.h
bin/named/include/named/statschannel.h
bin/named/include/named/tkeyconf.h
bin/named/include/named/tsigconf.h
bin/named/include/named/types.h
bin/named/include/named/zoneconf.h
bin/rndc/util.h
bin/tests/system/dyndb/driver/instance.h
bin/tests/system/dyndb/driver/lock.h
bin/tests/system/dyndb/driver/log.h
bin/tests/system/dyndb/driver/util.h
conftools/perllib/dnsconf/DNSConf-macros.h
contrib/dlz/modules/filesystem/dir.h
contrib/dlz/modules/include/dlz_dbi.h
contrib/dlz/modules/include/dlz_list.h
contrib/dlz/modules/include/dlz_minimal.h
contrib/dlz/modules/include/dlz_pthread.h
contrib/dlz/modules/perl/dlz_perl_driver.h
fuzz/fuzz.h
lib/bind9/include/bind9/check.h
lib/bind9/include/bind9/getaddresses.h
lib/dns/dst_openssl.h
lib/dns/dst_parse.h
lib/dns/gen.h
lib/dns/include/dns/acl.h
lib/dns/include/dns/adb.h
lib/dns/include/dns/badcache.h
lib/dns/include/dns/bit.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/dlz.h
lib/dns/include/dns/dlz_dlopen.h
lib/dns/include/dns/dns64.h
lib/dns/include/dns/dnsrps.h
lib/dns/include/dns/dnssec.h
lib/dns/include/dns/dnstap.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/edns.h
lib/dns/include/dns/events.h
lib/dns/include/dns/fixedname.h
lib/dns/include/dns/forward.h
lib/dns/include/dns/geoip.h
lib/dns/include/dns/ipkeylist.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/keytable.h
lib/dns/include/dns/keyvalues.h
lib/dns/include/dns/librpz.h
lib/dns/include/dns/log.h
lib/dns/include/dns/lookup.h
lib/dns/include/dns/master.h
lib/dns/include/dns/masterdump.h
lib/dns/include/dns/name.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/rbt.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/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/sdb.h
lib/dns/include/dns/sdlz.h
lib/dns/include/dns/secalg.h
lib/dns/include/dns/secproto.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/timer.h
lib/dns/include/dns/tkey.h
lib/dns/include/dns/tsec.h
lib/dns/include/dns/tsig.h
lib/dns/include/dns/ttl.h
lib/dns/include/dns/types.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/zt.h
lib/dns/include/dst/dst.h
lib/dns/rbtdb.h
lib/dns/rdata/any_255/tsig_250.h
lib/dns/rdata/ch_3/a_1.h
lib/dns/rdata/generic/afsdb_18.h
lib/dns/rdata/generic/amtrelay_260.h
lib/dns/rdata/generic/avc_258.h
lib/dns/rdata/generic/caa_257.h
lib/dns/rdata/generic/cdnskey_60.h
lib/dns/rdata/generic/cds_59.h
lib/dns/rdata/generic/cert_37.h
lib/dns/rdata/generic/cname_5.h
lib/dns/rdata/generic/csync_62.h
lib/dns/rdata/generic/dlv_32769.h
lib/dns/rdata/generic/dname_39.h
lib/dns/rdata/generic/dnskey_48.h
lib/dns/rdata/generic/doa_259.h
lib/dns/rdata/generic/ds_43.h
lib/dns/rdata/generic/eui48_108.h
lib/dns/rdata/generic/eui64_109.h
lib/dns/rdata/generic/gpos_27.h
lib/dns/rdata/generic/hinfo_13.c
lib/dns/rdata/generic/hinfo_13.h
lib/dns/rdata/generic/hip_55.c
lib/dns/rdata/generic/hip_55.h
lib/dns/rdata/generic/ipseckey_45.h
lib/dns/rdata/generic/isdn_20.h
lib/dns/rdata/generic/key_25.h
lib/dns/rdata/generic/keydata_65533.h
lib/dns/rdata/generic/l32_105.h
lib/dns/rdata/generic/l64_106.h
lib/dns/rdata/generic/loc_29.h
lib/dns/rdata/generic/lp_107.h
lib/dns/rdata/generic/mb_7.h
lib/dns/rdata/generic/md_3.h
lib/dns/rdata/generic/mf_4.h
lib/dns/rdata/generic/mg_8.h
lib/dns/rdata/generic/minfo_14.h
lib/dns/rdata/generic/mr_9.h
lib/dns/rdata/generic/mx_15.h
lib/dns/rdata/generic/naptr_35.h
lib/dns/rdata/generic/nid_104.h
lib/dns/rdata/generic/ninfo_56.h
lib/dns/rdata/generic/ns_2.h
lib/dns/rdata/generic/nsec3_50.h
lib/dns/rdata/generic/nsec3param_51.h
lib/dns/rdata/generic/nsec_47.h
lib/dns/rdata/generic/null_10.h
lib/dns/rdata/generic/nxt_30.h
lib/dns/rdata/generic/openpgpkey_61.h
lib/dns/rdata/generic/opt_41.h
lib/dns/rdata/generic/proforma.h
lib/dns/rdata/generic/ptr_12.h
lib/dns/rdata/generic/rkey_57.h
lib/dns/rdata/generic/rp_17.h
lib/dns/rdata/generic/rrsig_46.h
lib/dns/rdata/generic/rt_21.h
lib/dns/rdata/generic/sig_24.h
lib/dns/rdata/generic/sink_40.h
lib/dns/rdata/generic/smimea_53.h
lib/dns/rdata/generic/soa_6.h
lib/dns/rdata/generic/spf_99.h
lib/dns/rdata/generic/sshfp_44.h
lib/dns/rdata/generic/ta_32768.h
lib/dns/rdata/generic/talink_58.h
lib/dns/rdata/generic/tkey_249.h
lib/dns/rdata/generic/tlsa_52.h
lib/dns/rdata/generic/txt_16.h
lib/dns/rdata/generic/uri_256.h
lib/dns/rdata/generic/x25_19.h
lib/dns/rdata/generic/zonemd_63.h
lib/dns/rdata/hs_4/a_1.c
lib/dns/rdata/hs_4/a_1.h
lib/dns/rdata/in_1/a6_38.h
lib/dns/rdata/in_1/a_1.h
lib/dns/rdata/in_1/aaaa_28.h
lib/dns/rdata/in_1/apl_42.h
lib/dns/rdata/in_1/atma_34.h
lib/dns/rdata/in_1/dhcid_49.h
lib/dns/rdata/in_1/eid_31.h
lib/dns/rdata/in_1/https_65.c
lib/dns/rdata/in_1/https_65.h
lib/dns/rdata/in_1/kx_36.h
lib/dns/rdata/in_1/nimloc_32.h
lib/dns/rdata/in_1/nsap-ptr_23.h
lib/dns/rdata/in_1/nsap_22.h
lib/dns/rdata/in_1/px_26.h
lib/dns/rdata/in_1/srv_33.h
lib/dns/rdata/in_1/svcb_64.h
lib/dns/rdata/in_1/wks_11.h
lib/dns/rdata/rdatastructpre.h
lib/dns/rdata/rdatastructsuf.h
lib/dns/rdatalist_p.h
lib/dns/tests/dnstest.h
lib/dns/tsig_p.h
lib/dns/zone_p.h
lib/isc/errno2result.h
lib/isc/include/isc/aes.h
lib/isc/include/isc/app.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/counter.h
lib/isc/include/isc/crc64.h
lib/isc/include/isc/deprecated.h
lib/isc/include/isc/errno.h
lib/isc/include/isc/error.h
lib/isc/include/isc/event.h
lib/isc/include/isc/eventclass.h
lib/isc/include/isc/file.h
lib/isc/include/isc/formatcheck.h
lib/isc/include/isc/fsaccess.h
lib/isc/include/isc/fuzz.h
lib/isc/include/isc/glob.h
lib/isc/include/isc/hash.h
lib/isc/include/isc/heap.h
lib/isc/include/isc/hex.h
lib/isc/include/isc/ht.h
lib/isc/include/isc/httpd.h
lib/isc/include/isc/interfaceiter.h
lib/isc/include/isc/lang.h
lib/isc/include/isc/lex.h
lib/isc/include/isc/likely.h
lib/isc/include/isc/list.h
lib/isc/include/isc/log.h
lib/isc/include/isc/magic.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/netdb.h
lib/isc/include/isc/netscope.h
lib/isc/include/isc/offset.h
lib/isc/include/isc/once.h
lib/isc/include/isc/os.h
lib/isc/include/isc/parseint.h
lib/isc/include/isc/pool.h
lib/isc/include/isc/portset.h
lib/isc/include/isc/print.h
lib/isc/include/isc/quota.h
lib/isc/include/isc/radix.h
lib/isc/include/isc/ratelimiter.h
lib/isc/include/isc/regex.h
lib/isc/include/isc/region.h
lib/isc/include/isc/resource.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/sockaddr.h
lib/isc/include/isc/stat.h
lib/isc/include/isc/stats.h
lib/isc/include/isc/stdio.h
lib/isc/include/isc/stdtime.h
lib/isc/include/isc/symtab.h
lib/isc/include/isc/syslog.h
lib/isc/include/isc/taskpool.h
lib/isc/include/isc/time.h
lib/isc/include/isc/tm.h
lib/isc/include/isc/types.h
lib/isc/include/isc/url.h
lib/isc/include/isc/util.h
lib/isc/socket_p.h
lib/isc/tests/isctest.h
lib/isc/tests/uv_wrap.h
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/events.h
lib/isccc/include/isccc/sexpr.h
lib/isccc/include/isccc/symtab.h
lib/isccc/include/isccc/symtype.h
lib/isccc/include/isccc/types.h
lib/isccc/include/isccc/util.h
lib/isccfg/include/isccfg/aclconf.h
lib/isccfg/include/isccfg/cfg.h
lib/isccfg/include/isccfg/grammar.h
lib/isccfg/include/isccfg/kaspconf.h
lib/isccfg/include/isccfg/log.h
lib/isccfg/include/isccfg/namedconf.h
lib/ns/include/ns/client.h
lib/ns/include/ns/events.h
lib/ns/include/ns/hooks.h
lib/ns/include/ns/listenlist.h
lib/ns/include/ns/log.h
lib/ns/include/ns/notify.h
lib/ns/include/ns/query.h
lib/ns/include/ns/server.h
lib/ns/include/ns/sortlist.h
lib/ns/include/ns/stats.h
lib/ns/include/ns/types.h
lib/ns/include/ns/update.h
lib/ns/include/ns/xfrout.h
lib/ns/tests/nstest.h

index 6e9e483f54cdd2de6f3fd0f9382c5123fd37c21d..ad316998810eccddddb3665300b18567ce7988d6 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef CHECK_TOOL_H
-#define CHECK_TOOL_H
+#pragma once
 
 /*! \file */
 
@@ -49,5 +48,3 @@ extern bool dochecksrv;
 extern dns_zoneopt_t zone_options;
 
 ISC_LANG_ENDDECLS
-
-#endif /* ifndef CHECK_TOOL_H */
index acb50ae7180ee35a52d82bae41276938a3a63e61..9d5c98b4db4084a4f82f985fbd9cede29343e548 100644 (file)
@@ -11,8 +11,7 @@
 
 /*! \file */
 
-#ifndef RNDC_OS_H
-#define RNDC_OS_H 1
+#pragma once
 
 #include <stdio.h>
 
@@ -30,5 +29,3 @@ set_user(FILE *fd, const char *user);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ifndef RNDC_OS_H */
index c9bc05b1701668a948cad656286e19e5698f06ce..d0e5ae3026c22155eb432cb0dc67d416a917ecfc 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef RNDC_KEYGEN_H
-#define RNDC_KEYGEN_H 1
+#pragma once
 
 /*! \file */
 
@@ -38,5 +37,3 @@ int
 alg_bits(dns_secalg_t alg);
 
 ISC_LANG_ENDDECLS
-
-#endif /* RNDC_KEYGEN_H */
index f5479438afa3a0daa4678ee9d214d4d6435ac6c1..01598900e965fdccdcbaf3f22a8dad8ce394ed84 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef RNDC_UTIL_H
-#define RNDC_UTIL_H 1
+#pragma once
 
 /*! \file */
 
@@ -39,5 +38,3 @@ ISC_NORETURN void
 fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
 
 ISC_LANG_ENDDECLS
-
-#endif /* RNDC_UTIL_H */
index 4486e61d53cb72409ad45a40cd1a309458056521..b808b92c7045fa5ede04318a82fb777b7f0ff7eb 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DIG_H
-#define DIG_H
+#pragma once
 
 /*! \file */
 
@@ -446,5 +445,3 @@ void
 dig_shutdown(void);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ifndef DIG_H */
index d8825f2a7a86992e68d1d9407c7dde3c485727f6..7694f362c0e4835b7c283677aa3defce76259527 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNSSECTOOL_H
-#define DNSSECTOOL_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -105,5 +104,3 @@ key_collision(dst_key_t *key, dns_name_t *name, const char *dir,
 
 bool
 isoptarg(const char *arg, char **argv, void (*usage)(void));
-
-#endif /* DNSSEC_DNSSECTOOL_H */
index b60f163747959578d41158a4609ca25fbdd7caf2..ebe2bbe69197feae6cb9f09d90730bb4ccf78376 100644 (file)
@@ -9,12 +9,10 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DLZ_DLOPEN_DRIVER_H
-#define DLZ_DLOPEN_DRIVER_H
+#pragma once
 
 isc_result_t
 dlz_dlopen_init(isc_mem_t *mctx);
 
 void
 dlz_dlopen_clear(void);
-#endif /* ifndef DLZ_DLOPEN_DRIVER_H */
index a05371e5e5c058b4d54e1b36c163d6c18c5679cb..880c1ff45507e493920ba20022d6db8c6fe69f75 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_BUILTIN_H
-#define NAMED_BUILTIN_H 1
+#pragma once
 
 /*! \file */
 
@@ -21,5 +20,3 @@ named_builtin_init(void);
 
 void
 named_builtin_deinit(void);
-
-#endif /* NAMED_BUILTIN_H */
index 7c48ff0bb798dc20647b3a1d899709276e2dea45..0ed3a4081655a28339bace9d438d2ab958ab88a5 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_CONFIG_H
-#define NAMED_CONFIG_H 1
+#pragma once
 
 /*! \file */
 
@@ -80,5 +79,3 @@ named_config_getkeyalgorithm2(const char *str, const dns_name_t **name,
 
 isc_result_t
 named_config_getdscp(const cfg_obj_t *config, isc_dscp_t *dscpp);
-
-#endif /* NAMED_CONFIG_H */
index 8c009d5c56d3870cb62be0fe066c6aa0d0d22e3c..0de2ebd7bd461d67317f75a6b0ac927e12dc253c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_CONTROL_H
-#define NAMED_CONTROL_H 1
+#pragma once
 
 /*! \file
  * \brief
@@ -105,5 +104,3 @@ named_controls_shutdown(named_controls_t *controls);
 isc_result_t
 named_control_docommand(isccc_sexpr_t *message, bool readonly,
                        isc_buffer_t **text);
-
-#endif /* NAMED_CONTROL_H */
index 4284cab9047398ae4aaf4b78eaf536f0869c2997..272ec143b81258860404585c5ec088d441e7c8a3 100644 (file)
 
 #include <isc/fuzz.h>
 
-#ifndef NAMED_FUZZ_H
-#define NAMED_FUZZ_H
+#pragma once
 
 void
 named_fuzz_notify(void);
 
 void
 named_fuzz_setup(void);
-
-#endif /* NAMED_FUZZ_H */
index 45cb118c3677ce7f379ffb1e26e5ea5d7e866ad2..b7798265dbe2c2ee1679134bae6bd9123c3d3c99 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_GLOBALS_H
-#define NAMED_GLOBALS_H 1
+#pragma once
 
 /*! \file */
 
@@ -162,5 +161,3 @@ EXTERN dns_acl_t *named_g_mapped INIT(NULL);
 
 #undef EXTERN
 #undef INIT
-
-#endif /* NAMED_GLOBALS_H */
index cf43d1c47c76e2e215f0d3581ac864c0f56c563a..3b1767c5067737b491dc5ae9b885d99fe62f7fb1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_LOG_H
-#define NAMED_LOG_H 1
+#pragma once
 
 /*! \file */
 
@@ -73,5 +72,3 @@ named_log_setunmatchedcategory(isc_logconfig_t *lcfg);
 
 void
 named_log_shutdown(void);
-
-#endif /* NAMED_LOG_H */
index 216a882f58198b9185edb3e7e187fa298b8d02e4..0902e2c4535d9f9c6881aa800135e5b9c3c474db 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_LOGCONF_H
-#define NAMED_LOGCONF_H 1
+#pragma once
 
 /*! \file */
 
@@ -22,5 +21,3 @@ named_logconfig(isc_logconfig_t *logconf, const cfg_obj_t *logstmt);
  * Set up the logging configuration in '*logconf' according to
  * the named.conf data in 'logstmt'.
  */
-
-#endif /* NAMED_LOGCONF_H */
index 3ae48adc24e3d08d4a6eeaea19d28c5838276c9b..cc800e20180f5d5620e94ea2cac4c9e11c778d9a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_OS_H
-#define NAMED_OS_H 1
+#pragma once
 
 /*! \file */
 
@@ -75,5 +74,3 @@ named_os_started(void);
 
 const char *
 named_os_uname(void);
-
-#endif /* NAMED_OS_H */
index 99bcc6fe00144bd683742b710f2de3df78754a15..089145c29c14c97860c89ae0f449843fe37488a7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_SERVER_H
-#define NAMED_SERVER_H 1
+#pragma once
 
 /*! \file */
 
@@ -389,5 +388,3 @@ named_server_tcptimeouts(isc_lex_t *lex, isc_buffer_t **text);
 isc_result_t
 named_server_servestale(named_server_t *server, isc_lex_t *lex,
                        isc_buffer_t **text);
-
-#endif /* NAMED_SERVER_H */
index 850f6d3c916da00e4c2705b5a3d81f3198368efd..bb639f9b659f4629d3b49d642c11e79f4419f474 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_SMF_GLOBALS_H
-#define NAMED_SMF_GLOBALS_H 1
+#pragma once
 
 #include <libscf.h>
 
@@ -35,5 +34,3 @@ named_smf_get_instance(char **name, int debug, isc_mem_t *mctx);
 
 #undef EXTERN
 #undef INIT
-
-#endif /* NAMED_SMF_GLOBALS_H */
index 9779d336d88f04b5b923418b8d5f82d6886a6da6..bea8f501983901632ba707993108f7864670bd3b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_STATSCHANNEL_H
-#define NAMED_STATSCHANNEL_H 1
+#pragma once
 
 /*! \file
  * \brief
@@ -48,5 +47,3 @@ named_stats_dump(named_server_t *server, FILE *fp);
 /*%<
  * Dump statistics counters managed by the server to the file fp.
  */
-
-#endif /* NAMED_STATSCHANNEL_H */
index 968b09dd70834e67a95094b2f5ae5691d35e2802..64ef91d37928bdb546ea26494a1b9a922e03dcc1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_TKEYCONF_H
-#define NAMED_TKEYCONF_H 1
+#pragma once
 
 /*! \file */
 
@@ -40,5 +39,3 @@ named_tkeyctx_fromconfig(const cfg_obj_t *options, isc_mem_t *mctx,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* NAMED_TKEYCONF_H */
index 27edf48c8c145c7be33dcc686b0734b3ba6fae18..a016e571a1f33408e3054c86829d1061e6e025f6 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_TSIGCONF_H
-#define NAMED_TSIGCONF_H 1
+#pragma once
 
 /*! \file */
 
@@ -38,5 +37,3 @@ named_tsigkeyring_fromconfig(const cfg_obj_t *config, const cfg_obj_t *vconfig,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* NAMED_TSIGCONF_H */
index e7c4296dd90d9f3719a10d7a34d83e3b964bda18..bc6f66753dfb0b7d0aa7b813d1ea64dddb3aa6a9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_TYPES_H
-#define NAMED_TYPES_H 1
+#pragma once
 
 /*! \file */
 
@@ -35,5 +34,3 @@ typedef enum {
        NAMED_RELOAD_IN_PROGRESS,
        NAMED_RELOAD_FAILED,
 } named_reload_t;
-
-#endif /* NAMED_TYPES_H */
index fadb3e1f38d443ef318d9c68f40d8c08a2e39425..8dbc14a231501d5a8df71e7bbd4b82fc5e95aa79 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NAMED_ZONECONF_H
-#define NAMED_ZONECONF_H 1
+#pragma once
 
 /*! \file */
 
@@ -77,5 +76,3 @@ named_zone_configure_writeable_dlz(dns_dlzdb_t *dlzdatabase, dns_zone_t *zone,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* NAMED_ZONECONF_H */
index f5479438afa3a0daa4678ee9d214d4d6435ac6c1..01598900e965fdccdcbaf3f22a8dad8ce394ed84 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef RNDC_UTIL_H
-#define RNDC_UTIL_H 1
+#pragma once
 
 /*! \file */
 
@@ -39,5 +38,3 @@ ISC_NORETURN void
 fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
 
 ISC_LANG_ENDDECLS
-
-#endif /* RNDC_UTIL_H */
index d91f5b1139214421911262a74a8a0f81d84ee3b7..31a5a4c497fd2be60fa053b71fcf6f8c3138aba0 100644 (file)
@@ -4,8 +4,7 @@
  * Copyright (C) 2009-2015  Red Hat ; see COPYRIGHT for license
  */
 
-#ifndef _LD_INSTANCE_H_
-#define _LD_INSTANCE_H_
+#pragma once
 
 #include <stdbool.h>
 
@@ -45,5 +44,3 @@ load_sample_instance_zones(sample_instance_t *inst);
 
 void
 destroy_sample_instance(sample_instance_t **sample_instp);
-
-#endif /* !_LD_INSTANCE_H_ */
index 35c9c84e81b5c59668dcd971d272edba4e8e5505..6d9b0bd8a3b538a9e2683d0dc13db69f89a44efd 100644 (file)
@@ -2,8 +2,7 @@
  * Copyright (C) 2014-2015  Red Hat ; see COPYRIGHT for license
  */
 
-#ifndef LOCK_H_
-#define LOCK_H_
+#pragma once
 
 #include "instance.h"
 #include "util.h"
@@ -13,5 +12,3 @@ run_exclusive_enter(sample_instance_t *inst, isc_result_t *statep);
 
 void
 run_exclusive_exit(sample_instance_t *inst, isc_result_t state);
-
-#endif /* LOCK_H_ */
index e0d9e660174168dd0fd7efa3cba4ca58b066b071..ed25ede5774a739747f3c10f390fe76d0bd40fc6 100644 (file)
@@ -2,8 +2,7 @@
  * Copyright (C) 2009--2015  Red Hat ; see COPYRIGHT for license
  */
 
-#ifndef _LD_LOG_H_
-#define _LD_LOG_H_
+#pragma once
 
 #include <isc/error.h>
 #include <isc/result.h>
@@ -21,5 +20,3 @@
 
 void
 log_write(int level, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
-
-#endif /* !_LD_LOG_H_ */
index 5bc3b5058b3265b472cf7b1cec5dab084a79fc58..c7e409e458ce101bc32cfb4593ef7f75aea15160 100644 (file)
@@ -4,8 +4,7 @@
  * Copyright (C) 2009-2015  Red Hat ; see COPYRIGHT for license
  */
 
-#ifndef _LD_UTIL_H_
-#define _LD_UTIL_H_
+#pragma once
 
 #include <isc/mem.h>
 
@@ -54,5 +53,3 @@
 #define MEM_PUT_AND_DETACH(target_ptr)                        \
        isc_mem_putanddetach(&(target_ptr)->mctx, target_ptr, \
                             sizeof(*(target_ptr)))
-
-#endif /* !_LD_UTIL_H_ */
index 35d63ebe3418b4d8ba41411b5f4bfcb31ee12738..71dd27baf48c5ea0db479fcd88e69e26fa9d55c0 100644 (file)
@@ -9,6 +9,8 @@
  * information regarding copyright ownership.
  */
 
+#pragma once
+
 #define CONCAT(a, b) a##b
 #define DNSCONF_SET_STRING(FIELD)                                         \
        void CONCAT(DNSConf_set, FIELD)(DNSConf * cfg, const char *arg) { \
index c8be683bfda3e5252495d5aeda283bdfb1b4abc7..2d062646e151f0a5fc5c90a1ae7c5c833061fc4f 100644 (file)
@@ -14,6 +14,8 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
+#pragma once
+
 #include <dirent.h>
 #include <sys/types.h>
 
index c4ce143718b16a1beeb80a128599fae5859335cf..237dc08ecd1727ed22e8a5a0e983f2d1454cc290 100644 (file)
@@ -39,8 +39,7 @@
 #include <dlz_minimal.h>
 #include <dlz_pthread.h>
 
-#ifndef DLZ_DBI_H
-#define DLZ_DBI_H 1
+#pragma once
 
 /*
  * Types
@@ -116,5 +115,3 @@ destroy_dbinstance(dbinstance_t *dbi);
 
 char *
 get_parameter_value(const char *input, const char *key);
-
-#endif /* DLZ_DBI_H */
index 74940d0254d732d31c82851adcbbd34cb9c30e3e..af1830f874936073bdb92b6912caf706cbd834c0 100644 (file)
@@ -7,8 +7,7 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef DLZ_LIST_H
-#define DLZ_LIST_H 1
+#pragma once
 
 #define DLZ_LIST(type)             \
        struct {                   \
@@ -46,5 +45,3 @@
 
 #define DLZ_LIST_PREV(elt, link) ((elt)->link.prev)
 #define DLZ_LIST_NEXT(elt, link) ((elt)->link.next)
-
-#endif /* DLZ_LIST_H */
index 4259039bd4111d748fec577e37a2df2d01f306a4..4e4760fe409470a3ec3ebfd26d6aae712c0a3751 100644 (file)
@@ -23,8 +23,7 @@
  * tree.
  */
 
-#ifndef DLZ_MINIMAL_H
-#define DLZ_MINIMAL_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -287,5 +286,3 @@ dlz_subrdataset(const char *name, const char *rdatastr, void *dbdata,
 isc_result_t
 dlz_delrdataset(const char *name, const char *type, void *dbdata,
                void *version);
-
-#endif /* DLZ_MINIMAL_H */
index fd8d5fe899a1ff25ee9e98c064f843cc96f2f1d2..08f4b5232f5c56a76fcb9fbaedc24cdd76d5de50 100644 (file)
@@ -14,8 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef DLZ_PTHREAD_H
-#define DLZ_PTHREAD_H 1
+#pragma once
 
 #ifndef PTHREADS
 #define PTHREADS 1
@@ -37,5 +36,3 @@
 #define dlz_mutex_trylock(a) (0)
 #define dlz_mutex_unlock(a)  (0)
 #endif /* ifdef PTHREADS */
-
-#endif /* DLZ_PTHREAD_H */
index 1db8e2833dbf5b373d8fb2b9c8de07810ad710c5..3ffcacf984a2c4e8016e0efc0a45ca06843982e2 100644 (file)
@@ -15,6 +15,8 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#pragma once
+
 #include <dlz_minimal.h>
 
 /* This is the only part that differs from dlz_minimal.h. */
index abbce372edc7060bef594781ef2e60d1c15c7409..796791209cb9ccbb5d6b3147669430ccf37c4413 100644 (file)
@@ -9,6 +9,8 @@
  * information regarding copyright ownership.
  */
 
+#pragma once
+
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
index 9e7318a813cd9f482dff2c47a6bdf62ebbcc5fda..3d0b11835221843ad8ad787bce94cfb20681c886 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef BIND9_CHECK_H
-#define BIND9_CHECK_H 1
+#pragma once
 
 /*! \file bind9/check.h */
 
@@ -60,5 +59,3 @@ bind9_check_key(const cfg_obj_t *config, isc_log_t *logctx);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* BIND9_CHECK_H */
index fff72839934f63b21c89913b417605c7bb593d87..119964fd4c0f6e4753f7be7146a6dec72c40cde5 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef BIND9_GETADDRESSES_H
-#define BIND9_GETADDRESSES_H 1
+#pragma once
 
 /*! \file bind9/getaddresses.h */
 
@@ -48,5 +47,3 @@ bind9_getaddresses(const char *hostname, in_port_t port, isc_sockaddr_t *addrs,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* BIND9_GETADDRESSES_H */
index 34b06d4e0217b6094f03771d66d4de6dc54a544a..e0ba4cdb4108893b770bb6b2af0893fa449c2443 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DST_OPENSSL_H
-#define DST_OPENSSL_H 1
+#pragma once
 
 #include <openssl/bn.h>
 #include <openssl/conf.h>
@@ -67,6 +66,3 @@ dst__openssl_getengine(const char *engine);
 #endif /* if !defined(OPENSSL_NO_ENGINE) */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DST_OPENSSL_H */
-/*! \file */
index dc7e312ca8954a19b235ef08d0c12821fdf1f24f..159eb758cc1b30d774126bec9ebf9fe168d2f2d0 100644 (file)
@@ -24,8 +24,7 @@
  */
 
 /*! \file */
-#ifndef DST_DST_PARSE_H
-#define DST_DST_PARSE_H 1
+#pragma once
 
 #include <isc/lang.h>
 
@@ -126,5 +125,3 @@ dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
                          const char *directory);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DST_DST_PARSE_H */
index 2db0a8820afdad2480d531f8cf5a9b6ea09fcecb..f5688a13bc45c0648e7ad92913504648f54d6628 100644 (file)
@@ -22,8 +22,7 @@
  * The dir stuff was shrunk to fit the needs of gen.c.
  */
 
-#ifndef DNS_GEN_UNIX_H
-#define DNS_GEN_UNIX_H 1
+#pragma once
 
 #include <dirent.h>
 #include <errno.h>
@@ -100,5 +99,3 @@ end_directory(isc_dir_t *dir) {
 }
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_GEN_UNIX_H */
index a5f2e34e435c153e8abda9c00f276170cd061668..e122340d1bebda7ff188b2e7db84273fcd15bf7d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ACL_H
-#define DNS_ACL_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -272,5 +271,3 @@ dns_aclelement_match(const isc_netaddr_t *reqaddr, const dns_name_t *reqsigner,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ACL_H */
index 635569f7a31b0fdda4590c8925b885ad7d3f5e3c..747930e3a0386dc6d0beb76eb5d3a7777902af78 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ADB_H
-#define DNS_ADB_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -803,5 +802,3 @@ dns_adb_endudpfetch(dns_adb_t *adb, dns_adbaddrinfo_t *addr);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ADB_H */
index 305588b01407507271dd9121386398f55c60c3a3..161beb8d85415d68c2cf7f1b7db0d7452a35fa20 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_BADCACHE_H
-#define DNS_BADCACHE_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -146,5 +145,3 @@ dns_badcache_print(dns_badcache_t *bc, const char *cachename, FILE *fp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_BADCACHE_H */
index 63da46243b212d34a31988052a088376bf11d6de..c9e4adab5bdd462360ae103dd519b3f4fb322658 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_BIT_H
-#define DNS_BIT_H 1
+#pragma once
 
 /*! \file dns/bit.h */
 
@@ -22,5 +21,3 @@ typedef uint64_t dns_bitset_t;
 #define DNS_BIT_CLEAR(bit, bitset) (*(bitset) &= ~((dns_bitset_t)1 << (bit)))
 #define DNS_BIT_CHECK(bit, bitset) \
        ((*(bitset) & ((dns_bitset_t)1 << (bit))) == ((dns_bitset_t)1 << (bit)))
-
-#endif /* DNS_BIT_H */
index 8d9998c2f8686e7c512b504e3bfe9a079f049860..738c368fd440a51f05088de0b9c8e36666231718 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_BYADDR_H
-#define DNS_BYADDR_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -146,5 +145,3 @@ dns_byaddr_createptrname(const isc_netaddr_t *address, unsigned int options,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_BYADDR_H */
index 383eccf189703691b3fec1303b4dffee4d5faedf..3fbf653baef65aab3883a642eef4f2038cf7d7d5 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_CACHE_H
-#define DNS_CACHE_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -299,5 +298,3 @@ dns_cache_renderjson(dns_cache_t *cache, void *cstats0);
 #endif /* HAVE_JSON_C */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_CACHE_H */
index 5d9fbcf39b8003a2ed81c20f144964f877815378..cb496c7d52592bcf42169f6b8154337f3dfbf481 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_CALLBACKS_H
-#define DNS_CALLBACKS_H 1
+#pragma once
 
 /*! \file dns/callbacks.h */
 
@@ -90,5 +89,3 @@ dns_rdatacallbacks_init_stdio(dns_rdatacallbacks_t *callbacks);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_CALLBACKS_H */
index f718382225005b831f08ff3e80e8e2cae9b4befa..54f57e4f71df28a3188ae80800976f79e6ba7bdd 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_CATZ_H
-#define DNS_CATZ_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -470,5 +469,3 @@ dns_catz_get_iterator(dns_catz_zone_t *catz, isc_ht_iter_t **itp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_CATZ_H_ */
index 588ee472973f0c5f671d7b8ae5f26ce867c8efc2..21b3fe92b2d79882ea2d1b3f2d57f3e72937a83e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_CERT_H
-#define DNS_CERT_H 1
+#pragma once
 
 /*! \file dns/cert.h */
 
@@ -57,5 +56,3 @@ dns_cert_totext(dns_cert_t cert, isc_buffer_t *target);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_CERT_H */
index 9c3114dbd0a9d7b64560d39d2ed4cf47e83abf13..037b33431d526f81b3a44c571a2cdeff68f7d2d1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_CLIENT_H
-#define DNS_CLIENT_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -290,5 +289,3 @@ dns_client_addtrustedkey(dns_client_t *client, dns_rdataclass_t rdclass,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_CLIENT_H */
index 406150652772d803c63b757b39dd0447526fef5c..c5788a08aa84fea55e5022e647fef7884d5f62c7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_CLIENTINFO_H
-#define DNS_CLIENTINFO_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -77,5 +76,3 @@ void
 dns_clientinfo_init(dns_clientinfo_t *ci, void *data, void *versionp);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_CLIENTINFO_H */
index dc17e1436014b93b3c7e2f6c6f5a6fb5f673ff0b..3be0cace180b25423dcb54c982cc8d2d69eb92df 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_COMPRESS_H
-#define DNS_COMPRESS_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -296,5 +295,3 @@ dns_decompress_type(dns_decompress_t *dctx);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_COMPRESS_H */
index 5c9d1ed2479705b00c66356404a0c84407e8dc58..4ed5a12778e1941398e463bced0c70cfb2d884e9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DB_H
-#define DNS_DB_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -1746,5 +1745,3 @@ dns_db_setgluecachestats(dns_db_t *db, isc_stats_t *stats);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DB_H */
index 7750a2f2514e5a48998a2ee62160b3c5a8cfcf51..63cb00ce33649a6c9e3e505ee9478ec2b1aed322 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DBITERATOR_H
-#define DNS_DBITERATOR_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -287,5 +286,3 @@ dns_dbiterator_setcleanmode(dns_dbiterator_t *iterator, bool mode);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DBITERATOR_H */
index 39fb1a9c05617158461091ac4f653599062ad88c..cbe25ef515551a16dbcefa93791e1dec27388627 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DIFF_H
-#define DNS_DIFF_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -276,5 +275,3 @@ dns_diff_print(dns_diff_t *diff, FILE *file);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DIFF_H */
index 549b74415f2195810da71176c96d8a1da8ec9749..3a9d0e68fea4aab7c7ea93f95a20b6e0dcd45929 100644 (file)
@@ -46,8 +46,7 @@
 
 /*! \file dns/dlz.h */
 
-#ifndef DLZ_H
-#define DLZ_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -330,5 +329,3 @@ dns_dlz_ssumatch(dns_dlzdb_t *dlzdatabase, const dns_name_t *signer,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DLZ_H */
index 1066156e22822e8c1468d3809a048bb2401f85ae..293645da385aca9865a0efae9564fafa79f0f4ea 100644 (file)
@@ -11,8 +11,7 @@
 
 /*! \file dns/dlz_dlopen.h */
 
-#ifndef DLZ_DLOPEN_H
-#define DLZ_DLOPEN_H
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -153,5 +152,3 @@ dlz_dlopen_delrdataset_t(const char *name, const char *type, void *dbdata,
                         void *version);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ifndef DLZ_DLOPEN_H */
index c1960f0031c77a4213ee299df53d5abff722c069..4a7facc382b7c499d8efeda8da22552b45b5469b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DNS64_H
-#define DNS_DNS64_H 1
+#pragma once
 
 #include <stdbool.h>
 
@@ -189,5 +188,3 @@ dns_dns64_findprefix(dns_rdataset_t *rdataset, isc_netprefix_t *prefix,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DNS64_H */
index a9af86f3bb4905d192a19046ee512f733f14406f..3e2144f856e78e3b75f07d00228c1e9e554e9429 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DNSRPS_H
-#define DNS_DNSRPS_H
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -109,5 +108,3 @@ dns_dnsrps_rewrite_init(librpz_emsg_t *emsg, dns_rpz_st_t *st,
 #endif /* USE_DNSRPS */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DNSRPS_H */
index cd83a2a1f43a34d1767e3e983e692cfcccb7900a..4126d7dbde85ec9a3f47f141f6827cdda320c89d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DNSSEC_H
-#define DNS_DNSSEC_H 1
+#pragma once
 
 /*! \file dns/dnssec.h */
 
@@ -392,5 +391,3 @@ dns_dnssec_matchdskey(dns_name_t *name, dns_rdata_t *dsrdata,
  *\li  Other values indicate error
  */
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DNSSEC_H */
index 14e042c3c61a3cac002875b605090685d655e829..9facef6ab1965241b7ed4e2181e4c6c6b804f449 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef _DNSTAP_H
-#define _DNSTAP_H
+#pragma once
 
 /*****
 ***** Module Info
@@ -390,5 +389,3 @@ dns_dt_close(dns_dthandle_t **handlep);
  *
  *\li  '*handlep' is not NULL
  */
-
-#endif /* _DNSTAP_H */
index 0674413c3d29af4462eb508e954243d6ca80ec63..009aa7f711164a734f1e15fee2996a0e31e5707e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DS_H
-#define DNS_DS_H 1
+#pragma once
 
 #include <isc/lang.h>
 
@@ -62,5 +61,3 @@ dns_ds_buildrdata(dns_name_t *owner, dns_rdata_t *key,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DS_H */
index 89750dab1abea00c9b6e1a07bc3887535f6bc239..0d58c68f096d62f65eb026919370accd91970cb2 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DSDIGEST_H
-#define DNS_DSDIGEST_H 1
+#pragma once
 
 /*! \file dns/dsdigest.h */
 
@@ -66,5 +65,3 @@ dns_dsdigest_format(dns_dsdigest_t typ, char *cp, unsigned int size);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DSDIGEST_H */
index 3291c1e379049d7eaf644b14d6ae8b14b10277aa..1db7a241ef43fe2d3ec1a7101b2550b6de15a55b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_DYNDB_H
-#define DNS_DYNDB_H
+#pragma once
 
 #include <stdbool.h>
 
@@ -156,5 +155,3 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_DYNDB_H */
index 40f04ed70b7ffe7155a1f6abe9b8c79958ac4b8f..f6d7fbecc8d21b2133f428335a591d0fa175be96 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ECS_H
-#define DNS_ECS_H 1
+#pragma once
 
 #include <inttypes.h>
 
@@ -53,5 +52,3 @@ dns_ecs_format(dns_ecs_t *ecs, char *buf, size_t size);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ECS_H */
index 0bae0b5aca1386286b695ec65189d78ed5fde88a..c2a70931c279f8cadfd07f8217fafb04211bbf67 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_EDNS_H
-#define DNS_EDNS_H 1
+#pragma once
 
 /*%
  * The maximum version on EDNS supported by this build.
@@ -23,5 +22,3 @@
  */
 #define DNS_EDNS_VERSION 1 /* draft-andrews-edns1 */
 #endif                    /* ifdef DRAFT_ANDREWS_EDNS1 */
-
-#endif /* ifndef DNS_EDNS_H */
index 32af3d954c48626fbf2ff77306d21979232bda41..58af42c4011675d47a48e8a1fa3724ab77eb2af7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_EVENTS_H
-#define DNS_EVENTS_H 1
+#pragma once
 
 #include <isc/eventclass.h>
 
@@ -84,5 +83,3 @@
 
 #define DNS_EVENT_FIRSTEVENT (ISC_EVENTCLASS_DNS + 0)
 #define DNS_EVENT_LASTEVENT  (ISC_EVENTCLASS_DNS + 65535)
-
-#endif /* DNS_EVENTS_H */
index e4f354aacc1d87e0482ea7a4bb227e30257fe061..708baab08557361708ed82106e9ed4546e6b2389 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_FIXEDNAME_H
-#define DNS_FIXEDNAME_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -79,5 +78,3 @@ dns_name_t *
 dns_fixedname_initname(dns_fixedname_t *fixed);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_FIXEDNAME_H */
index 371c104993c6c9a2a5a8148a1bdb4516adf09675..47d36570a9a9155317d646f8caa5ada2be84b5aa 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_FORWARD_H
-#define DNS_FORWARD_H 1
+#pragma once
 
 /*! \file dns/forward.h */
 
@@ -118,5 +117,3 @@ dns_fwdtable_destroy(dns_fwdtable_t **fwdtablep);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_FORWARD_H */
index 45c9b9ea7904b20b1830c1b4dcf89c06f33c7186..65822750c523f9ae536470d65c076a15f72b8198 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_GEOIP_H
-#define DNS_GEOIP_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -108,5 +107,3 @@ dns_geoip_match(const isc_netaddr_t     *reqaddr,
 ISC_LANG_ENDDECLS
 
 #endif /* HAVE_GEOIP2 */
-
-#endif /* DNS_GEOIP_H */
index 45af1af1c1c697386f1e6e60f7f9eb9532cdeca0..614d90067800717401c3c8dad4dac4af077357ec 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_IPKEYLIST_H
-#define DNS_IPKEYLIST_H 1
+#pragma once
 
 #include <inttypes.h>
 
@@ -85,5 +84,3 @@ dns_ipkeylist_resize(isc_mem_t *mctx, dns_ipkeylist_t *ipkl, unsigned int n);
  * \li #ISC_R_SUCCESS if success
  * \li #ISC_R_NOMEMORY if there's no memory, ipkeylist is left untouched
  */
-
-#endif /* ifndef DNS_IPKEYLIST_H */
index 86255e6bdc6621449416994484150762f6ac26e8..9723faf8f7d17686a52de74f2d5bd3a7bce08fcd 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_IPTABLE_H
-#define DNS_IPTABLE_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -64,5 +63,3 @@ void
 dns_iptable_detach(dns_iptable_t **tabp);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_IPTABLE_H */
index c2d869702006172b1c7237dd9ceaf0d22c0670c1..9c6982675d4e5115b1c3144f3d45cb630f388ea4 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_JOURNAL_H
-#define DNS_JOURNAL_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -335,5 +334,3 @@ dns_journal_set_sourceserial(dns_journal_t *j, uint32_t sourceserial);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_JOURNAL_H */
index 84fed27c683de6e933df31978984364c2fde34f6..3103787151b81388720e3d9170fde90342b9d1ca 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_KASP_H
-#define DNS_KASP_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -711,5 +710,3 @@ dns_kasp_setnsec3param(dns_kasp_t *kasp, uint8_t iter, bool optout,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_KASP_H */
index 7fbac3863941a5c06c0a080b5532c83c21edbe7b..c1bbe9458989ad17c2794125adc28c7f7e9ce610 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_KEYDATA_H
-#define DNS_KEYDATA_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -45,5 +44,3 @@ dns_keydata_fromdnskey(dns_rdata_keydata_t *keydata, dns_rdata_dnskey_t *dnskey,
                       isc_mem_t *mctx);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYDATA_H */
index e0a6b4e89d75c8e739c8376de996f105c3e0d24f..a7143cbe147a58a01e11f574e7c0891b842eb58f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_KEYFLAGS_H
-#define DNS_KEYFLAGS_H 1
+#pragma once
 
 /*! \file dns/keyflags.h */
 
@@ -42,5 +41,3 @@ dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYFLAGS_H */
index ae4ab5da1352942dd00fb49aefc5da165d613c68..e84b5a18b1f856afdbd403d1e2dae7c826b219f7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_KEYMGR_H
-#define DNS_KEYMGR_H 1
+#pragma once
 
 /*! \file dns/keymgr.h */
 
@@ -128,5 +127,3 @@ dns_keymgr_status(dns_kasp_t *kasp, dns_dnsseckeylist_t *keyring,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYMGR_H */
index dbb4f01a780894abba609fe6dafbdc743d43ead5..e2a3309c7dcbfe9fd3418fa779c0d00ca6959498 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_KEYTABLE_H
-#define DNS_KEYTABLE_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -344,5 +343,3 @@ dns_keytable_forall(dns_keytable_t *keytable,
                                 dns_name_t *, void *),
                    void *arg);
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_KEYTABLE_H */
index db63d401504037e63b0d7e9df34461f0f7927b14..eb1157def38ae6f5e08e8c81d23bf8150036e8db 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_KEYVALUES_H
-#define DNS_KEYVALUES_H 1
+#pragma once
 
 /*! \file dns/keyvalues.h */
 
 
 #define DNS_KEY_ED25519SIZE 32
 #define DNS_KEY_ED448SIZE   57
-
-#endif /* DNS_KEYVALUES_H */
index 7ae95f31334693d4ea78052c063d80388df8f5e6..c6afa34379619968ec8fc2ccdbfab268a296b9a3 100644 (file)
@@ -32,8 +32,7 @@
  * version 1.2.12
  */
 
-#ifndef LIBRPZ_H
-#define LIBRPZ_H
+#pragma once
 
 #include <inttypes.h>
 #include <stdarg.h>
@@ -950,5 +949,3 @@ librpz_lib_open(librpz_emsg_t *emsg, void **dl_handle, const char *path) {
 #endif /* LIBRPZ_LIB_OPEN */
 }
 #endif /* LIBRPZ_LIB_OPEN */
-
-#endif /* LIBRPZ_H */
index 9efd19d7dccf33678d878f01e93733367495a877..9a0ea66259315cec840029bf7debac4a16c1c4ca 100644 (file)
@@ -12,8 +12,7 @@
 /*! \file dns/log.h
  */
 
-#ifndef DNS_LOG_H
-#define DNS_LOG_H 1
+#pragma once
 
 #include <isc/lang.h>
 #include <isc/log.h>
@@ -109,5 +108,3 @@ dns_log_setcontext(isc_log_t *lctx);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_LOG_H */
index 618c1b1791c946a268a167ba37eb54cb4433f676..d12904672516695a0855c4f505c92bbb63492192 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_LOOKUP_H
-#define DNS_LOOKUP_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -125,5 +124,3 @@ dns_lookup_destroy(dns_lookup_t **lookupp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_LOOKUP_H */
index 4db7e37f667b0c5516f9ebf988c4bd6f7a8391f3..11c456750448ee2e5b7b6c9da3e674259d70ed91 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_MASTER_H
-#define DNS_MASTER_H 1
+#pragma once
 
 /*! \file dns/master.h */
 
@@ -256,5 +255,3 @@ dns_master_initrawheader(dns_masterrawheader_t *header);
  * values to zero.
  */
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_MASTER_H */
index 40aa6a4200af5cdbf42f38b9997b6bc993279949..0c1879b928a9989a62596c28ceda15289ef86907 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_MASTERDUMP_H
-#define DNS_MASTERDUMP_H 1
+#pragma once
 
 /*! \file dns/masterdump.h */
 
@@ -356,5 +355,3 @@ void
 dns_master_styledestroy(dns_master_style_t **style, isc_mem_t *mctx);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_MASTERDUMP_H */
index 326bf76d765824abdc6cbc6864a14171febc0675..66db60b78b7659e5734ff5ea915aa0363e662912 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_NAME_H
-#define DNS_NAME_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -1383,5 +1382,3 @@ ISC_LANG_ENDDECLS
 #define dns_name_split(n, l, p, s) DNS_NAME_SPLIT(n, l, p, s)
 
 #endif /* DNS_NAME_USEINLINE */
-
-#endif /* DNS_NAME_H */
index 160c28de962fd2d5dae446647efdb7ffd9bf134b..8feadf0299b05f997d56a3a867df4d1869bc5711 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_NCACHE_H
-#define DNS_NCACHE_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -181,5 +180,3 @@ dns_ncache_current(dns_rdataset_t *ncacherdataset, dns_name_t *found,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_NCACHE_H */
index 8dc28f6914a9d12f6d83e5675aa5e3db75489bfa..f6844cf82cb9e44b96302bab95d6d0708d78576a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_NSEC_H
-#define DNS_NSEC_H 1
+#pragma once
 
 /*! \file dns/nsec.h */
 
@@ -108,5 +107,3 @@ dns_nsec_noexistnodata(dns_rdatatype_t type, const dns_name_t *name,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_NSEC_H */
index bfcc81c05076cc9b3bd40a44ca384420f5410d3f..5a5cf20bbe1427feec2c0504d0026b0d3f1aa743 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_NSEC3_H
-#define DNS_NSEC3_H 1
+#pragma once
 
 #include <stdbool.h>
 
@@ -266,5 +265,3 @@ dns_nsec3_noexistnodata(dns_rdatatype_t type, const dns_name_t *name,
                        dns_name_t *nearest, dns_nseclog_t logit, void *arg);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_NSEC3_H */
index df5bf471303090701d52b2834e05005f016b0aec..94421b815fc76e2e38a339394ff6db151b7cc23d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_NTA_H
-#define DNS_NTA_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -206,5 +205,3 @@ dns_ntatable_shutdown(dns_ntatable_t *ntatable);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_NTA_H */
index e81f574bc8882f84b95bba0186e0e4893ab7da94..2c99b92d9cc274c92855250dd245a42a6718da3f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_OPCODE_H
-#define DNS_OPCODE_H 1
+#pragma once
 
 /*! \file dns/opcode.h */
 
@@ -40,5 +39,3 @@ dns_opcode_totext(dns_opcode_t opcode, isc_buffer_t *target);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_OPCODE_H */
index 248f8abf1dd3f89b9d24f563f60ef9a9ed4db1ab..2d48b1971305b1d5ea40c267a41f02e722cee315 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ORDER_H
-#define DNS_ORDER_H 1
+#pragma once
 
 /*! \file dns/order.h */
 
@@ -87,5 +86,3 @@ dns_order_detach(dns_order_t **orderp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ORDER_H */
index 652afc02afa9223e5a20b4004fd16368fcf69c35..facbf2dc230088cef3c6b79326c549ff7ee987f0 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_PEER_H
-#define DNS_PEER_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -223,5 +222,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
-
-#endif /* DNS_PEER_H */
index 62521a8360277f15b644929fd89216b3171c792f..84126c8c03e6ff0008a2860e5ccf5b2d9b2c44aa 100644 (file)
@@ -17,8 +17,7 @@
 #include <dns/db.h>
 #include <dns/types.h>
 
-#ifndef DNS_PRIVATE_H
-#define DNS_PRIVATE_H
+#pragma once
 
 ISC_LANG_BEGINDECLS
 
@@ -63,5 +62,3 @@ dns_private_totext(dns_rdata_t *privaterdata, isc_buffer_t *buffer);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ifndef DNS_PRIVATE_H */
index 17fe783cf9a302555fbd13c60b9babed5c2d4209..26e26b59d9ff5224e2042a115bb3722fa17a0f66 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RBT_H
-#define DNS_RBT_H 1
+#pragma once
 
 /*! \file dns/rbt.h */
 
@@ -992,5 +991,3 @@ dns__rbtnode_namelen(dns_rbtnode_t *node);
  * and in unit tests.
  */
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RBT_H */
index 93f3ed339d12c67e60eed966a47f6ee382f287b3..2866ca88d89770979fd44fa384aaed02392eea89 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RCODE_H
-#define DNS_RCODE_H 1
+#pragma once
 
 /*! \file dns/rcode.h */
 
@@ -104,5 +103,3 @@ dns_hashalg_fromtext(unsigned char *hashalg, isc_textregion_t *source);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RCODE_H */
index d842b81543053a033a0cf4c4784db81e65190859..8f579530da98433e325e23fac2c93a1e0684c1c7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATA_H
-#define DNS_RDATA_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -806,5 +805,3 @@ const char *
 dns_rdata_updateop(dns_rdata_t *rdata, dns_section_t section);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATA_H */
index 254d9dd5cb75643a30b02713ec9e2aa7b3f207db..9c7ddde79ab88c04e213f2a1f4c42d66ab82668a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATACLASS_H
-#define DNS_RDATACLASS_H 1
+#pragma once
 
 /*! \file dns/rdataclass.h */
 
@@ -88,5 +87,3 @@ dns_rdataclass_format(dns_rdataclass_t rdclass, char *array, unsigned int size);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATACLASS_H */
index 9dc9a8db6feabbb583b1859dafe90895f07ddc8d..727300e33fbcf65b4f719c853287106624984b31 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATALIST_H
-#define DNS_RDATALIST_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -117,5 +116,3 @@ dns_rdatalist_fromrdataset(dns_rdataset_t     *rdataset,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATALIST_H */
index d8c69fb00aeeb5c568ce0ca3c6ae6ee19c9bf70e..f786501b7948f7a5d955b7d18c9d48b8636391cd 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATASET_H
-#define DNS_RDATASET_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -605,5 +604,3 @@ dns_trust_totext(dns_trust_t trust);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASET_H */
index 8705dfc4c255d7749065f9857ff5f4336ce13f6f..7c6fcea5d7afc91d4cd8207754a891dbc0bb5ae9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATASETITER_H
-#define DNS_RDATASETITER_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -157,5 +156,3 @@ dns_rdatasetiter_current(dns_rdatasetiter_t *iterator,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASETITER_H */
index 5a22f099c3c54444c9ae73dc541f9ea47ed073d7..159a2e8903df5de72bab8abfa2913ef2fb03f3cb 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATASLAB_H
-#define DNS_RDATASLAB_H 1
+#pragma once
 
 /*! \file dns/rdataslab.h
  * \brief
@@ -167,5 +166,3 @@ dns_rdataslab_equalx(unsigned char *slab1, unsigned char *slab2,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASLAB_H */
index 481ea82e9a053c72ab3c6464b8b0957da7528ddc..44b088347f395fd8eaf152d957f9f1fcb572812a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATATYPE_H
-#define DNS_RDATATYPE_H 1
+#pragma once
 
 /*! \file dns/rdatatype.h */
 
@@ -91,5 +90,3 @@ dns_rdatatype_format(dns_rdatatype_t rdtype, char *array, unsigned int size);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATATYPE_H */
index 9554603b50b1ce69814bd55c649f479f8cf28320..fb555bfdbe1ed3b9431ef366db7e059e63a88084 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_REQUEST_H
-#define DNS_REQUEST_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -355,5 +354,3 @@ dns_request_destroy(dns_request_t **requestp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_REQUEST_H */
index 85d81c0c8a580b5207e8e12e733967928141f09e..63edb0777400465111ca1e1a219397bf87e1a4c4 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RESOLVER_H
-#define DNS_RESOLVER_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -736,5 +735,3 @@ dns_resolver_setfuzzing(void);
 #endif /* ifdef ENABLE_AFL */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RESOLVER_H */
index a4dbc9cff629313c6c7c822ccfaa197c643eee86..e201799b9aeb297f98685b25b9ca252e631c9f95 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RESULT_H
-#define DNS_RESULT_H 1
+#pragma once
 
 /*! \file dns/result.h */
 
@@ -28,5 +27,3 @@ isc_result_t
 dns_result_fromrcode(dns_rcode_t rcode);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RESULT_H */
index 0452ec197cacdb4da26de508b1648c82b97f12bd..1071213600405a011a0da2f9bc3346601ba9497c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ROOTNS_H
-#define DNS_ROOTNS_H 1
+#pragma once
 
 /*! \file dns/rootns.h */
 
@@ -33,5 +32,3 @@ dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ROOTNS_H */
index a0a59390a1f2c355314fd66b8d7efd317bf12086..601a2dd6c545de4edcc5838c059ee20403cb8d02 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RPZ_H
-#define DNS_RPZ_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -430,5 +429,3 @@ 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
-
-#endif /* DNS_RPZ_H */
index 2adc67c56807718f08303ed35b5d7c59f52e2157..8f982dd5269559c3e1fa6c85769f5dff4a7da127 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RRITERATOR_H
-#define DNS_RRITERATOR_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -176,5 +175,3 @@ dns_rriterator_destroy(dns_rriterator_t *it);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RRITERATOR_H */
index a98649801c0909cd6b5de55939efdb4f4a35a728..7dd42f0684b01e0eb91ab4a92d8883f6598567c7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RRL_H
-#define DNS_RRL_H 1
+#pragma once
 
 /*
  * Rate limit DNS responses.
@@ -266,5 +265,3 @@ isc_result_t
 dns_rrl_init(dns_rrl_t **rrlp, dns_view_t *view, int min_entries);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RRL_H */
index b37872b9f9afbac8ceca4c755ff1a4c0760c204f..63fae5dd3c60efb872cd33046e245b33dfdfb2e6 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_SDB_H
-#define DNS_SDB_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -208,5 +207,3 @@ dns_sdb_putsoa(dns_sdblookup_t *lookup, const char *mname, const char *rname,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_SDB_H */
index ef403eaa5d4859921112097243f6a05178bf8592..18ebb967c74920d18a4f72765119b5b98701490d 100644 (file)
@@ -46,8 +46,7 @@
 
 /*! \file dns/sdlz.h */
 
-#ifndef SDLZ_H
-#define SDLZ_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -353,5 +352,3 @@ dns_sdlz_setdb_t dns_sdlz_setdb;
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* SDLZ_H */
index 8df35e071e88ff19dc71e94168fb6941ae6c43d6..af65fe9a5e5efc21a66392268bf7fa201c1000d1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_SECALG_H
-#define DNS_SECALG_H 1
+#pragma once
 
 /*! \file dns/secalg.h */
 
@@ -66,5 +65,3 @@ dns_secalg_format(dns_secalg_t alg, char *cp, unsigned int size);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_SECALG_H */
index 5d67840adf9ab3175df1a2a5212ed300bed32600..425eea6874ab6d16ad4e3bbfc23d967c420a574d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_SECPROTO_H
-#define DNS_SECPROTO_H 1
+#pragma once
 
 /*! \file dns/secproto.h */
 
@@ -59,5 +58,3 @@ dns_secproto_totext(dns_secproto_t secproto, isc_buffer_t *target);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_SECPROTO_H */
index 52ee3aadd2920d8bc6b7bb2b0029b375a17d2b79..57951464008d0b244074a6f99d5f8319b132672c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_SOA_H
-#define DNS_SOA_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -90,5 +89,3 @@ dns_soa_setminimum(uint32_t val, dns_rdata_t *rdata);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_SOA_H */
index 4b6ead69f57c721f76243ea014f272884f6d796e..6b3b8ee7b86b5f0ae9f1e2edb7a5a174c01aa284 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_SSU_H
-#define DNS_SSU_H 1
+#pragma once
 
 /*! \file dns/ssu.h */
 
@@ -255,5 +254,3 @@ dns_ssu_mtypefromstring(const char *str, dns_ssumatchtype_t *mtype);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_SSU_H */
index 8c973fe5e04fd2527a27c05fae2182377027b713..4342fe41c5ddf3211ab085ced5af875e45ba5bc9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_STATS_H
-#define DNS_STATS_H 1
+#pragma once
 
 /*! \file dns/stats.h */
 
@@ -820,5 +819,3 @@ dns_stats_freecounters(isc_mem_t *mctx, uint64_t **ctrp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_STATS_H */
index b0d710cc649845caf704f80a01fc2da95dcd253a..eaf64a291ee59401b2bfb6b0577c1dd52944c9b7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TIME_H
-#define DNS_TIME_H 1
+#pragma once
 
 /*! \file dns/time.h */
 
@@ -67,5 +66,3 @@ dns_time64_from32(uint32_t value);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_TIME_H */
index 6bbb4ee29bccf68d9a44295204ee79d243028932..1ce86d66d23f2382d084ae8ecf78e86ad0cb3722 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TIMER_H
-#define DNS_TIMER_H 1
+#pragma once
 
 /*! \file dns/timer.h */
 
@@ -42,5 +41,3 @@ dns_timer_setidle(isc_timer_t *timer, unsigned int maxtime,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_TIMER_H */
index 11d758ec4477ba6b3e5627d399445ceedf840be3..d8e77e66d52d40e83047a51b8723ff5fd4589106 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TKEY_H
-#define DNS_TKEY_H 1
+#pragma once
 
 /*! \file dns/tkey.h */
 
@@ -240,5 +239,3 @@ dns_tkey_gssnegotiate(dns_message_t *qmsg, dns_message_t *rmsg,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_TKEY_H */
index 13519d31f90abffaf9f811fde3dd7815dfa0e0b6..aa899c037803a0858ad6c216357d7c7b3126ee52 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TSEC_H
-#define DNS_TSEC_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -126,5 +125,3 @@ dns_tsec_getkey(dns_tsec_t *tsec, void *keyp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_TSEC_H */
index 443736a857c87dc34c189d4180172d3705263854..78b59970bb7c6b482d19a19f58417c2b6c5ccea2 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TSIG_H
-#define DNS_TSIG_H 1
+#pragma once
 
 /*! \file dns/tsig.h */
 
@@ -290,5 +289,3 @@ void
 dns_keyring_restore(dns_tsig_keyring_t *ring, FILE *fp);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_TSIG_H */
index 1cceb503a5f7d8e4fa7e7d3551744f6bcdaac66e..4ad28cfa232f55ecbb38ff2a658d7779168d16d2 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TTL_H
-#define DNS_TTL_H 1
+#pragma once
 
 /*! \file dns/ttl.h */
 
@@ -74,5 +73,3 @@ dns_ttl_fromtext(isc_textregion_t *source, uint32_t *ttl);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_TTL_H */
index 59d2fb28bdd6acb6819f28c4d9370f4c50cbbe05..9a617e1b7f8be1911a89e5ff1f04e2be15d76f10 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TYPES_H
-#define DNS_TYPES_H 1
+#pragma once
 
 /*! \file dns/types.h
  * \brief
@@ -420,5 +419,3 @@ typedef bool (*dns_isselffunc_t)(dns_view_t *, dns_tsigkey_t *,
                                 dns_rdataclass_t, void *);
 
 typedef void (*dns_nseclog_t)(void *val, int, const char *, ...);
-
-#endif /* DNS_TYPES_H */
index f566488e3ec24518fb1dcc0367122b0f1e1a512e..49f08bfd089eed048a6d48a4fcb46bfe596af0a7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_UPDATE_H
-#define DNS_UPDATE_H 1
+#pragma once
 
 /*! \file dns/update.h */
 
@@ -69,5 +68,3 @@ dns_update_signaturesinc(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
                         dns_update_state_t **state);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_UPDATE_H */
index 4744014598350b3889f9f879b515a0c8bd3f2ddb..43da2b4c269fa0989e991950e985a4e706e6066a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_VALIDATOR_H
-#define DNS_VALIDATOR_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -237,5 +236,3 @@ dns_validator_destroy(dns_validator_t **validatorp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_VALIDATOR_H */
index cd8cd0b006bafd441d9d73bc1ae18ccb41360966..f1ec93877f356ccf46ea6fda916a7f5f590ae91b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_VIEW_H
-#define DNS_VIEW_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -1362,5 +1361,3 @@ dns_view_staleanswerenabled(dns_view_t *view);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_VIEW_H */
index 17858b917c7fa7696b2247f1f3f6dce8cac9612b..d080b089cb3fda17248d2bd43b1b447b38c63120 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_XFRIN_H
-#define DNS_XFRIN_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -91,5 +90,3 @@ dns_xfrin_attach(dns_xfrin_ctx_t *source, dns_xfrin_ctx_t **target);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_XFRIN_H */
index da3ebc8a6e34f6cc07ec0de5b61c68ff6a46e90d..e05b653d6cdc3c05cf3eb04cbf48acb3991a7221 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ZONE_H
-#define DNS_ZONE_H 1
+#pragma once
 
 /*! \file dns/zone.h */
 
@@ -2730,5 +2729,3 @@ dns_zonetype_name(dns_zonetype_t type);
 /*%<
  * Return the name of the zone type 'type'.
  */
-
-#endif /* DNS_ZONE_H */
index 0235d1d70e6a13aaffcd0e47576df699b4e1ccf3..9a63874baca039fa0391e44a8445f3805dbf78d1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ZONEKEY_H
-#define DNS_ZONEKEY_H 1
+#pragma once
 
 /*! \file dns/zonekey.h */
 
@@ -32,5 +31,3 @@ dns_zonekey_iszonekey(dns_rdata_t *keyrdata);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ZONEKEY_H */
index ef451362a7b2598f20a1bb1c9456c18ca7d201a1..03ead096e113e02a50c3e1f3edaf7576236b2e2c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ZT_H
-#define DNS_ZT_H 1
+#pragma once
 
 /*! \file dns/zt.h */
 
@@ -217,5 +216,3 @@ dns_zt_setviewrevert(dns_zt_t *zt);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ZT_H */
index f454ebbf783ba93083b5e8630c818ab17187cb2c..aac4607f0e85f495e0d5343e4eb411d848e0a8b2 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DST_DST_H
-#define DST_DST_H 1
+#pragma once
 
 /*! \file dst/dst.h */
 
@@ -1201,5 +1200,3 @@ dst_key_copy_metadata(dst_key_t *to, dst_key_t *from);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DST_DST_H */
index e691c643882df9c31bce0178772b77db7f799af2..c01a5c662f942e35e6c4a8290c66ac2e80cd680e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RBTDB_H
-#define DNS_RBTDB_H 1
+#pragma once
 
 #include <isc/lang.h>
 
@@ -46,5 +45,3 @@ dns_rbtdb_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RBTDB_H */
index 634319cc30006636732d85020a0caf47acfe8f9a..245efe815d08330551aa317323d669841ebfacd9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ANY_255_TSIG_250_H
-#define ANY_255_TSIG_250_H 1
+#pragma once
 
 /*% RFC2845 */
 typedef struct dns_rdata_any_tsig {
@@ -26,5 +25,3 @@ typedef struct dns_rdata_any_tsig {
        uint16_t otherlen;
        unsigned char *other;
 } dns_rdata_any_tsig_t;
-
-#endif /* ANY_255_TSIG_250_H */
index 5f37804abf61894f26451a2acfefc90e1965fe69..67acfde948fa36e22c87cb28e74d1871a7c54206 100644 (file)
@@ -12,8 +12,7 @@
 /* by Bjorn.Victor@it.uu.se, 2005-05-07 */
 /* Based on generic/mx_15.h */
 
-#ifndef CH_3_A_1_H
-#define CH_3_A_1_H 1
+#pragma once
 
 typedef uint16_t ch_addr_t;
 
@@ -25,5 +24,3 @@ typedef struct dns_rdata_ch_a {
        ch_addr_t ch_addr;      /* chaos address (16 bit) network
                                 * order */
 } dns_rdata_ch_a_t;
-
-#endif /* CH_3_A_1_H */
index 0f78b37a51b8619acc0d2623de7f3c9c1ed5f084..8d7353a0f4484cf31c1f42ec080723209c945f92 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_AFSDB_18_H
-#define GENERIC_AFSDB_18_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1183 */
@@ -21,5 +20,3 @@ typedef struct dns_rdata_afsdb {
        uint16_t subtype;
        dns_name_t server;
 } dns_rdata_afsdb_t;
-
-#endif /* GENERIC_AFSDB_18_H */
index b8256b8a5f71928b27ddc5cd85067675853e796e..1c6c3b8c910337c90ec59eb8bea7d9a211fa7b8b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_AMTRELAY_260_H
-#define GENERIC_AMTRELAY_260_H 1
+#pragma once
 
 typedef struct dns_rdata_amtrelay {
        dns_rdatacommon_t common;
@@ -24,5 +23,3 @@ typedef struct dns_rdata_amtrelay {
        unsigned char *data;      /* gateway type > 3 */
        uint16_t length;
 } dns_rdata_amtrelay_t;
-
-#endif /* GENERIC_AMTRELAY_260_H */
index 5ee851e2253116fb5046137c222b8de7ee0f27a8..b0ead3e6db268d37d41e5d523fe50c1383795d4e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_AVC_258_H
-#define GENERIC_AVC_258_H 1
+#pragma once
 
 typedef dns_rdata_txt_string_t dns_rdata_avc_string_t;
 
@@ -27,4 +26,3 @@ typedef struct dns_rdata_avc {
  * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
  * via rdatastructpre.h and rdatastructsuf.h.
  */
-#endif /* GENERIC_AVC_258_H */
index c444c2912ceac9192d049d3b53ddf89283f9261a..5b8e2bde3b399c94a72a442528c2bef8a37bf07e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_CAA_257_H
-#define GENERIC_CAA_257_H 1
+#pragma once
 
 typedef struct dns_rdata_caa {
        dns_rdatacommon_t common;
@@ -21,5 +20,3 @@ typedef struct dns_rdata_caa {
        unsigned char *value;
        uint16_t value_len;
 } dns_rdata_caa_t;
-
-#endif /* GENERIC_CAA_257_H */
index 84a6c9739c5b81f5dadb975e64ab4edfe1b4dc16..a9ee0b8a7da3dba0b19bb5390cd3d54597246305 100644 (file)
@@ -9,10 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_CDNSKEY_60_H
-#define GENERIC_CDNSKEY_60_H 1
+#pragma once
 
 /* CDNSKEY records have the same RDATA fields as DNSKEY records. */
 typedef struct dns_rdata_key dns_rdata_cdnskey_t;
-
-#endif /* GENERIC_CDNSKEY_60_H */
index a248266cc26cefd1e39105c2032d2e63c525b506..a31c320d6b938d431326ae5c22a59665aced0cc0 100644 (file)
@@ -9,10 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_CDS_59_H
-#define GENERIC_CDS_59_H 1
+#pragma once
 
 /* CDS records have the same RDATA fields as DS records. */
 typedef struct dns_rdata_ds dns_rdata_cds_t;
-
-#endif /* GENERIC_CDS_59_H */
index 7eb5ee7cbdaaba8ee872a17e1c1f487afae417b1..748ea05bde5a853b43132a6785bacb86195b3162 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_CERT_37_H
-#define GENERIC_CERT_37_H 1
+#pragma once
 
 /*% RFC2538 */
 typedef struct dns_rdata_cert {
@@ -22,5 +21,3 @@ typedef struct dns_rdata_cert {
        uint16_t length;
        unsigned char *certificate;
 } dns_rdata_cert_t;
-
-#endif /* GENERIC_CERT_37_H */
index 2daadba9ba5b0ead9087a7003644ffbed3ab4b68..5c8e2c9c1ca4b0c75509e9b082c3fa2f76d51224 100644 (file)
@@ -9,13 +9,10 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_CNAME_5_H
-#define GENERIC_CNAME_5_H 1
+#pragma once
 
 typedef struct dns_rdata_cname {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t cname;
 } dns_rdata_cname_t;
-
-#endif /* GENERIC_CNAME_5_H */
index a06e94c77087a7051a5fe5e271879f8a746bae3d..6258973acd8b32a0c7f468901f99e5e64ce6d03b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_CSYNC_62_H
-#define GENERIC_CSYNC_62_H 1
+#pragma once
 
 /*!
  * \brief Per RFC 7477
@@ -24,5 +23,3 @@ typedef struct dns_rdata_csync {
        unsigned char *typebits;
        uint16_t len;
 } dns_rdata_csync_t;
-
-#endif /* GENERIC_CSYNC_62_H */
index 25622966350c1f2599927377e4db8c256b51a4dc..91d408cbc942cda50e49a6783e7ef85ab961455d 100644 (file)
@@ -10,9 +10,6 @@
  */
 
 /* draft-ietf-dnsext-delegation-signer-05.txt */
-#ifndef GENERIC_DLV_32769_H
-#define GENERIC_DLV_32769_H 1
+#pragma once
 
 typedef struct dns_rdata_ds dns_rdata_dlv_t;
-
-#endif /* GENERIC_DLV_32769_H */
index ff370bee1ecb1150a3db85be3932bc8aebbfb318..c2dad23ff889bbade038f3be0da965879447432a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_DNAME_39_H
-#define GENERIC_DNAME_39_H 1
+#pragma once
 
 /*!
  *  \brief per RFC2672 */
@@ -20,5 +19,3 @@ typedef struct dns_rdata_dname {
        isc_mem_t *mctx;
        dns_name_t dname;
 } dns_rdata_dname_t;
-
-#endif /* GENERIC_DNAME_39_H */
index a57c9f6fac698707af5f25c0fd75ae23a7f6a806..6151ed2a3ad3aee511fb0fd131d9955bc22d2c56 100644 (file)
@@ -9,13 +9,10 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_DNSKEY_48_H
-#define GENERIC_DNSKEY_48_H 1
+#pragma once
 
 /*!
  *  \brief per RFC2535
  */
 
 typedef struct dns_rdata_key dns_rdata_dnskey_t;
-
-#endif /* GENERIC_DNSKEY_48_H */
index 85c8d4b5c0bed37b0b016cda13851dd938fa23fa..701c626597a677b211bcfb95ce0d2c5f593cd7fa 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_DOA_259_H
-#define GENERIC_DOA_259_H 1
+#pragma once
 
 typedef struct dns_rdata_doa {
        dns_rdatacommon_t common;
@@ -23,5 +22,3 @@ typedef struct dns_rdata_doa {
        uint8_t location;
        uint8_t mediatype_len;
 } dns_rdata_doa_t;
-
-#endif /* GENERIC_DOA_259_H */
index beead6becbcbb58c9dfbc33330ba824b7ff6d644..e4b30827ce5ff8ce362ebf4fbef91c9ce716fd5d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_DS_43_H
-#define GENERIC_DS_43_H 1
+#pragma once
 
 /*!
  *  \brief per draft-ietf-dnsext-delegation-signer-05.txt */
@@ -23,5 +22,3 @@ typedef struct dns_rdata_ds {
        uint16_t length;
        unsigned char *digest;
 } dns_rdata_ds_t;
-
-#endif /* GENERIC_DS_43_H */
index 012c523981681d4eff357bdd82224411b8c6477d..e804a2dfd28bdaab0c7856aa8577ae7872a157a5 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_EUI48_108_H
-#define GENERIC_EUI48_108_H 1
+#pragma once
 
 typedef struct dns_rdata_eui48 {
        dns_rdatacommon_t common;
        unsigned char eui48[6];
 } dns_rdata_eui48_t;
-
-#endif /* GENERIC_EUI48_10k_H */
index 8173262d023a779e55c16d8cdee79da9d62725a5..2b1762d4065e527f57d3fd60a4137f11f3100e01 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_EUI64_109_H
-#define GENERIC_EUI64_109_H 1
+#pragma once
 
 typedef struct dns_rdata_eui64 {
        dns_rdatacommon_t common;
        unsigned char eui64[8];
 } dns_rdata_eui64_t;
-
-#endif /* GENERIC_EUI64_10k_H */
index 6b41c08ed5af6e432353f0c525fd7a8912c7bbea..a17c30f6b436d9d068ee5484365f411ffb12e332 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_GPOS_27_H
-#define GENERIC_GPOS_27_H 1
+#pragma once
 
 /*!
  *  \brief per RFC1712 */
@@ -25,5 +24,3 @@ typedef struct dns_rdata_gpos {
        uint8_t lat_len;
        uint8_t alt_len;
 } dns_rdata_gpos_t;
-
-#endif /* GENERIC_GPOS_27_H */
index 2e8a032bded59a05713107526ea9439e3a56d0b4..98dbe1fd6273c0e06033cdc63d7d0dbb1190fb7a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef RDATA_GENERIC_HINFO_13_C
-#define RDATA_GENERIC_HINFO_13_C
+#pragma once
 
 #define RRTYPE_HINFO_ATTRIBUTES (0)
 
@@ -215,4 +214,3 @@ static inline int
 casecompare_hinfo(ARGS_COMPARE) {
        return (compare_hinfo(rdata1, rdata2));
 }
-#endif /* RDATA_GENERIC_HINFO_13_C */
index 14dda6016968b5e54f6b32feb384e41fa35f158f..b1e889078b766b4e67ba4964999128658434b5cf 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_HINFO_13_H
-#define GENERIC_HINFO_13_H 1
+#pragma once
 
 typedef struct dns_rdata_hinfo {
        dns_rdatacommon_t common;
@@ -20,5 +19,3 @@ typedef struct dns_rdata_hinfo {
        uint8_t cpu_len;
        uint8_t os_len;
 } dns_rdata_hinfo_t;
-
-#endif /* GENERIC_HINFO_13_H */
index 77d774e37be9f766b9123314324b7b45a352becf..6487c555a9940c84f930c91ade018b9fdf2ccb8b 100644 (file)
@@ -11,8 +11,7 @@
 
 /* RFC 5205 */
 
-#ifndef RDATA_GENERIC_HIP_5_C
-#define RDATA_GENERIC_HIP_5_C
+#pragma once
 
 #define RRTYPE_HIP_ATTRIBUTES (0)
 
@@ -518,5 +517,3 @@ casecompare_hip(ARGS_COMPARE) {
        }
        return (isc_region_compare(&r1, &r2));
 }
-
-#endif /* RDATA_GENERIC_HIP_5_C */
index 35adcfc19dd9c6133be726a4738970afb4ce4f5a..ec6543f7f3c52e122e7e2bb88efb9d05005f5889 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_HIP_5_H
-#define GENERIC_HIP_5_H 1
+#pragma once
 
 /* RFC 5205 */
 
@@ -36,5 +35,3 @@ dns_rdata_hip_next(dns_rdata_hip_t *);
 
 void
 dns_rdata_hip_current(dns_rdata_hip_t *, dns_name_t *);
-
-#endif /* GENERIC_HIP_5_H */
index b9e6b99385085eb413a41344429a12ac15601b29..1af4ca69e807d0c12031f0ee6c09600cafa0c02f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_IPSECKEY_45_H
-#define GENERIC_IPSECKEY_45_H 1
+#pragma once
 
 typedef struct dns_rdata_ipseckey {
        dns_rdatacommon_t common;
@@ -24,5 +23,3 @@ typedef struct dns_rdata_ipseckey {
        unsigned char *key;
        uint16_t keylength;
 } dns_rdata_ipseckey_t;
-
-#endif /* GENERIC_IPSECKEY_45_H */
index 9213f39aad2bbeae5001c7fbe0b04cd4f4204b99..e4add1402311f8800c7ec1efcb336a534985d3c5 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_ISDN_20_H
-#define GENERIC_ISDN_20_H 1
+#pragma once
 
 /*!
  * \brief Per RFC1183 */
@@ -23,5 +22,3 @@ typedef struct dns_rdata_isdn {
        uint8_t isdn_len;
        uint8_t subaddress_len;
 } dns_rdata_isdn_t;
-
-#endif /* GENERIC_ISDN_20_H */
index 9b2678fbd9440f2fc2fdfb6d6f9fa3515e277fe3..0daa6eebffc4791fa3bec2297c4bf489008097b6 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_KEY_25_H
-#define GENERIC_KEY_25_H 1
+#pragma once
 
 /*!
  * \brief Per RFC2535 */
@@ -24,5 +23,3 @@ typedef struct dns_rdata_key {
        uint16_t datalen;
        unsigned char *data;
 } dns_rdata_key_t;
-
-#endif /* GENERIC_KEY_25_H */
index a854d5e31c056b7b0a2a811bd0fa1539f2685130..d0d5444c1ae37f1cbfa83f6dc1db0a5d82ff1b5d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_KEYDATA_65533_H
-#define GENERIC_KEYDATA_65533_H 1
+#pragma once
 
 typedef struct dns_rdata_keydata {
        dns_rdatacommon_t common;
@@ -24,5 +23,3 @@ typedef struct dns_rdata_keydata {
        uint16_t datalen;
        unsigned char *data;
 } dns_rdata_keydata_t;
-
-#endif /* GENERIC_KEYDATA_65533_H */
index ababafa6f5babbf2338a82d59b656e67ef645664..fde8655acfc809430cac58c156f26fd5681e3de7 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_L32_105_H
-#define GENERIC_L32_105_H 1
+#pragma once
 
 typedef struct dns_rdata_l32 {
        dns_rdatacommon_t common;
        uint16_t pref;
        struct in_addr l32;
 } dns_rdata_l32_t;
-
-#endif /* GENERIC_L32_105_H */
index fcbaa4540505fe93b956fed1737e586c6da0354d..9456d846ae3a270c128928a680db3038bdc297f3 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_L64_106_H
-#define GENERIC_L64_106_H 1
+#pragma once
 
 typedef struct dns_rdata_l64 {
        dns_rdatacommon_t common;
        uint16_t pref;
        unsigned char l64[8];
 } dns_rdata_l64_t;
-
-#endif /* GENERIC_L64_106_H */
index a9ec6857be29215b64d6012e436a1fa528927465..caebf89b29ad936a378c53bec8956bd3a8799ba0 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_LOC_29_H
-#define GENERIC_LOC_29_H 1
+#pragma once
 
 /*!
  * \brief Per RFC1876 */
@@ -31,5 +30,3 @@ typedef struct dns_rdata_loc {
                dns_rdata_loc_0_t v0;
        } v;
 } dns_rdata_loc_t;
-
-#endif /* GENERIC_LOC_29_H */
index ff660df75df96682c7a3c0ae75539f9ee0eb7075..e4fa53457509d0d8b3e5f752a703e9521356cddf 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_LP_107_H
-#define GENERIC_LP_107_H 1
+#pragma once
 
 typedef struct dns_rdata_lp {
        dns_rdatacommon_t common;
@@ -19,5 +18,3 @@ typedef struct dns_rdata_lp {
        uint16_t pref;
        dns_name_t lp;
 } dns_rdata_lp_t;
-
-#endif /* GENERIC_LP_107_H */
index b9d5b90b8a518a50fde176df98e571ca9c953683..fa39541fe6e6f4c111878766055f0a6090a388a4 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_MB_7_H
-#define GENERIC_MB_7_H 1
+#pragma once
 
 typedef struct dns_rdata_mb {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t mb;
 } dns_rdata_mb_t;
-
-#endif /* GENERIC_MB_7_H */
index ae6369f430d402c23bef969cc8ec140d5cda6853..8f434c03e7eceabe64e14c60d6ba75d561e1d741 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_MD_3_H
-#define GENERIC_MD_3_H 1
+#pragma once
 
 typedef struct dns_rdata_md {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t md;
 } dns_rdata_md_t;
-
-#endif /* GENERIC_MD_3_H */
index 4b00afcba0b7c336c2c0312bb89cb6d90d3a4a2c..20c9626508540417e6a51b75b25bd80338ae5fd2 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_MF_4_H
-#define GENERIC_MF_4_H 1
+#pragma once
 
 typedef struct dns_rdata_mf {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t mf;
 } dns_rdata_mf_t;
-
-#endif /* GENERIC_MF_4_H */
index 195f842e6dc203505dcc4680058a8d02d24dab40..7811901f16fa968c9196449dad8eb753c7ede2e1 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_MG_8_H
-#define GENERIC_MG_8_H 1
+#pragma once
 
 typedef struct dns_rdata_mg {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t mg;
 } dns_rdata_mg_t;
-
-#endif /* GENERIC_MG_8_H */
index 8cfecad2f9d43fac3441da00418b2a7b3f78f6a4..464275ea35e8a091cb30bdac01e7303082ad6237 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_MINFO_14_H
-#define GENERIC_MINFO_14_H 1
+#pragma once
 
 typedef struct dns_rdata_minfo {
        dns_rdatacommon_t common;
@@ -19,5 +18,3 @@ typedef struct dns_rdata_minfo {
        dns_name_t rmailbox;
        dns_name_t emailbox;
 } dns_rdata_minfo_t;
-
-#endif /* GENERIC_MINFO_14_H */
index 61cfd8e6d86694600f8730bb3aaa98f919eed2be..90761f4ca26d382954bba907d4c6a0b8206e1000 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_MR_9_H
-#define GENERIC_MR_9_H 1
+#pragma once
 
 typedef struct dns_rdata_mr {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t mr;
 } dns_rdata_mr_t;
-
-#endif /* GENERIC_MR_9_H */
index 9c71f9f60bcf6534cab465e2271d0d89c60529e9..23121e0a2a47bcdd7966e9a1cc04c48b21914636 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_MX_15_H
-#define GENERIC_MX_15_H 1
+#pragma once
 
 typedef struct dns_rdata_mx {
        dns_rdatacommon_t common;
@@ -19,5 +18,3 @@ typedef struct dns_rdata_mx {
        uint16_t pref;
        dns_name_t mx;
 } dns_rdata_mx_t;
-
-#endif /* GENERIC_MX_15_H */
index 708d07b9385062518c577a60772387fc7f004895..59a4b9c055457468aef381ed41caf340bb9dbca5 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_NAPTR_35_H
-#define GENERIC_NAPTR_35_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2915 */
@@ -28,5 +27,3 @@ typedef struct dns_rdata_naptr {
        uint8_t regexp_len;
        dns_name_t replacement;
 } dns_rdata_naptr_t;
-
-#endif /* GENERIC_NAPTR_35_H */
index 603623c4f9f73d63646c91ae2c072ca635d7f2fb..92f5f3affce4e487cd301d9419937e3e9b1149a7 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_NID_104_H
-#define GENERIC_NID_104_H 1
+#pragma once
 
 typedef struct dns_rdata_nid {
        dns_rdatacommon_t common;
        uint16_t pref;
        unsigned char nid[8];
 } dns_rdata_nid_t;
-
-#endif /* GENERIC_NID_104_H */
index 26ca2e2fb56c14801a98e97bb6a45667c246d3c1..bbd5b83a882bb48f777c779bf54c7b5cf866753e 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_NINFO_56_H
-#define GENERIC_NINFO_56_H 1
+#pragma once
 
 typedef struct dns_rdata_txt_string dns_rdata_ninfo_string_t;
 
@@ -30,5 +29,3 @@ dns_rdata_ninfo_next(dns_rdata_ninfo_t *);
 
 isc_result_t
 dns_rdata_ninfo_current(dns_rdata_ninfo_t *, dns_rdata_ninfo_string_t *);
-
-#endif /* GENERIC_NINFO_16_H */
index bd0984d023d7fce2e7b52f9e5514b479995e5abf..ead5f553099a160a9604c60a4e986412cf77bbe4 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_NS_2_H
-#define GENERIC_NS_2_H 1
+#pragma once
 
 typedef struct dns_rdata_ns {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t name;
 } dns_rdata_ns_t;
-
-#endif /* GENERIC_NS_2_H */
index 459123cf2538ff34568dab7055752cb2b8a958b5..6494f36f92377bc350f7fe8eb7c728cc57da7ea7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_NSEC3_50_H
-#define GENERIC_NSEC3_50_H 1
+#pragma once
 
 /*!
  * \brief Per RFC 5155 */
@@ -106,5 +105,3 @@ typedef struct dns_rdata_nsec3 {
  * nameservers.
  */
 #define DNS_NSEC3FLAG_NONSEC 0x10U
-
-#endif /* GENERIC_NSEC3_50_H */
index b92f6180944ac7f1ac9cdd658667520a852115b9..114291800acd3acbae7eb343036ceae23deb5a22 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_NSEC3PARAM_51_H
-#define GENERIC_NSEC3PARAM_51_H 1
+#pragma once
 
 /*!
  * \brief Per RFC 5155 */
@@ -26,5 +25,3 @@ typedef struct dns_rdata_nsec3param {
        unsigned char salt_length;
        unsigned char *salt;
 } dns_rdata_nsec3param_t;
-
-#endif /* GENERIC_NSEC3PARAM_51_H */
index a142a811c1b8ffa2b8561be80e63c001b6aa5040..66f96852d4b90ca9d1a073f2171e1fe48aaadbf1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_NSEC_47_H
-#define GENERIC_NSEC_47_H 1
+#pragma once
 
 /*!
  * \brief Per RFC 3845 */
@@ -22,5 +21,3 @@ typedef struct dns_rdata_nsec {
        unsigned char *typebits;
        uint16_t len;
 } dns_rdata_nsec_t;
-
-#endif /* GENERIC_NSEC_47_H */
index c0253c74a0156e6f571b73f915c6a35390ff824c..fe0fbd16e0d5492af0afda261d4817860759c575 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_NULL_10_H
-#define GENERIC_NULL_10_H 1
+#pragma once
 
 typedef struct dns_rdata_null {
        dns_rdatacommon_t common;
@@ -19,5 +18,3 @@ typedef struct dns_rdata_null {
        uint16_t length;
        unsigned char *data;
 } dns_rdata_null_t;
-
-#endif /* GENERIC_NULL_10_H */
index 6875313d8c465d21f7548b610b79f68d968bf391..5acbd6a5334c566fd77483a2781df3c211c98f1e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_NXT_30_H
-#define GENERIC_NXT_30_H 1
+#pragma once
 
 /*!
  *  \brief RFC2535 */
@@ -22,5 +21,3 @@ typedef struct dns_rdata_nxt {
        unsigned char *typebits;
        uint16_t len;
 } dns_rdata_nxt_t;
-
-#endif /* GENERIC_NXT_30_H */
index c5caba2cd691e4b212130c59c069690c549cb2ea..11763301061c04a02955e93efcb02ec96aa6cc88 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_OPENPGPKEY_61_H
-#define GENERIC_OPENPGPKEY_61_H 1
+#pragma once
 
 typedef struct dns_rdata_openpgpkey {
        dns_rdatacommon_t common;
@@ -18,5 +17,3 @@ typedef struct dns_rdata_openpgpkey {
        uint16_t length;
        unsigned char *keyring;
 } dns_rdata_openpgpkey_t;
-
-#endif /* GENERIC_OPENPGPKEY_61_H */
index 57ddfc0765204baeffbd45d558b9d0bdb957d7ca..43e16c09386f39e229f46c78bd7914982a61e78a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_OPT_41_H
-#define GENERIC_OPT_41_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2671 */
@@ -43,5 +42,3 @@ dns_rdata_opt_next(dns_rdata_opt_t *);
 
 isc_result_t
 dns_rdata_opt_current(dns_rdata_opt_t *, dns_rdata_opt_opcode_t *);
-
-#endif /* GENERIC_OPT_41_H */
index 080957cbaf87c3cddbfa3d53d60b944c93630f9f..d8aa03706f7a11da206a1b14d4a2cf7fefe06298 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_PROFORMA_H
-#define GENERIC_PROFORMA_H 1
+#pragma once
 
 typedef struct dns_rdata_ #{
        dns_rdatacommon_t common;
@@ -19,5 +18,3 @@ typedef struct dns_rdata_ #{
                         /* type & class specific elements */
 }
 dns_rdata_ #_t;
-
-#endif /* GENERIC_PROFORMA_H */
index 28c80d3e358d1decd104b0dad52b4a424b23c550..381b98f7b0a3666d1b5d54ddd8b6d91eba6aa556 100644 (file)
  */
 
 /* */
-#ifndef GENERIC_PTR_12_H
-#define GENERIC_PTR_12_H 1
+#pragma once
 
 typedef struct dns_rdata_ptr {
        dns_rdatacommon_t common;
        isc_mem_t *mctx;
        dns_name_t ptr;
 } dns_rdata_ptr_t;
-
-#endif /* GENERIC_PTR_12_H */
index 8408b3d9a601439cd7b4e2266de1dbdeeba86af1..dac2093c8d85ab4c86254619daa516457bd17e5c 100644 (file)
@@ -9,9 +9,6 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_RKEY_57_H
-#define GENERIC_RKEY_57_H 1
+#pragma once
 
 typedef struct dns_rdata_key dns_rdata_rkey_t;
-
-#endif /* GENERIC_RKEY_57_H */
index d846902a88aad86f664049c06031e670d7b54fe3..5e2af0b5eff00fa2e3473ea39c5014465ff665db 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_RP_17_H
-#define GENERIC_RP_17_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1183 */
@@ -21,5 +20,3 @@ typedef struct dns_rdata_rp {
        dns_name_t mail;
        dns_name_t text;
 } dns_rdata_rp_t;
-
-#endif /* GENERIC_RP_17_H */
index fd2f6e56e99ca5ad4edcdaa6756803bcde59ec02..de3b3446079be5f85f518cdb22efca9c00b8af7f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_DNSSIG_46_H
-#define GENERIC_DNSSIG_46_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2535 */
@@ -28,5 +27,3 @@ typedef struct dns_rdata_rrsig {
        uint16_t siglen;
        unsigned char *signature;
 } dns_rdata_rrsig_t;
-
-#endif /* GENERIC_DNSSIG_46_H */
index 21152a0dcd894db8802312100838f500253179ba..8338105f28a3a5b5889ef4a4c963d8fd2e3b023b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_RT_21_H
-#define GENERIC_RT_21_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1183 */
@@ -21,5 +20,3 @@ typedef struct dns_rdata_rt {
        uint16_t preference;
        dns_name_t host;
 } dns_rdata_rt_t;
-
-#endif /* GENERIC_RT_21_H */
index ca71f4a4a476a24fa4e3796c69ac37251d5189cb..88c453e93d40dca3392964c1c3a67054d2a6fbbd 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_SIG_24_H
-#define GENERIC_SIG_24_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2535 */
@@ -29,5 +28,3 @@ typedef struct dns_rdata_sig_t {
        uint16_t siglen;
        unsigned char *signature;
 } dns_rdata_sig_t;
-
-#endif /* GENERIC_SIG_24_H */
index ad53f188478f9a5a822c5d0c1aaeafc9d0d09188..379bf227fdbee2c7d490189975c4ae32596cacf1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_SINK_40_H
-#define GENERIC_SINK_40_H 1
+#pragma once
 
 typedef struct dns_rdata_sink_t {
        dns_rdatacommon_t common;
@@ -21,5 +20,3 @@ typedef struct dns_rdata_sink_t {
        uint16_t datalen;
        unsigned char *data;
 } dns_rdata_sink_t;
-
-#endif /* GENERIC_SINK_40_H */
index e23dd3bbb051211d3963aa2cf850237890b9581a..9fd03a899f0283c8df2da2596eac08c7767b6b4c 100644 (file)
@@ -9,9 +9,6 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_SMIMEA_53_H
-#define GENERIC_SMIMEA_53_H 1
+#pragma once
 
 typedef struct dns_rdata_tlsa dns_rdata_smimea_t;
-
-#endif /* GENERIC_SMIMEA_53_H */
index 2d91670f78136b14094c785ef5c5272a1d0576a0..1636065b68755f1503830673e9308016655fbe28 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_SOA_6_H
-#define GENERIC_SOA_6_H 1
+#pragma once
 
 typedef struct dns_rdata_soa {
        dns_rdatacommon_t common;
@@ -24,5 +23,3 @@ typedef struct dns_rdata_soa {
        uint32_t expire;  /*%< host order */
        uint32_t minimum; /*%< host order */
 } dns_rdata_soa_t;
-
-#endif /* GENERIC_SOA_6_H */
index 533e1e295c266b4daf9532d3a10e960ceaae5590..27f9dcf023aeabf0c80b1bdb75279b014abc6d4c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_SPF_99_H
-#define GENERIC_SPF_99_H 1
+#pragma once
 
 typedef struct dns_rdata_spf_string {
        uint8_t length;
@@ -30,4 +29,3 @@ typedef struct dns_rdata_spf {
  * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
  * via rdatastructpre.h and rdatastructsuf.h.
  */
-#endif /* GENERIC_SPF_99_H */
index 91cc0ab0dea11a6f89d6b4efce17a54c3e588cef..7d31531e2a0a7a36b9bf0067a0b31d0b0b29eb1d 100644 (file)
@@ -12,8 +12,7 @@
 /*!
  *  \brief Per RFC 4255 */
 
-#ifndef GENERIC_SSHFP_44_H
-#define GENERIC_SSHFP_44_H 1
+#pragma once
 
 typedef struct dns_rdata_sshfp {
        dns_rdatacommon_t common;
@@ -23,5 +22,3 @@ typedef struct dns_rdata_sshfp {
        uint16_t length;
        unsigned char *digest;
 } dns_rdata_sshfp_t;
-
-#endif /* GENERIC_SSHFP_44_H */
index a25f652e15b18f941fed1da605c8fa8194d5c9db..0bc2f284a4b8f41f91d99589a367563da8feee4d 100644 (file)
@@ -9,12 +9,9 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_TA_32768_H
-#define GENERIC_TA_32768_H 1
+#pragma once
 
 /*
  * TA records are identical to DS records.
  */
 typedef struct dns_rdata_ds dns_rdata_ta_t;
-
-#endif /* GENERIC_TA_32768_H */
index 501f8a676c4181498171ba9fec39c879186d1089..201b9c979f9b8d3e29d371fd44e639fafd0abcc4 100644 (file)
@@ -13,8 +13,7 @@
  * http://www.iana.org/assignments/dns-parameters/TALINK/talink-completed-template
  */
 
-#ifndef GENERIC_TALINK_58_H
-#define GENERIC_TALINK_58_H 1
+#pragma once
 
 typedef struct dns_rdata_talink {
        dns_rdatacommon_t common;
@@ -22,5 +21,3 @@ typedef struct dns_rdata_talink {
        dns_name_t prev;
        dns_name_t next;
 } dns_rdata_talink_t;
-
-#endif /* GENERIC_TALINK_58_H */
index 220caca2e7342591b859563be5b9398eb9136a11..c115d9fd596b61757aed74b0aa73f3deaa79f22b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_TKEY_249_H
-#define GENERIC_TKEY_249_H 1
+#pragma once
 
 /*!
  *  \brief Per draft-ietf-dnsind-tkey-00.txt */
@@ -28,5 +27,3 @@ typedef struct dns_rdata_tkey {
        uint16_t otherlen;
        unsigned char *other;
 } dns_rdata_tkey_t;
-
-#endif /* GENERIC_TKEY_249_H */
index 68e9c5691e173ec01f450698ed74da61eaa36893..cc6e3a96fc60b04143e3a01520a9dd4a02754821 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_TLSA_52_H
-#define GENERIC_TLSA_52_H 1
+#pragma once
 
 /*!
  *  \brief per rfc6698.txt
@@ -24,5 +23,3 @@ typedef struct dns_rdata_tlsa {
        uint16_t length;
        unsigned char *data;
 } dns_rdata_tlsa_t;
-
-#endif /* GENERIC_TLSA_52_H */
index 3182466659d1fe854c76de638ae994645ddb4629..965cf519c35a1cdec30ba42b3aef0edd7100170e 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef GENERIC_TXT_16_H
-#define GENERIC_TXT_16_H 1
+#pragma once
 
 typedef struct dns_rdata_txt_string {
        uint8_t length;
@@ -40,5 +39,3 @@ dns_rdata_txt_next(dns_rdata_txt_t *);
 
 isc_result_t
 dns_rdata_txt_current(dns_rdata_txt_t *, dns_rdata_txt_string_t *);
-
-#endif /* GENERIC_TXT_16_H */
index e0978be37586c17135f52844aded6de716a50c8a..3751644b8b04f5fe562a7d8ed44acfb4b2d988c3 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_URI_256_H
-#define GENERIC_URI_256_H 1
+#pragma once
 
 typedef struct dns_rdata_uri {
        dns_rdatacommon_t common;
@@ -20,5 +19,3 @@ typedef struct dns_rdata_uri {
        unsigned char *target;
        uint16_t tgt_len;
 } dns_rdata_uri_t;
-
-#endif /* GENERIC_URI_256_H */
index e4c8438a51011ce1a9f639f72f0f8c4e8d76aaf6..911a495c84873a0bffd8e10acc61089969fbe347 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_X25_19_H
-#define GENERIC_X25_19_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1183 */
@@ -21,5 +20,3 @@ typedef struct dns_rdata_x25 {
        unsigned char *x25;
        uint8_t x25_len;
 } dns_rdata_x25_t;
-
-#endif /* GENERIC_X25_19_H */
index 592d89f46ab9ee813ac88982dd97405ea583eefd..c1c128e378fc112ec13c6044ad4ccb3e64949699 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef GENERIC_ZONEMD_63_H
-#define GENERIC_ZONEMD_63_H 1
+#pragma once
 
 /* Known digest type(s). */
 #define DNS_ZONEMD_DIGEST_SHA384 (1)
@@ -28,5 +27,3 @@ typedef struct dns_rdata_zonemd {
        unsigned char *digest;
        uint16_t length;
 } dns_rdata_zonemd_t;
-
-#endif /* GENERIC_ZONEMD_63_H */
index 1df54fc6f66d57b44d2f2439375ea7b2d9f3fc57..484321594f6afea8b390c12f7ba7d2600606ae1d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef RDATA_HS_4_A_1_C
-#define RDATA_HS_4_A_1_C
+#pragma once
 
 #include <isc/net.h>
 
@@ -230,5 +229,3 @@ static inline int
 casecompare_hs_a(ARGS_COMPARE) {
        return (compare_hs_a(rdata1, rdata2));
 }
-
-#endif /* RDATA_HS_4_A_1_C */
index afbf9afae7213d3a084ac232c6058ebe9a610aad..4fdf1b93f749a8d09f77f0ef92605306988fad2d 100644 (file)
  */
 
 /* */
-#ifndef HS_4_A_1_H
-#define HS_4_A_1_H 1
+#pragma once
 
 typedef struct dns_rdata_hs_a {
        dns_rdatacommon_t common;
        struct in_addr in_addr;
 } dns_rdata_hs_a_t;
-
-#endif /* HS_4_A_1_H */
index 3f75153a02a797e51ad748f1c66960280ff1df55..03359bef06152eb776d75abef6fc4b81176e8964 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_A6_38_H
-#define IN_1_A6_38_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2874 */
@@ -22,5 +21,3 @@ typedef struct dns_rdata_in_a6 {
        uint8_t prefixlen;
        struct in6_addr in6_addr;
 } dns_rdata_in_a6_t;
-
-#endif /* IN_1_A6_38_H */
index 0aacd5198703f1dbd95fabb25a2eb17fb5720ba6..f9054cc874d30913deaa82440c6a2b9f000a2417 100644 (file)
  */
 
 /* */
-#ifndef IN_1_A_1_H
-#define IN_1_A_1_H 1
+#pragma once
 
 typedef struct dns_rdata_in_a {
        dns_rdatacommon_t common;
        struct in_addr in_addr;
 } dns_rdata_in_a_t;
-
-#endif /* IN_1_A_1_H */
index 5e09ce46f0cba9a81aca6cd696baec8c15d657ce..3de8ac6afae3934d0e373b2d23dce8a34c52de09 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_AAAA_28_H
-#define IN_1_AAAA_28_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1886 */
@@ -19,5 +18,3 @@ typedef struct dns_rdata_in_aaaa {
        dns_rdatacommon_t common;
        struct in6_addr in6_addr;
 } dns_rdata_in_aaaa_t;
-
-#endif /* IN_1_AAAA_28_H */
index 8263f5c034033b660b6fc67804d39b6256182d77..03394aa6814e0dc3cf6fe44cd1f146406994185c 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef IN_1_APL_42_H
-#define IN_1_APL_42_H 1
+#pragma once
 
 typedef struct dns_rdata_apl_ent {
        bool negative;
@@ -47,5 +46,3 @@ dns_rdata_apl_current(dns_rdata_in_apl_t *, dns_rdata_apl_ent_t *);
 
 unsigned int
 dns_rdata_apl_count(const dns_rdata_in_apl_t *apl);
-
-#endif /* IN_1_APL_42_H */
index b0ea98ee7f343f8e64192686dcf042c6235acfc3..31a385eec2f5411d482496996fdb41316b6e204b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_ATMA_22_H
-#define IN_1_ATMA_22_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1706 */
@@ -22,5 +21,3 @@ typedef struct dns_rdata_in_atma {
        unsigned char *atma;
        uint16_t atma_len;
 } dns_rdata_in_atma_t;
-
-#endif /* IN_1_ATMA_22_H */
index bc5af55442e43b13be856f8a70c4969d854929ed..6bb1b61dac954d09736d1705b8eb2fd8eb0bce96 100644 (file)
@@ -10,8 +10,7 @@
  */
 
 /* */
-#ifndef IN_1_DHCID_49_H
-#define IN_1_DHCID_49_H 1
+#pragma once
 
 typedef struct dns_rdata_in_dhcid {
        dns_rdatacommon_t common;
@@ -19,5 +18,3 @@ typedef struct dns_rdata_in_dhcid {
        unsigned char *dhcid;
        unsigned int length;
 } dns_rdata_in_dhcid_t;
-
-#endif /* IN_1_DHCID_49_H */
index 37d7e5eb391ed8aeac76378c25e6c5e91ff200b3..013b75588febdde170a60e69f78713cbe9f779d7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_EID_31_H
-#define IN_1_EID_31_H 1
+#pragma once
 
 /*!
  *  \brief http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt
@@ -22,5 +21,3 @@ typedef struct dns_rdata_in_eid {
        unsigned char *eid;
        uint16_t eid_len;
 } dns_rdata_in_eid_t;
-
-#endif /* IN_1_EID_31_H */
index ff562bec6dab6b6578ff8aa213fb1c80bf68ed31..ed5bfb98ff638acedba871ea4f64fcd4c1e59a95 100644 (file)
@@ -11,8 +11,7 @@
 
 /* draft-ietf-dnsop-svcb-https-02 */
 
-#ifndef RDATA_IN_1_HTTPS_65_C
-#define RDATA_IN_1_HTTPS_65_C
+#pragma once
 
 #define RRTYPE_HTTPS_ATTRIBUTES (DNS_RDATATYPEATTR_FOLLOWADDITIONAL)
 
@@ -180,5 +179,3 @@ dns_rdata_in_https_current(dns_rdata_in_https_t *https, isc_region_t *region) {
 
        generic_rdata_in_svcb_current(https, region);
 }
-
-#endif /* RDATA_IN_1_HTTPS_65_C */
index 2469a359622057468b36251ed575226f2e1b25bc..4509eb355e008c081b53c11a16bc921344a69c16 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_HTTPS_65_H
-#define IN_1_HTTPS_65_H 1
+#pragma once
 
 /*!
  *  \brief Per draft-ietf-dnsop-svcb-https-02
@@ -29,5 +28,3 @@ dns_rdata_in_https_next(dns_rdata_in_https_t *);
 
 void
 dns_rdata_in_https_current(dns_rdata_in_https_t *, isc_region_t *);
-
-#endif /* IN_1_HTTPS_65_H */
index bb685befed54ea42464375254523ff54212d93bc..86261ba54bb1b142b6a12e80fb2920adafd771f9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_KX_36_H
-#define IN_1_KX_36_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2230 */
@@ -21,5 +20,3 @@ typedef struct dns_rdata_in_kx {
        uint16_t preference;
        dns_name_t exchange;
 } dns_rdata_in_kx_t;
-
-#endif /* IN_1_KX_36_H */
index b0f0e60c44b76b441622f3d9a9a5b6b754ff15ad..2ec596dda496d75d886444239d9939cd0fead7e0 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_NIMLOC_32_H
-#define IN_1_NIMLOC_32_H 1
+#pragma once
 
 /*!
  *  \brief http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt
@@ -22,5 +21,3 @@ typedef struct dns_rdata_in_nimloc {
        unsigned char *nimloc;
        uint16_t nimloc_len;
 } dns_rdata_in_nimloc_t;
-
-#endif /* IN_1_NIMLOC_32_H */
index a8fa4ca8cbdc11a883be5b005102a1f4fe51a5bd..a08df54a2707bb4c37578842999b6af469547825 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_NSAP_PTR_23_H
-#define IN_1_NSAP_PTR_23_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1348.  Obsoleted in RFC 1706 - use PTR instead. */
@@ -20,5 +19,3 @@ typedef struct dns_rdata_in_nsap_ptr {
        isc_mem_t *mctx;
        dns_name_t owner;
 } dns_rdata_in_nsap_ptr_t;
-
-#endif /* IN_1_NSAP_PTR_23_H */
index 566d5bafb2a0856f4191735b498572689efd6c86..ade912fa63b5d8094d7517b46e173d323dd4ce20 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_NSAP_22_H
-#define IN_1_NSAP_22_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC1706 */
@@ -21,5 +20,3 @@ typedef struct dns_rdata_in_nsap {
        unsigned char *nsap;
        uint16_t nsap_len;
 } dns_rdata_in_nsap_t;
-
-#endif /* IN_1_NSAP_22_H */
index a682090f72f1d8409a93b8496ef7fc85eca562a3..979226d9a82048ed3996971a7fc66999a5075751 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_PX_26_H
-#define IN_1_PX_26_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2163 */
@@ -22,5 +21,3 @@ typedef struct dns_rdata_in_px {
        dns_name_t map822;
        dns_name_t mapx400;
 } dns_rdata_in_px_t;
-
-#endif /* IN_1_PX_26_H */
index 872d09b877e7c4933c1f780f0e8e996920342bf2..f239e36ec0731749dbbecd31e834e21c13560114 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_SRV_33_H
-#define IN_1_SRV_33_H 1
+#pragma once
 
 /*!
  *  \brief Per RFC2782 */
@@ -23,5 +22,3 @@ typedef struct dns_rdata_in_srv {
        uint16_t port;
        dns_name_t target;
 } dns_rdata_in_srv_t;
-
-#endif /* IN_1_SRV_33_H */
index 750b6820da87447eb6dc230f0cbd0fc2a17d5ab5..0b0aecd9b78a88648ffff8e70c5aef9b0d9f054c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_SVCB_64_H
-#define IN_1_SVCB_64_H 1
+#pragma once
 
 /*!
  *  \brief Per draft-ietf-dnsop-svcb-https-02
@@ -34,5 +33,3 @@ dns_rdata_in_svcb_next(dns_rdata_in_svcb_t *);
 
 void
 dns_rdata_in_svcb_current(dns_rdata_in_svcb_t *, isc_region_t *);
-
-#endif /* IN_1_SVCB_64_H */
index 9729ee92ee83e213d81534053bc94ec33f9699a8..465cb65285ab21f64ff4918c7ef40ad125aa54c1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef IN_1_WKS_11_H
-#define IN_1_WKS_11_H 1
+#pragma once
 
 typedef struct dns_rdata_in_wks {
        dns_rdatacommon_t common;
@@ -20,5 +19,3 @@ typedef struct dns_rdata_in_wks {
        unsigned char *map;
        uint16_t map_len;
 } dns_rdata_in_wks_t;
-
-#endif /* IN_1_WKS_11_H */
index 372a44341004ad35a781180c2b3159270e11c4c4..69e5df51e29d2281dd602c091b4d1c3c27a70b37 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATASTRUCT_H
-#define DNS_RDATASTRUCT_H 1
+#pragma once
 
 #include <isc/lang.h>
 #include <isc/sockaddr.h>
index f3de54b76500552475308aa94c52d0abe5a7941e..ba10cf2bc193cd03ed81941277f117ddbfb94b31 100644 (file)
@@ -10,5 +10,3 @@
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATASTRUCT_H */
index 536448954d65e2c4151b982d51193bbdebe0d0de..77fa5aaeeb5f237990e223a7f5e774fdb86b9ea3 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_RDATALIST_P_H
-#define DNS_RDATALIST_P_H
+#pragma once
 
 /*! \file */
 
@@ -59,5 +58,3 @@ void
 isc__rdatalist_getownercase(const dns_rdataset_t *rdataset, dns_name_t *name);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_RDATALIST_P_H */
index d638e5bf24a49eb22c738f3bd09ad436ed598e97..3e0c9cb9474f9574c50330918040b416b79f33ee 100644 (file)
@@ -9,6 +9,8 @@
  * information regarding copyright ownership.
  */
 
+#pragma once
+
 /*! \file */
 
 #include <inttypes.h>
index 77770e585eb33bb28e3d588222ee87ea0f1751b5..8ed31f1c521d0205271dc20a0568085d7409dd12 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_TSIG_P_H
-#define DNS_TSIG_P_H
+#pragma once
 
 /*! \file */
 
@@ -37,5 +36,3 @@ bool
 dns__tsig_algallocated(const dns_name_t *algorithm);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_TSIG_P_H */
index 0c1c40d109ff96f1c60828c2b5ff44a8175748dd..64fb91bb697712333ab9168a938882731511c15b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef DNS_ZONE_P_H
-#define DNS_ZONE_P_H
+#pragma once
 
 #include <stdbool.h>
 
@@ -47,5 +46,3 @@ dns__zone_lookup_nsec3param(dns_zone_t *zone, dns_rdata_nsec3param_t *lookup,
                            unsigned char saltbuf[255], bool resalt);
 
 ISC_LANG_ENDDECLS
-
-#endif /* DNS_ZONE_P_H */
index 6a7942c517ad8699f62b19dd07cab9234b47a575..67c0255803968007f167a4827275ac33491dcc34 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef UNIX_ERRNO2RESULT_H
-#define UNIX_ERRNO2RESULT_H 1
+#pragma once
 
 /*! \file */
 
@@ -31,5 +30,3 @@ isc___errno2result(int posixerrno, bool dolog, const char *file,
                   unsigned int line);
 
 ISC_LANG_ENDDECLS
-
-#endif /* UNIX_ERRNO2RESULT_H */
index b8dbcb848fce02348d8654bfd73c2064a935dbba..d9a12a935cf37256d8a51ea64b47ea571d63f947 100644 (file)
@@ -11,8 +11,7 @@
 
 /*! \file isc/aes.h */
 
-#ifndef ISC_AES_H
-#define ISC_AES_H 1
+#pragma once
 
 #include <isc/lang.h>
 #include <isc/types.h>
@@ -37,5 +36,3 @@ isc_aes256_crypt(const unsigned char *key, const unsigned char *in,
                 unsigned char *out);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_AES_H */
index fc58ff75a3d1d989da243512140f041e98b79216..99504a47b1dbda493a0041dddc2039c7a8b4005e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_APP_H
-#define ISC_APP_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -278,5 +277,3 @@ isc_appctx_destroy(isc_appctx_t **ctxp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_APP_H */
index 65d79cecb65f77c5b50392039377a02ea7a24cc4..34b0c4e52143534a5395a511f10784fe31e3a49a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_BASE32_H
-#define ISC_BASE32_H 1
+#pragma once
 
 /*! \file */
 
@@ -140,5 +139,3 @@ isc_base32hexnp_decoderegion(isc_region_t *source, isc_buffer_t *target);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_BASE32_H */
index 313329ada34e9e4ea0c202270894e57ae119ca26..98f81fe058e14a4880f4c760b8689dd828cd7cb4 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_BASE64_H
-#define ISC_BASE64_H 1
+#pragma once
 
 /*! \file isc/base64.h */
 
@@ -95,5 +94,3 @@ isc_base64_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_BASE64_H */
index f85fd9db906deb0a39dd8bac86e687d0eaaddbb6..9ecdc8aea45c10e73721b91896dd286261284c4d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_BUFFER_H
-#define ISC_BUFFER_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -1061,5 +1060,3 @@ ISC_LANG_ENDDECLS
  * No inline method for this one (yet).
  */
 #define isc_buffer_putuint48 isc__buffer_putuint48
-
-#endif /* ISC_BUFFER_H */
index 111160242fd503738784300f3da4739fb6d80b48..a6de3790637e4160549a03b2dd8e359e61babf08 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_COMMANDLINE_H
-#define ISC_COMMANDLINE_H 1
+#pragma once
 
 /*! \file isc/commandline.h */
 
@@ -53,5 +52,3 @@ isc_commandline_strtoargv(isc_mem_t *mctx, char *s, unsigned int *argcp,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_COMMANDLINE_H */
index 2e54d34113dbdc45c0c910e7912cbd2cf79ffcd3..28025db80ef3fe0515c7be099bf7cfb9d0e7aa9c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_COUNTER_H
-#define ISC_COUNTER_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -81,5 +80,3 @@ isc_counter_detach(isc_counter_t **counterp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_COUNTER_H */
index 3e35f71f0f383a78644d963c4f9c64b9704a4338..67d0a2870dedadc2a6497f5c0d5ff75f0cb149eb 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_CRC64_H
-#define ISC_CRC64_H 1
+#pragma once
 
 /*! \file isc/crc64.h
  * \brief CRC64 in C
@@ -52,5 +51,3 @@ isc_crc64_final(uint64_t *crc);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_CRC64_H */
index 8664968eb4a62e2321a980d8bb0d6a6dbd634221..9d9c9bad0b497b395ee47d31f5fb20da231f3168 100644 (file)
@@ -9,13 +9,10 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_DEPRECATED_H
-#define ISC_DEPRECATED_H
+#pragma once
 
 #if (__GNUC__ + 0) > 3
 #define ISC_DEPRECATED __attribute__((deprecated))
 #else                 /* if (__GNUC__ + 0) > 3 */
 #define ISC_DEPRECATED /* none */
 #endif                /* __GNUC__ > 3*/
-
-#endif /* ifndef ISC_DEPRECATED_H */
index d0584561ec4fc14df655562fcfc6936de7929998..69135628d4e753e73832f5adcee2ad17d4893bc9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_ERRNO_H
-#define ISC_ERRNO_H 1
+#pragma once
 
 /*! \file isc/file.h */
 
@@ -24,5 +23,3 @@ isc_errno_toresult(int err);
  * \brief Convert a POSIX errno value to an ISC result code.
  */
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_ERRNO_H */
index 218b3c2ca32edabdea887be2f2307c7b4d8bcb0e..5c11fb153d8b87c9cb5238da671af2924291ec9f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_ERROR_H
-#define ISC_ERROR_H 1
+#pragma once
 
 /*! \file isc/error.h */
 
@@ -49,5 +48,3 @@ isc_error_runtimecheck(const char *, int, const char *);
                ((isc_error_runtimecheck)(__FILE__, __LINE__, #cond), 0)))
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_ERROR_H */
index 494272194de1f01416e80083cd88e8cd08989896..daea615474ab4068af8fc093fb94933eaf5a0d8d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_EVENT_H
-#define ISC_EVENT_H 1
+#pragma once
 
 /*! \file isc/event.h */
 
@@ -114,5 +113,3 @@ void
 isc_event_free(isc_event_t **);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_EVENT_H */
index 694136cbbfb48cce7bf29d4fb0032edf9dbd2a19..88db9284972b57a8ea526a7d5b5034e8761d5637 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_EVENTCLASS_H
-#define ISC_EVENTCLASS_H 1
+#pragma once
 
 /*! \file isc/eventclass.h
  ***** Registry of Predefined Event Type Classes
@@ -42,5 +41,3 @@
 #define ISC_EVENTCLASS_ISCCC      ISC_EVENTCLASS(8)
 #define ISC_EVENTCLASS_NS         ISC_EVENTCLASS(9)
 /*@}*/
-
-#endif /* ISC_EVENTCLASS_H */
index 6b63c6fcd19712d070a70e6a14ef8cc942cbdbf6..8030582acb82e2f14afd214517a00622a6086aaf 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_FILE_H
-#define ISC_FILE_H 1
+#pragma once
 
 /*! \file isc/file.h */
 
@@ -378,5 +377,3 @@ isc_file_isdirwritable(const char *path);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_FILE_H */
index f1313d723873c77604918c522393793643c82c28..4759314bb03e685990eaf0427066c89bc870f11f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_FORMATCHECK_H
-#define ISC_FORMATCHECK_H 1
+#pragma once
 
 /*! \file isc/formatcheck.h */
 
@@ -30,5 +29,3 @@
 #else /* ifdef __GNUC__ */
 #define ISC_FORMAT_PRINTF(fmt, args)
 #endif /* ifdef __GNUC__ */
-
-#endif /* ISC_FORMATCHECK_H */
index 3250799ffc71b0ef39e1f4c22777e0bad91a8278..bded351dc5d38a24858d67833050e289c5504df8 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_FSACCESS_H
-#define ISC_FSACCESS_H 1
+#pragma once
 
 /*! \file isc/fsaccess.h
  * \brief The ISC filesystem access module encapsulates the setting of file
@@ -168,5 +167,3 @@ isc_result_t
 isc_fsaccess_set(const char *path, isc_fsaccess_t access);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_FSACCESS_H */
index a16845c65cf1420a5b929ad4f7b0ab3e4eac0b8b..994b8da6059b49a33a3d74d5038bff99ff48001e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_FUZZ_H
-#define ISC_FUZZ_H
+#pragma once
 
 typedef enum {
        isc_fuzz_none,
@@ -20,5 +19,3 @@ typedef enum {
        isc_fuzz_http,
        isc_fuzz_rndc
 } isc_fuzztype_t;
-
-#endif /* ISC_FUZZ_H */
index a1847a6a0b8438f0ffda5d660e5cea9d197f8050..deca20b8d89d56de46be08a4fb92d7228f851351 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_GLOB_H
-#define ISC_GLOB_H
+#pragma once
 
 #include <isc/lang.h>
 #include <isc/result.h>
@@ -40,5 +39,3 @@ void
 isc_globfree(glob_t *pglob);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_GLOB_H */
index fcdbb3cc60efe15af38e4d6a13042fa2f0a8f81e..868a1bee90addfac7947e8fe249b3d7bd2f41dec 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_HASH_H
-#define ISC_HASH_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -60,5 +59,3 @@ isc_hash64(const void *data, const size_t length, const bool case_sensitive);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_HASH_H */
index b9a5e2615e9e5b173c7ba1fee542165294a286b8..9f14fa7206ce29657bc7a43ac63fb9fb73b16658 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_HEAP_H
-#define ISC_HEAP_H 1
+#pragma once
 
 /*! \file isc/heap.h */
 
@@ -162,5 +161,3 @@ isc_heap_foreach(isc_heap_t *heap, isc_heapaction_t action, void *uap);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_HEAP_H */
index 9db99315708668fc520ec4568c2c755b3d2c0b08..47804a00a6de74b800505604e268ca4df51c9cce 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_HEX_H
-#define ISC_HEX_H 1
+#pragma once
 
 /*! \file isc/hex.h */
 
@@ -95,5 +94,3 @@ isc_hex_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_HEX_H */
index 9d5ab82ee4ed9b03735dd7d6cc3daed6fa059494..5ec8466846c33279f9e299062ade5574811af501 100644 (file)
@@ -11,8 +11,7 @@
 
 /* ! \file */
 
-#ifndef ISC_HT_H
-#define ISC_HT_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <string.h>
@@ -181,4 +180,3 @@ isc_ht_iter_currentkey(isc_ht_iter_t *it, unsigned char **key, size_t *keysize);
  */
 unsigned int
 isc_ht_count(isc_ht_t *ht);
-#endif /* ifndef ISC_HT_H */
index 605b9c4d3ba4d0f98271ed8a7f564c2f943ba692..22678992f003c74ae06f028a3f604389037d748e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_HTTPD_H
-#define ISC_HTTPD_H 1
+#pragma once
 
 /*! \file */
 
@@ -59,5 +58,3 @@ isc_httpdmgr_addurl(isc_httpdmgr_t *httpdmgr, const char *url, bool isstatic,
 
 void
 isc_httpd_setfinishhook(void (*fn)(void));
-
-#endif /* ISC_HTTPD_H */
index b7e59cb2d68ecc5a88ba50832f51d6d3b0042445..b4d7f86d86977835d6531bcf6a1fc555718eb5f3 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_INTERFACEITER_H
-#define ISC_INTERFACEITER_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -124,5 +123,3 @@ isc_interfaceiter_destroy(isc_interfaceiter_t **iterp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_INTERFACEITER_H */
index 2e0a6c73d5fca8f2f84363028efd41a7dae7401e..bb1796c42a495aaceec1c504cabc361575ae9988 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_LANG_H
-#define ISC_LANG_H 1
+#pragma once
 
 /*! \file isc/lang.h */
 
@@ -21,5 +20,3 @@
 #define ISC_LANG_BEGINDECLS
 #define ISC_LANG_ENDDECLS
 #endif /* ifdef __cplusplus */
-
-#endif /* ISC_LANG_H */
index b179d5052eec918ea4106c644a360309a788eeb7..87db8cabbea78d9be373fe2e552f038c7f778839 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_LEX_H
-#define ISC_LEX_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -441,5 +440,3 @@ isc_lex_isfile(isc_lex_t *lex);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_LEX_H */
index 300e8be47a62c694f1ef562f6aa3a33ede13c54a..7daa675633f6e79b4fa771457850ebf99bcc8fd8 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_LIKELY_H
-#define ISC_LIKELY_H 1
+#pragma once
 
 /*%
  * Performance
@@ -27,5 +26,3 @@
 #define ISC_UNLIKELY(x) (x)
 #endif /* ifdef HAVE_BUILTIN_EXPECT */
 #endif /* ifdef CPPCHECK */
-
-#endif /* ISC_LIKELY_H */
index 4ed1f3ca31817aa87e257f2ab4e468657434a959..dc2f80092d9cba53167e956791320774daea97de 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_LIST_H
-#define ISC_LIST_H 1
+#pragma once
 
 #include <isc/assertions.h>
 
        __ISC_LIST_UNLINKUNSAFE_TYPE(list, elt, link, void)
 #define __ISC_LIST_DEQUEUEUNSAFE_TYPE(list, elt, link, type) \
        __ISC_LIST_UNLINKUNSAFE_TYPE(list, elt, link, type)
-
-#endif /* ISC_LIST_H */
index 75bde1af89871b850a898a0e69b057bf7f239e27..d1968e0f9115cb64f178b755159a82ac67bb7dff 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_LOG_H
-#define ISC_LOG_H 1
+#pragma once
 
 /*! \file isc/log.h */
 
@@ -849,5 +848,3 @@ isc_log_setforcelog(bool v);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_LOG_H */
index a2fbe931c5653ac0401fa7514d465b09dcfa504c..c5eadb1bf5d3a445756b51fbad6b1a0bef5132ab 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_MAGIC_H
-#define ISC_MAGIC_H 1
+#pragma once
 
 #include <isc/likely.h>
 
@@ -31,5 +30,3 @@ typedef struct {
         ISC_LIKELY(((const isc__magic_t *)(a))->magic == (b)))
 
 #define ISC_MAGIC(a, b, c, d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
-
-#endif /* ISC_MAGIC_H */
index a513890cc75386930d781024c5c240a4cafae53e..b90c3d601700d7c833dee9a8b41fe941f38d7fd0 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_MEM_H
-#define ISC_MEM_H 1
+#pragma once
 
 /*! \file isc/mem.h */
 
@@ -515,5 +514,3 @@ void ISCMEMPOOLFUNC(put)(isc_mempool_t *, void *_ISC_MEM_FLARG);
 #endif
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_MEM_H */
index a241b1d0670129027a747f73f30f386ba06ccd5f..6814595f86989b7021fbde00625f08418b619e66 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_MEMINFO_H
-#define ISC_MEMINFO_H 1
+#pragma once
 
 #include <inttypes.h>
 
@@ -27,5 +26,3 @@ isc_meminfo_totalphys(void);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_MEMINFO_H */
index 7192d343d810d8a5bb3fda947b8569d8b0465291..295bef2123a45ba74dd06a767e71bb4904f7f4bb 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_MUTEX_H
-#define ISC_MUTEX_H 1
+#pragma once
 
 /*! \file */
 
@@ -124,4 +123,3 @@ void
 isc_mutex_init_errcheck(isc_mutex_t *mp);
 
 ISC_LANG_ENDDECLS
-#endif /* ISC_MUTEX_H */
index de20bb5b6c817011d68b36780ee7418d8d6aeb10..dbcf94963d40b817233e00da9e768b0c661e3c31 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_MUTEXBLOCK_H
-#define ISC_MUTEXBLOCK_H 1
+#pragma once
 
 /*! \file isc/mutexblock.h */
 
@@ -51,5 +50,3 @@ isc_mutexblock_destroy(isc_mutex_t *block, unsigned int count);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_MUTEXBLOCK_H */
index ec910e9d0cec77ffc3ff877503fafb0dc4f3423f..9faf978e1a6f61e49d4bf47056be5a8276a95f41 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_NET_H
-#define ISC_NET_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -303,5 +302,3 @@ isc_net_getudpportrange(int af, in_port_t *low, in_port_t *high);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_NET_H */
index ba666fa7d66ee7305b6de9be6c52dd739d19c17c..1388e4eb62ce089a5e870714a18919df80aa7e92 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_NETADDR_H
-#define ISC_NETADDR_H 1
+#pragma once
 
 /*! \file isc/netaddr.h */
 
@@ -190,5 +189,3 @@ isc_netaddr_isloopback(const isc_netaddr_t *na);
  * 127.0.0.0/8 or ::1).
  */
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_NETADDR_H */
index 2e56d67db30cd8da7577b75c2a559fb5550a1003..6c547c7c7dfaff571e428372b063582f0a898b36 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_NETDB_H
-#define ISC_NETDB_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -45,5 +44,3 @@
 #include <netdb.h>
 
 #include <isc/net.h>
-
-#endif /* ISC_NETDB_H */
index 4c413f3e749f256b052fd2900afca2d851a57711..add856eeb2c279ef078a8e47ae683807e6dd0842 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_NETSCOPE_H
-#define ISC_NETSCOPE_H 1
+#pragma once
 
 /*! \file isc/netscope.h */
 
@@ -33,5 +32,3 @@ isc_result_t
 isc_netscope_pton(int af, char *scopename, void *addr, uint32_t *zoneid);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_NETSCOPE_H */
index 973459aeb46bc2905ceb2816443376a81f069ea1..5d7da9a77cc92a04bf33326b3fced07b32fea55b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_OFFSET_H
-#define ISC_OFFSET_H 1
+#pragma once
 
 /*! \file
  * \brief
@@ -22,5 +21,3 @@
 #include <sys/types.h>
 
 typedef off_t isc_offset_t;
-
-#endif /* ISC_OFFSET_H */
index 6bfa5cc1dc1ce336984ab4d707ace4b2462cb61b..3b5aa88f98be62a52e2a8d0fa7fee8ff5a98d7da 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_ONCE_H
-#define ISC_ONCE_H 1
+#pragma once
 
 /*! \file */
 
@@ -26,5 +25,3 @@ typedef pthread_once_t isc_once_t;
 
 #define isc_once_do(op, f) \
        ((pthread_once((op), (f)) == 0) ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)
-
-#endif /* ISC_ONCE_H */
index ce7615a0e3f6b5b9fecec998ed6e93d153ad0127..f9e90e0d82c707f65548c17625db193017be14f2 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_OS_H
-#define ISC_OS_H 1
+#pragma once
 
 /*! \file isc/os.h */
 
@@ -26,5 +25,3 @@ isc_os_ncpus(void);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_OS_H */
index 3be4cef95e469fe7ed0f90750ef46fb3e418290d..171d60b6bc6a227bf0e5e5b8fca98350e7554988 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_PARSEINT_H
-#define ISC_PARSEINT_H 1
+#pragma once
 
 #include <inttypes.h>
 
@@ -54,5 +53,3 @@ isc_parse_uint8(uint8_t *uip, const char *string, int base);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_PARSEINT_H */
index 1eae9685dd4533c4f85a7c65436133842b2d3a8d..e861646528f39f14bd62f87b22db5bf3e247495b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_OBJPOOL_H
-#define ISC_OBJPOOL_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -135,5 +134,3 @@ isc_pool_destroy(isc_pool_t **poolp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_OBJPOOL_H */
index a12432e7845b15f02083ed0fa0cc0559a6f60ac2..4939e03912ae4661615493e78e8892b249971f37 100644 (file)
@@ -21,8 +21,7 @@
  * in a place that can be accessed from multiple threads.
  */
 
-#ifndef ISC_PORTSET_H
-#define ISC_PORTSET_H 1
+#pragma once
 
 /***
  ***   Imports
@@ -132,5 +131,3 @@ isc_portset_removerange(isc_portset_t *portset, in_port_t port_lo,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_PORTSET_H */
index 73993c0ad40dcf148aa6bdff7239e19f0f941237..b5cf235408ae6fe2dd2fbde004088baa222734c1 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_PRINT_H
-#define ISC_PRINT_H 1
+#pragma once
 
 /*! \file isc/print.h */
 
@@ -26,5 +25,3 @@
  ***/
 
 #include <stdio.h>
-
-#endif /* ISC_PRINT_H */
index c3b8dc8c66395209dc110d8b99f52a2e6f9d38e4..c48152120a8607cef6ca1d317d6f6a4186256fe7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_QUOTA_H
-#define ISC_QUOTA_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -151,5 +150,3 @@ isc_quota_detach(isc_quota_t **p);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_QUOTA_H */
index 34ceb86d7e140d815eb5c15657531f350dca3051..1087552e8f78ce539ccba9e266a7ab83817c152d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef _RADIX_H
-#define _RADIX_H
+#pragma once
 
 #include <inttypes.h>
 #include <string.h>
@@ -218,5 +217,3 @@ isc_radix_process(isc_radix_tree_t *radix, isc_radix_processfunc_t func);
        }                                    \
        }                                    \
        while (0)
-
-#endif /* _RADIX_H */
index 3598078cc44ffe9a5ddd04419efee21c0fdc6809..e7d88c19649a21935ab9a7b3cee3b45cf6005668 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_RATELIMITER_H
-#define ISC_RATELIMITER_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -142,5 +141,3 @@ isc_ratelimiter_release(isc_ratelimiter_t *rl);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_RATELIMITER_H */
index f6dcf3f88525a3e141d0ace64e9d7938f47eea60..4fd2b0e97e1c416cdc5551b404500e75c157ecd8 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_REGEX_H
-#define ISC_REGEX_H 1
+#pragma once
 
 /*! \file isc/regex.h */
 
@@ -30,5 +29,3 @@ isc_regex_validate(const char *expression);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_REGEX_H */
index ab09f14693e65a0d9618ccb99171e0cc7bd40b1c..39ad89ff443bfc3988b723dcb0e38209c1c94a1b 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_REGION_H
-#define ISC_REGION_H 1
+#pragma once
 
 /*! \file isc/region.h */
 
@@ -92,5 +91,3 @@ isc_region_compare(isc_region_t *r1, isc_region_t *r2);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_REGION_H */
index 0a33131208eae4be110717070527bb7e12350926..9cdb8cd036a262ba9aded2bce8fe273b1ef2c9d6 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_RESOURCE_H
-#define ISC_RESOURCE_H 1
+#pragma once
 
 /*! \file isc/resource.h */
 
@@ -84,5 +83,3 @@ isc_resource_getcurlimit(isc_resource_t resource, isc_resourcevalue_t *value);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_RESOURCE_H */
index 9bec58742dd2d9a482bd2c84337d46d195d58f32..3cdd1e1ed39bdde55ebaa11a2f800ed470b224c0 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_RESULT_H
-#define ISC_RESULT_H 1
+#pragma once
 
 /*! \file isc/result.h */
 
@@ -284,5 +283,3 @@ const char *isc_result_toid(isc_result_t);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_RESULT_H */
index 82f415a24d50c4a56ef053f469aaf3ba816ad554..f27d7d051731ddf19573f7866a4f664f7d585bfe 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_RWLOCK_H
-#define ISC_RWLOCK_H 1
+#pragma once
 
 #include <inttypes.h>
 
@@ -100,5 +99,3 @@ void
 isc_rwlock_destroy(isc_rwlock_t *rwl);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_RWLOCK_H */
index 434d0edd25b4bb5b0f3238529e1746a582f1b925..91d81d99b5c351e8dfbf1870a0fd720177f291dd 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_SAFE_H
-#define ISC_SAFE_H 1
+#pragma once
 
 /*! \file isc/safe.h */
 
@@ -41,5 +40,3 @@ isc_safe_memwipe(void *, size_t);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_SAFE_H */
index fe7b59a20019ac42cc6c99acc95d1b6e1428da25..bf3b2460e1424338f39e179a19ecdbdff94ed746 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_SERIAL_H
-#define ISC_SERIAL_H 1
+#pragma once
 
 #include <inttypes.h>
 #include <stdbool.h>
@@ -66,5 +65,3 @@ isc_serial_ne(uint32_t a, uint32_t b);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_SERIAL_H */
index a072614094175af885ba084a79e9b44e5aca65de..47c752c121e75c35c4d0dcdd8742f110e05d9b68 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_SOCKADDR_H
-#define ISC_SOCKADDR_H 1
+#pragma once
 
 /*! \file isc/sockaddr.h */
 
@@ -241,5 +240,3 @@ isc_sockaddr_fromsockaddr(isc_sockaddr_t *isa, const struct sockaddr *sa);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_SOCKADDR_H */
index dca044267d5df1e8f259cf4b8c7f75c54f436db4..f24026a6a14a5872b0a847dc413b721d35c7a448 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_STAT_H
-#define ISC_STAT_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -41,5 +40,3 @@
 
 #include <sys/stat.h>
 #include <sys/types.h>
-
-#endif /* ISC_STAT_H */
index f57aa1a96fa15396077b3d8e7053888a03bf6090..7acf966da7945dbec7519e3e66fbe4c05eaa6a54 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_STATS_H
-#define ISC_STATS_H 1
+#pragma once
 
 /*! \file isc/stats.h */
 
@@ -250,5 +249,3 @@ isc_stats_resize(isc_stats_t **stats, int ncounters);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_STATS_H */
index 0f0daba2c97174a49c1da176fa16e3001ca79780..7023957d4e72a09fcc87f4d4790cdbbd89db4dc8 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_STDIO_H
-#define ISC_STDIO_H 1
+#pragma once
 
 /*! \file isc/stdio.h */
 
@@ -68,5 +67,3 @@ isc_stdio_sync(FILE *f);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_STDIO_H */
index 52557b94872b06f3297c0f50537b1d1da3154b9f..fd8c5e3df490a7ae79d0dc0f49dd6ac344c8653a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_STDTIME_H
-#define ISC_STDTIME_H 1
+#pragma once
 
 /*! \file */
 
@@ -58,5 +57,3 @@ isc_stdtime_tostring(isc_stdtime_t t, char *out, size_t outlen);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_STDTIME_H */
index 07000c6fed31c7643e3400498a66bfbff07d0cd5..a8037e63228e9755c2a5897adf37f192fec2d751 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_SYMTAB_H
-#define ISC_SYMTAB_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -132,5 +131,3 @@ isc_symtab_undefine(isc_symtab_t *symtab, const char *key, unsigned int type);
 unsigned int
 isc_symtab_count(isc_symtab_t *symtab);
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_SYMTAB_H */
index f2add8b0cc69d561de37083fb590468bb3469de5..519316d91270df0bbcd7de6540258d361890af4f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_SYSLOG_H
-#define ISC_SYSLOG_H 1
+#pragma once
 
 /*! \file */
 
@@ -35,5 +34,3 @@ isc_syslog_facilityfromstring(const char *str, int *facilityp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_SYSLOG_H */
index 94bd0c7873ec0d186f4b1078724abab79b7e4493..cbbab1ad93248b5d3c94d018faa3675bfa5ec520 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_TASKPOOL_H
-#define ISC_TASKPOOL_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -132,5 +131,3 @@ isc_taskpool_destroy(isc_taskpool_t **poolp);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_TASKPOOL_H */
index 6946ecbb3cda4d24b78727833930638d5feddbc0..b68a92ad4b9e562bfe708361cb20669dcd946965 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_TIME_H
-#define ISC_TIME_H 1
+#pragma once
 
 /*! \file */
 
@@ -456,5 +455,3 @@ isc_time_formatshorttimestamp(const isc_time_t *t, char *buf, unsigned int len);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_TIME_H */
index 021389c1e756964721be41aaaf1e488d5ccc3291..91e444fdd02b64f3165fc920e7bb23362f053663 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_TM_H
-#define ISC_TM_H 1
+#pragma once
 
 /*! \file isc/tm.h
  * Provides portable conversion routines for struct tm.
@@ -36,5 +35,3 @@ isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISC_TIMER_H */
index 3c6f89ba555cd6bc1a7cd8c5cf644d2ade4d9362..78ed309f121fa1caa4b3c2a72781591f6374ff9d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_TYPES_H
-#define ISC_TYPES_H 1
+#pragma once
 
 #include <isc/bind9.h>
 #include <isc/result.h>
@@ -126,5 +125,3 @@ typedef enum {
        isc_statsformat_xml,
        isc_statsformat_json
 } isc_statsformat_t;
-
-#endif /* ISC_TYPES_H */
index 9dd95245c30860bf03ab19782c874a0b23a44a97..7917de23f7965ada25cef375f018d7eca59e4bc7 100644 (file)
@@ -31,6 +31,8 @@
  * IN THE SOFTWARE.
  */
 
+#pragma once
+
 #include <stdbool.h>
 #include <stdint.h>
 
index ed328f55a2028dd4285cb77506407880e6ad7f7a..89c76b6ef62218232499dbdfcaa91df6c0b7666a 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISC_UTIL_H
-#define ISC_UTIL_H 1
+#pragma once
 
 #include <inttypes.h>
 
@@ -359,5 +358,3 @@ mock_assert(const int result, const char *const expression,
  * Misc
  */
 #include <isc/deprecated.h>
-
-#endif /* ISC_UTIL_H */
index 53c998976bd8834ebcb525b7c25acbb88b8c0a92..c99d246d500cfd1416f484e7b97e4b786a02aa9a 100644 (file)
@@ -9,6 +9,8 @@
  * information regarding copyright ownership.
  */
 
+#pragma once
+
 #include <isc/mem.h>
 #include <isc/result.h>
 #include <isc/socket.h>
index 8551bcfd010b5df6d711f3251c1eb65f23d080bf..74196f58610435b00c9aaec850009c99c2611a4f 100644 (file)
@@ -9,6 +9,8 @@
  * information regarding copyright ownership.
  */
 
+#pragma once
+
 /*! \file */
 
 #include <inttypes.h>
index 99cedeec9c328776011076e11e891e61282298ff..775dcff91485da3a9ac7dba2f6e39f2eb6f048bf 100644 (file)
@@ -9,6 +9,8 @@
  * information regarding copyright ownership.
  */
 
+#pragma once
+
 #if HAVE_CMOCKA
 #include <inttypes.h>
 #include <sched.h> /* IWYU pragma: keep */
index 06d185594919df6c5fc3485964d10c91c964f151..1fecdfe6a6e2f578f1b423540f7716d1054da5dd 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_ALIST_H
-#define ISCCC_ALIST_H 1
+#pragma once
 
 /*! \file isccc/alist.h */
 
@@ -81,5 +80,3 @@ isccc_alist_prettyprint(isccc_sexpr_t *sexpr, unsigned int indent,
                        FILE *stream);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_ALIST_H */
index d9cd5c919e4b5c2fe52ac1a4a0cb2221e199f367..e6756af4653351ed0d8965075d69a53289f0bf03 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_BASE64_H
-#define ISCCC_BASE64_H 1
+#pragma once
 
 /*! \file isccc/base64.h */
 
@@ -74,5 +73,3 @@ isccc_base64_decode(const char *cstr, isccc_region_t *target);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_BASE64_H */
index 4849f6b23c60558601f6df7c5dce55265be74b67..a748eb69da48c7210c6391bc87488b33c09d6271 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_CC_H
-#define ISCCC_CC_H 1
+#pragma once
 
 /*! \file isccc/cc.h */
 
@@ -123,5 +122,3 @@ isccc_cc_checkdup(isccc_symtab_t *symtab, isccc_sexpr_t *message,
                  isccc_time_t now);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_CC_H */
index 1aff044a9780cf5df76a0cbdda1d6970cfe97779..14a299b599d41aa8b21f219232b8ef3b3dbbe31c 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_CCMSG_H
-#define ISCCC_CCMSG_H 1
+#pragma once
 
 /*! \file isccc/ccmsg.h */
 
@@ -132,5 +131,3 @@ isccc_ccmsg_invalidate(isccc_ccmsg_t *ccmsg);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_CCMSG_H */
index ff2a65a879330fe0156652ea0a6d58ef8182e22e..b8d3c57ddd174c63c75d665d55f32e8951f8f129 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_EVENTS_H
-#define ISCCC_EVENTS_H 1
+#pragma once
 
 /*! \file isccc/events.h */
 
@@ -38,5 +37,3 @@
 
 #define ISCCC_EVENT_FIRSTEVENT (ISC_EVENTCLASS_ISCCC + 0)
 #define ISCCC_EVENT_LASTEVENT  (ISC_EVENTCLASS_ISCCC + 65535)
-
-#endif /* ISCCC_EVENTS_H */
index e2fb4919ba991ac11d6ad09f52bc09cf7a1f666a..322805c596c55de70390bac8e822d8b8fd7bc0ff 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_SEXPR_H
-#define ISCCC_SEXPR_H 1
+#pragma once
 
 /*! \file isccc/sexpr.h */
 
@@ -114,5 +113,3 @@ isccc_region_t *
 isccc_sexpr_tobinary(isccc_sexpr_t *sexpr);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_SEXPR_H */
index dbe2985999a8e4544d95be6305d79eac72501baa..71bf0181e49385b7a0f8077d32a47958315beb45 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_SYMTAB_H
-#define ISCCC_SYMTAB_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -128,5 +127,3 @@ isccc_symtab_foreach(isccc_symtab_t *symtab, isccc_symtabforeachaction_t action,
                     void *arg);
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCC_SYMTAB_H */
index feafa66e74d32c76031f45692185e207858d49d1..a5fdf91fad7f9722bebe81a787174e91f2be6c47 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_SYMTYPE_H
-#define ISCCC_SYMTYPE_H 1
+#pragma once
 
 /*! \file isccc/symtype.h */
 
@@ -32,5 +31,3 @@
 #define ISCCC_SYMTYPE_CCDUP       0x0002
 #define ISCCC_SYMTYPE_TELLSERVICE  0x0003
 #define ISCCC_SYMTYPE_TELLRESPONSE 0x0004
-
-#endif /* ISCCC_SYMTYPE_H */
index 0b1bf74271724e6abb6301e00e69702f296d723e..a05321adcac8c1bfb28a034e1be3d20ea95dbf20 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_TYPES_H
-#define ISCCC_TYPES_H 1
+#pragma once
 
 /*! \file isccc/types.h */
 
@@ -47,5 +46,3 @@ typedef struct isccc_region {
        unsigned char *rstart;
        unsigned char *rend;
 } isccc_region_t;
-
-#endif /* ISCCC_TYPES_H */
index 800b8041ba0d5b1ed4297bc3c394c90efe50df94..ef3271564eae333fe3864d270adeda088a1a5b19 100644 (file)
@@ -23,8 +23,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#ifndef ISCCC_UTIL_H
-#define ISCCC_UTIL_H 1
+#pragma once
 
 #include <inttypes.h>
 
                (r).rstart = (unsigned char *)s;   \
                (r).rend = (r).rstart + strlen(s); \
        } while (0)
-
-#endif /* ISCCC_UTIL_H */
index 81e43129d8aa1cc4a5d9c3af989a23427c64d83d..ee2056d4a6c954ef94346627f66c230ba90de71c 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISCCFG_ACLCONF_H
-#define ISCCFG_ACLCONF_H 1
+#pragma once
 
 #include <inttypes.h>
 
@@ -88,5 +87,3 @@ cfg_acl_fromconfig2(const cfg_obj_t *caml, const cfg_obj_t *cctx,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_ACLCONF_H */
index 09450f0ab3385ce2ec601aa9ac1b48ef99c01892..64dda097c7b8186c31e77e9deed520230fd0fe38 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISCCFG_CFG_H
-#define ISCCFG_CFG_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -620,5 +619,3 @@ cfg_pluginlist_foreach(const cfg_obj_t *config, const cfg_obj_t *list,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_CFG_H */
index 09f1e837326f672fbad9dc8f2fdb0aeaa5cd8094..a472dcc9fdf84c4f3c28a8688b363bdd2de8ca07 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISCCFG_GRAMMAR_H
-#define ISCCFG_GRAMMAR_H 1
+#pragma once
 
 /*! \file isccfg/grammar.h */
 
@@ -609,5 +608,3 @@ cfg_print_indent(cfg_printer_t *pctx);
 /*%<
  * Print the necessary indent required by the current settings of 'pctx'.
  */
-
-#endif /* ISCCFG_GRAMMAR_H */
index 43f6e690a7edf855a2b9110ac765b92ef85e354e..90b414b620040b87b3e207e6857519bdd1abb6d2 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISCCFG_KASPCONF_H
-#define ISCCFG_KASPCONF_H 1
+#pragma once
 
 #include <isc/lang.h>
 
@@ -54,5 +53,3 @@ cfg_kasp_fromconfig(const cfg_obj_t *config, const char *name, isc_mem_t *mctx,
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_KASPCONF_H */
index ed7025f0af91a6c2c5bac44be3760e3df59efc61..0f413e877420308f0291d32d67716849095ed0f8 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISCCFG_LOG_H
-#define ISCCFG_LOG_H 1
+#pragma once
 
 /*! \file isccfg/log.h */
 
@@ -43,5 +42,3 @@ cfg_log_init(isc_log_t *lctx);
  */
 
 ISC_LANG_ENDDECLS
-
-#endif /* ISCCFG_LOG_H */
index aabd289acfe76f329976c21cb1344eae1419afe5..27c3a69ec0cdd152322c47883fc0ab9cb2214019 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef ISCCFG_NAMEDCONF_H
-#define ISCCFG_NAMEDCONF_H 1
+#pragma once
 
 /*! \file isccfg/namedconf.h
  * \brief
@@ -51,5 +50,3 @@ extern cfg_type_t cfg_type_zoneopts;
 
 /*%< DNSSEC Key and Signing Policy options */
 extern cfg_type_t cfg_type_dnssecpolicyopts;
-
-#endif /* ISCCFG_NAMEDCONF_H */
index ecb59596fd6c255abd42b016f3372327e865517f..685be677d3f8780a28dfb357a3b034ecdbb08b0d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_CLIENT_H
-#define NS_CLIENT_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -569,5 +568,3 @@ ns__client_put_cb(void *client0);
  * Free all resources allocated to this client object, so that
  * it can be freed.
  */
-
-#endif /* NS_CLIENT_H */
index 8d3736cfeb0b2753646fab1449975baeafb1314f..b8da178b05e0c75aabb0d9b3c07ca498070b575e 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_EVENTS_H
-#define NS_EVENTS_H 1
+#pragma once
 
 #include <isc/eventclass.h>
 
@@ -21,5 +20,3 @@
 
 #define NS_EVENT_CLIENTCONTROL (ISC_EVENTCLASS_NS + 0)
 #define NS_EVENT_HOOKASYNCDONE (ISC_EVENTCLASS_NS + 1)
-
-#endif /* NS_EVENTS_H */
index 974ac16bab8b6673762c5dde85d0b991f87b667f..c4c0287899046e27da306e5187f3e438b58dafa4 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_HOOKS_H
-#define NS_HOOKS_H 1
+#pragma once
 
 /*! \file */
 
@@ -609,4 +608,3 @@ ns_hooktable_create(isc_mem_t *mctx, ns_hooktable_t **tablep);
 /*%<
  * Allocate and initialize a hook table.
  */
-#endif /* NS_HOOKS_H */
index 0db7c2ede2a8f1f163303d0c9ae0de229b55bbe7..0b052b6a70e669782b4fb23c3eeb5364052e2854 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_LISTENLIST_H
-#define NS_LISTENLIST_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -131,5 +130,3 @@ ns_listenlist_default(isc_mem_t *mctx, in_port_t port, isc_dscp_t dscp,
  * all addresses with port 'port' (if 'enabled' is true),
  * or no addresses (if 'enabled' is false).
  */
-
-#endif /* NS_LISTENLIST_H */
index b84b1a312b1a85963046208154f086fbee459655..f8741cfeaa8fa6d9f3afbf4f2e6c3ba86b48b643 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_LOG_H
-#define NS_LOG_H 1
+#pragma once
 
 /*! \file */
 
@@ -69,4 +68,3 @@ ns_log_setcontext(isc_log_t *lctx);
  * Requires:
  *\li  lctx is a valid logging context.
  */
-#endif /* NS_LOG_H */
index e36bdabbeed7133ff89fff538aebe0a69e3b91f7..167c8f6546b24f97775b8ed5ef7d153bf2a46dc4 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_NOTIFY_H
-#define NS_NOTIFY_H 1
+#pragma once
 
 #include <ns/client.h>
 
@@ -41,5 +40,3 @@ ns_notify_start(ns_client_t *client, isc_nmhandle_t *handle);
  * Requires
  *\li  client to be valid.
  */
-
-#endif /* NS_NOTIFY_H */
index 0e604cea054860301287ddcafddc5f31f593cced..a218392eda8f4387c58e164f40923db62839d9a9 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_QUERY_H
-#define NS_QUERY_H 1
+#pragma once
 
 /*! \file */
 
@@ -267,5 +266,3 @@ ns__query_start(query_ctx_t *qctx);
 /*%<
  * (Must not be used outside this module and its associated unit tests.)
  */
-
-#endif /* NS_QUERY_H */
index 3768efbd37e7e0e03aebdd1ac19d016469403ec3..4d3f6e121bb54c9e7efbda80eb80008cf094030f 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_SERVER_H
-#define NS_SERVER_H 1
+#pragma once
 
 /*! \file */
 
@@ -183,4 +182,3 @@ ns_server_getoption(ns_server_t *sctx, unsigned int option);
  * Requires:
  *\li  'sctx' is valid.
  */
-#endif /* NS_SERVER_H */
index f60a88ba5eb77dc6456a3d57d32d383599e73868..8a19d0cd8a1912919cdc7de1c005571fc4994fd7 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_SORTLIST_H
-#define NS_SORTLIST_H 1
+#pragma once
 
 /*! \file */
 
@@ -77,5 +76,3 @@ ns_sortlist_byaddrsetup(dns_acl_t *sortlist_acl, dns_aclenv_t *env,
  * '*argp' an argument to pass to said function.  If no sortlist statement
  * applies, set '*orderp' and '*argp' to NULL.
  */
-
-#endif /* NS_SORTLIST_H */
index 3c0879927faa7a2c55be1ec5fce9f46f49a19d58..34092ade7bc0c459115ece117ccba4f782a60974 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_STATS_H
-#define NS_STATS_H 1
+#pragma once
 
 /*! \file include/ns/stats.h */
 
@@ -133,5 +132,3 @@ ns_stats_update_if_greater(ns_stats_t *stats, isc_statscounter_t counter,
 
 isc_statscounter_t
 ns_stats_get_counter(ns_stats_t *stats, isc_statscounter_t counter);
-
-#endif /* NS_STATS_H */
index f26d379a17947b27482c6ae3e66c9e2ce607a4fe..e04498cdb677251adeffc2cf78bc4da0c6b73643 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_TYPES_H
-#define NS_TYPES_H 1
+#pragma once
 
 /*! \file */
 
@@ -30,5 +29,3 @@ typedef struct ns_hookasync    ns_hookasync_t;
 typedef enum { ns_cookiealg_aes, ns_cookiealg_siphash24 } ns_cookiealg_t;
 
 #define NS_COOKIE_VERSION_1 1
-
-#endif /* NS_TYPES_H */
index a01567c0b4a1d49a5ae74d5bd6dd49207a2e2d3f..6cfdf864240da9290e8cd625adf64055468cef88 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_UPDATE_H
-#define NS_UPDATE_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -40,5 +39,3 @@
 void
 ns_update_start(ns_client_t *client, isc_nmhandle_t *handle,
                isc_result_t sigresult);
-
-#endif /* NS_UPDATE_H */
index 722cac21ef6c617f8eb284b0b083231424a20c57..b25952867bf6a567279ac6299275269774d8331d 100644 (file)
@@ -9,8 +9,7 @@
  * information regarding copyright ownership.
  */
 
-#ifndef NS_XFROUT_H
-#define NS_XFROUT_H 1
+#pragma once
 
 /*****
 ***** Module Info
@@ -27,5 +26,3 @@
 
 void
 ns_xfr_start(ns_client_t *client, dns_rdatatype_t xfrtype);
-
-#endif /* NS_XFROUT_H */
index a780945ec14b21c8e76908a7ce00fdf9cb943640..8b3b2ad516e69a78144ecaecc858e2d85a5dc1ec 100644 (file)
@@ -9,6 +9,8 @@
  * information regarding copyright ownership.
  */
 
+#pragma once
+
 /*! \file */
 
 #include <inttypes.h>