MINOR: arg: Be able to forbid unresolved args when building an argument list
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Sep 2021 06:48:56 +0000 (08:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Sep 2021 14:37:05 +0000 (16:37 +0200)
commit35926a16ac087ac737026206a8420a65a9fce0ca
treead20a770c577a57d89fe7036b8c7be49746eca30
parente3957f83e070fab55853d4803fcb3aba890091ce
MINOR: arg: Be able to forbid unresolved args when building an argument list

In make_arg_list() function, unresolved dependencies are pushed in an
argument list to be resolved later, during the configuration validity
check. It is now possible to forbid such unresolved dependencies by omitting
<al> parameter (setting it to NULL). It is usefull when the parsing context
is not the same than the running context or when the parsing context is lost
after the startup stage. For instance, an argument may be defined in
defaults section during parsing and executed in a frontend/backend section.
src/acl.c
src/arg.c
src/sample.c