]> git.ipfire.org Git - thirdparty/bind9.git/commit
change ISC__BUFFER macros to inline functions
authorEvan Hunt <each@isc.org>
Wed, 17 Aug 2022 20:39:38 +0000 (13:39 -0700)
committerEvan Hunt <each@isc.org>
Tue, 27 Sep 2022 07:45:28 +0000 (00:45 -0700)
commit369858730ad7fddb1a12bcb93b9c7989bc28342b
tree0e6df393e80e2738ccb3ffab2c13e67d449a1a13
parente442730104e3a30b1d92d60d9586452b9fa72ca4
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.

(cherry picked from commit 1926ddc98765571289ce489f1b20dd33f9b00936)
.gitlab-ci.yml
configure.ac
lib/isc/buffer.c
lib/isc/include/isc/buffer.h