MINOR: config: make cfg_eval_condition() support predicates with arguments
authorWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 13:49:04 +0000 (15:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 15:02:36 +0000 (17:02 +0200)
commit732525fae7abee4b73d980b7f0b7f7aa5761cf23
tree067948870999b5eaaf63900a030638ded3c0909a
parent299bd1c3ae516f02f6f07c8ae157067f50aecb58
MINOR: config: make cfg_eval_condition() support predicates with arguments

Now we can look up a list of known predicates and pre-parse their
arguments. For now the list is empty. The code needed to be arranged with
a common exit point to release all arguments because there's no default
argument freeing function (it likely only used to exist in the deinit
code). Since we only support simple arguments for now it's no big deal,
only a 2-liner loop.
src/cfgparse.c