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, 20 Mar 2025 10:12:27 +0000 (11:12 +0100)
commit2a9991d23f5ba6d60c725fed3f0705c9b18bdd15
tree804bd02d1772c0a1ce261745e47622a34a612209
parent9df54d8c1b4de89df9b933d9f58c0c388fed4a5b
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.

(cherry picked from commit a3582a77f73a1c2ba84018ac361b4a763582ac44)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/tools.c