]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-global: simplify cfg_parse_global()
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 15:34:57 +0000 (17:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commit66813b59ebf0cdf469e530cf21047bb3739c9f23
treea09751a0409eb7d119d25dccde34cf7d9f935fca
parent3b6d6020c5283d107dbcb755ac81c98931e27f7c
CLEANUP: cfgparse-global: simplify cfg_parse_global()

Now that all the keywords are registered in cfg_kws, the function only
has to deal with the "global" section name itself and to lookup the
keyword in the registered lists. The "discovery_kw" label and the old
"else" block are no longer used and were removed. The function which
used to be ~1000 lines in master is now only ~60.
src/cfgparse-global.c