MINOR: cfgcond: insert an expression between the condition and the term
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 12:46:09 +0000 (14:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 17:18:41 +0000 (19:18 +0200)
commitca818875990d2b2ac8377f3b418d262164681ef7
tree124c3ddf2e21dad28ba3beec0bc32d2838c785fb
parent087b2d018ff436773b32afccfbbe565961b80f13
MINOR: cfgcond: insert an expression between the condition and the term

Now evaluating a condition will rely on an expression (or an empty string),
and this expression will support ORing a sub-expression with another
optional expression. The sub-expressions ANDs a term with another optional
sub-expression. With this alone precedence between && and || is respected,
and the following expression:

     A && B && C || D || E && F || G

will naturally evaluate as:

     (A && B && C) || D || (E && F) || G
doc/configuration.txt
include/haproxy/cfgcond-t.h
include/haproxy/cfgcond.h
src/cfgcond.c