]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make isc_result tables smaller
authorOndřej Surý <ondrej@isc.org>
Thu, 15 Jun 2023 08:24:21 +0000 (10:24 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 15 Jun 2023 14:27:17 +0000 (16:27 +0200)
commitbe0f38553ef6037fe71eb896537060791e2f5b7e
treeb3f04ebca52743df68c9dadfc35529e8aca55e3a
parenta29de517fa95500bf3d5201dfa96846e6d740cad
Make isc_result tables smaller

The isc_result_t enum was to sparse when each library code would skip to
next << 16 as a base.  Remove the huge holes in the isc_result_t enum to
make the isc_result tables more compact.

This change required a rewrite how we map dns_rcode_t to isc_result_t
and back, so we don't ever return neither isc_result_t value nor
dns_rcode_t out of defined range.

(cherry picked from commit a8e6c3b8f7b919075cae6db1d9835318c0350fc3)
lib/isc/include/isc/result.h
lib/isc/result.c