]> git.kaiwu.me - haproxy.git/commit
CLEANUP: pools: get rid of the POOL_LINK macro
authorWilly Tarreau <w@1wt.eu>
Sat, 1 Jan 2022 16:10:50 +0000 (17:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2022 11:44:19 +0000 (12:44 +0100)
commit8c4927098e994e26441db64e77eba11b9757b915
tree51b7cb4c467f0a055784951fd79e998b7aa41508
parent799f6143ca2a0a7ff8979ae5850b462363d76437
CLEANUP: pools: get rid of the POOL_LINK macro

The POOL_LINK macro is now only used for debugging, and it still requires
ifdefs around, which needlessly complicates the code. Let's replace it
and the calling code with a new pair of macros: POOL_DEBUG_SET_MARK()
and POOL_DEBUG_CHECK_MARK(), that respectively store and check the pool
pointer in the extra location at the end of the pool. This removes 4
pairs of ifdefs in the middle of the code.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c