]> git.kaiwu.me - haproxy.git/commit
MINOR: config: centralize the ".if"/".elif" condition parser and evaluator
authorWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 06:19:48 +0000 (08:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 08:35:03 +0000 (10:35 +0200)
commit6a2110c7175a031ff60b9b9769e80c3180ce0f9b
treeb675279fa8ca86a42218d83c73b343fd0069547c
parent71990e6becb0d448915e453e4ce17dde67b8563b
MINOR: config: centralize the ".if"/".elif" condition parser and evaluator

Instead of duplicating the condition evaluations, let's have a single
function cfg_eval_condition() that returns true/false/error. It takes
less code and will ease its extension.
src/cfgparse.c