]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tools/checkconfig: strip C comments before macro extraction
authorKarel Zak <kzak@redhat.com>
Thu, 26 Feb 2026 10:27:48 +0000 (11:27 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Feb 2026 10:51:38 +0000 (11:51 +0100)
commitc2c8a5b82cc4bedd5cebc0ea22fbf967294a5632
tree328e8a9e81714f2735d411be552132b2f9743b4d
parent390ce9b9d330f586d10abec2843898c85b1c8c8b
tools/checkconfig: strip C comments before macro extraction

Strip C/C++ comments (// line comments, single-line /* */ and
multi-line /* */ blocks) before extracting HAVE_ and ENABLE_ macros.
This avoids false positives from macros mentioned in comments, e.g.
"when HAVE_PIDFD_* ..." in include/pidfd-utils.h.

Signed-off-by: Karel Zak <kzak@redhat.com>
tools/checkconfig.sh