]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgcond: remerge all arguments into a single line
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 14:38:58 +0000 (16:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Jul 2021 17:18:41 +0000 (19:18 +0200)
commitc8194c30dff48a4f3bf3d0fc496dd9a219f77fee
tree83a110757c6c9a17cb113c8f58973d19a7090c29
parent379ceeaaebb2bfa9bae77cc1635ac6299b72791e
MINOR: cfgcond: remerge all arguments into a single line

Till now we were dealing with single-word expressions but in order to
extend the configuration condition language a bit more, we'll need to
support slightly more complex expressions involving operators, and we
must absolutely support spaces around them to keep them readable.

As all arguments are pointers to the same line with spaces replaced by
zeroes, we can trivially rebuild the whole line before calling the
condition evaluator, and remove the test for extraneous argument. This
is what this patch does.
src/cfgparse.c
src/haproxy.c