]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: flags: implement a macro used to dump enums inside masks
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Sep 2022 14:05:10 +0000 (16:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Sep 2022 14:15:10 +0000 (16:15 +0200)
commit7a955b5d735e1a2457daaa6059c4edc85ab75a2f
treefc4d858c63d5126143539dfcec2da00f9897bc98
parent77acaf5af528d45e88e803f55b448d5b17e4762d
MINOR: flags: implement a macro used to dump enums inside masks

Some of our flags have enums inside a mask. The new macro __APPEND_ENUM
is able to deal with that by comparing the flag's value against an exact
one under the mask. One needs to take care of eliminating the zero value
though, otherwise delimiters will not always be properly placed (e.g. if
some flags were dumped before and what remains is exactly zero). The
bits of the mask are cleared only upon exact matches.
include/haproxy/show_flags-t.h