bind9/lib/isc/tests
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
..
testdata/file [master] new mkeys and nzf naming format 2014-11-04 19:43:27 -08:00
aes_test.c The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
buffer_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
counter_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
crc64_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
doh_test.c Replace multiple /dns-query constants with a global one 2021-08-30 10:32:17 +03:00
errno_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
file_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
hash_test.c Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00
heap_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
hmac_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
ht_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
isctest.c ensure interlocked netmgr events run on worker[0] 2021-05-07 14:28:32 -07:00
isctest.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
lex_test.c Use %d for enum values 2021-08-19 10:19:32 +10:00
Makefile.am Add stats unit test 2021-08-24 09:07:15 +02:00
md_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
mem_test.c Return non-NULL pointer on zero-sized allocations and reallocations 2021-09-23 22:17:15 +02:00
netaddr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
netmgr_test.c Add ALPN negotiation tests to TLS DNS test set 2021-10-05 11:23:47 +03:00
parse_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
pool_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
quota_test.c Add nanosleep and usleep Windows shims 2021-05-03 20:22:54 +02:00
radix_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
random_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
regex_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
result_test.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
safe_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
siphash_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
sockaddr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
socket_test.c Dispatch API simplification 2021-10-02 10:21:49 +02:00
stats_test.c Add a function isc_stats_resize 2021-08-24 09:07:15 +02:00
symtab_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
task_test.c The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
taskpool_test.c only run tasks as privileged if taskmgr is in privileged mode 2021-05-07 14:28:30 -07:00
time_test.c Add isc_time_now_hires function to get current time with high resolution 2021-03-20 11:25:55 -07:00
timer_test.c Reset errcnt at the start of each subtest 2021-07-12 03:47:11 +00:00
uv_wrap.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00