]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-global: move "node" and "description" to their own parser
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 14:41:09 +0000 (16:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commit4422b2d85b112c45ebb2729ba41ab8495b98a3fa
tree0588710caa0a341bb9bfc4305c990f08437c7f4d
parent58c0c33beb2f5798d2d32a36b4a7d9786ba08fea
CLEANUP: cfgparse-global: move "node" and "description" to their own parser

Both keywords give an name/desc to the current node, so they were moved
together to a new cfg_parse_global_node_desc() function and registered in
cfg_kws so as to become discoverable via "-dKcfg".

While doing this, a test on strdup(node) result was added so as to fail
cleanly on memory allocation failure (this remains i nthe scope of a
cleanup since in practice it never happens).
src/cfgparse-global.c