]> git.ipfire.org Git - thirdparty/bind9.git/commit
Cleanup the dns_name macros
authorOndřej Surý <ondrej@isc.org>
Mon, 11 Sep 2023 06:23:52 +0000 (08:23 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 12 Sep 2023 14:14:10 +0000 (16:14 +0200)
commitfd25be31f0591dd77badccffaa09b096fb93bee0
tree9d5e2dadb976bff1a5dbbbe4657426a9900d043b
parenta83a4cae368c506f74813e3c1238506eb64d0426
Cleanup the dns_name macros

1. Replace the "high-performance" macros that were only used if
   DNS_NAME_USEINLINE was defined before including <dns/name.h> with
   inline header functions with assertion checks and thus use them
   everywhere.

2. Replace the old struct initializers with C99 designated initializers
   for better understanding what is happening in these macros.
lib/dns/compress.c
lib/dns/include/dns/name.h
lib/dns/name.c
lib/dns/rbt.c