]> git.ipfire.org Git - thirdparty/bind9.git/commit
change ISC__BUFFER macros to inline functions each-static-buffer-functions
authorEvan Hunt <each@isc.org>
Wed, 17 Aug 2022 20:39:38 +0000 (13:39 -0700)
committerEvan Hunt <each@isc.org>
Mon, 12 Sep 2022 21:36:47 +0000 (14:36 -0700)
commitfb7846bf2e5629707927d9c975f1c7455a3231eb
treee8d2aa9c19a61eb8a7c0500b550a093b974b88fc
parent00e3c8fe1adfc29c6c97f8917d875f64c087fe5f
change ISC__BUFFER macros to inline functions

previously, when ISC_BUFFER_USEINLINE was defined, macros were
used to implement isc_buffer primitives (isc_buffer_init(),
isc_buffer_region(), etc). these macros were missing the DbC
assertions for those primitives, which made it possible for
coding errors to go undetected.

adding the assertions to the macros caused compiler warnings on
some platforms. therefore, this commit converts the ISC__BUFFER
macros to static inline functions instead, with assertions included,
and eliminates the non-inline implementation from buffer.c.

the --enable-buffer-useinline configure option has been removed.
.gitlab-ci.yml
configure.ac
lib/isc/buffer.c
lib/isc/include/isc/buffer.h