bind9/lib/dns
Ondřej Surý f3635bcc14 Use #pragma once as header guards
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
2021-10-13 00:49:15 -07:00
..
include Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
rdata Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
tests Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
.gitignore 4394. [func] Add rndc command "dnstap-reopen" to close and 2016-06-24 09:37:04 +10:00
acl.c Reduce the number of clientmgr objects created 2021-05-24 20:44:54 +02:00
adb.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
badcache.c The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
byaddr.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
cache.c dns/rbt.c: Implement incremental hash table resizing 2021-10-12 15:01:53 +02:00
callbacks.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
catz.c dns/catz.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:47:48 +02:00
client.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
clientinfo.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
compress.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
db.c dns/rbt.c: Implement incremental hash table resizing 2021-10-12 15:01:53 +02:00
dbiterator.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
diff.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
dispatch.c Correctly call dns_dispatch_done() in dns_dispatch_cancel() 2021-10-06 17:20:38 +02:00
dlz.c dns/ssu.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:47:48 +02:00
dns64.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
dnsrps.c dns/rbt.c: Implement incremental hash table resizing 2021-10-12 15:01:53 +02:00
dnssec.c Fix cleanup of signature buffer in dns_dnssec_signmessage 2021-10-12 09:56:44 +11:00
dnstap.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
dnstap.proto fix spelling errors reported by Fossies. 2020-02-21 15:05:08 +11:00
ds.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
dst_api.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
dst_internal.h Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00
dst_openssl.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
dst_parse.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
dst_parse.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
dyndb.c Use libuv's shared library handling capabilities 2020-10-28 15:48:58 +01:00
ecs.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
fixedname.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
forward.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
gen.c Add additional processing to HTTPS and SVBC records 2021-08-18 13:49:48 +10:00
gen.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
geoip2.c Completely remove BIND 9 Windows support 2021-06-09 14:35:14 +02:00
gssapi_link.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
gssapictx.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
hmac_link.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
ipkeylist.c implement xfrin via XoT 2021-01-29 12:07:38 +01:00
iptable.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
journal.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
kasp.c Add purge-keys config option 2021-02-23 09:16:48 +01:00
key.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
keydata.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
keymgr.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
keytable.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
log.c Remove LIB<*>_EXTERNAL_DATA defines 2021-07-06 05:33:48 +00:00
lookup.c dns/lookup.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:47:48 +02:00
Makefile.am Make isc_result a static enum 2021-10-06 11:22:20 +02:00
master.c Replace "master/slave" terms in code 2021-10-12 13:11:13 -07:00
masterdump.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
message.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
name.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
ncache.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
nsec.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
nsec3.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
nta.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
openssl_link.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
openssldh_link.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
opensslecdsa_link.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
openssleddsa_link.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
opensslrsa_link.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
order.c rename dns_name_copynf() to dns_name_copy() 2021-05-22 00:37:27 -07:00
peer.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
private.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
rbt.c dns/rbt.c: Implement incremental hash table resizing 2021-10-12 15:01:53 +02:00
rbtdb.c dns/rbt.c: Implement incremental hash table resizing 2021-10-12 15:01:53 +02:00
rbtdb.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
rcode.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
rdata.c dns/rdata.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:47:48 +02:00
rdatalist.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
rdatalist_p.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
rdataset.c Add additional processing to HTTPS and SVBC records 2021-08-18 13:49:48 +10:00
rdatasetiter.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
rdataslab.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
request.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
resolver.c dns/resolver.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:47:48 +02:00
result.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
rootns.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
rpz.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
rriterator.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
rrl.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
sdb.c dns/rbt.c: Implement incremental hash table resizing 2021-10-12 15:01:53 +02:00
sdlz.c dns/rbt.c: Implement incremental hash table resizing 2021-10-12 15:01:53 +02:00
soa.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
ssu.c dns/ssu.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:47:48 +02:00
ssu_external.c Completely remove BIND 9 Windows support 2021-06-09 14:35:14 +02:00
stats.c Clear dnssec-sign stats for removed keys 2021-08-24 09:07:15 +02:00
time.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
timer.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
tkey.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
transport.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
tsec.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
tsig.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
tsig_p.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
ttl.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
update.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
validator.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
view.c dns/view.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:47:48 +02:00
xfrin.c Replace "master/slave" terms in code 2021-10-12 13:11:13 -07:00
zone.c dns/resolver.c: Return void when ISC_R_SUCCESS is only returned value 2021-10-13 05:48:51 +02:00
zone_p.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
zonekey.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
zoneverify.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
zt.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00