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:38:00 +0000 (11:38 +0100)
commit410758ae512d3d97afb9c77ba0a8515f7b023b22
tree4b615981a4c03521ba15cd74e0885e477e59e526
parent7ac0d18ea5c85176369eb04a402761d08c96fc80
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>
(cherry picked from commit 2a9991d23f5ba6d60c725fed3f0705c9b18bdd15)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/tools.c