]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: ease the declaration of known symbols in resolve_sym_name()
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Mar 2025 15:46:10 +0000 (16:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Mar 2025 16:30:48 +0000 (17:30 +0100)
commita3582a77f73a1c2ba84018ac361b4a763582ac44
treede9a7f166cf0077e120fdd65f479ada95d67bd49
parente920d73f598bd770a5dc861074268d1b2db4de59
MINOR: tools: ease the declaration of known symbols in resolve_sym_name()

Let's have a macro that declares both the symbol and its name, it will
avoid the risk of introducing typos, and encourages adding more when
needed. The macro also takes an optional second argument to permit an
inline declaration of an extern symbol.
src/tools.c