]> git.ipfire.org Git - thirdparty/glibc.git/commit
argp: Expand argp_usage, _option_is_short, and _option_is_end
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Oct 2025 17:08:19 +0000 (14:08 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 29 Oct 2025 15:53:57 +0000 (12:53 -0300)
commit110ec4954ee9d4cee3bc3013ac85ced24c51dbf5
treef8f865e74985fcf88cf461cbd0132bb4144b2e6c
parent36b4c553e6b840fff1f4b66a2f027edf9a670ad9
argp: Expand argp_usage, _option_is_short, and _option_is_end

The argp code uses macro redefinitions to avoid duplicating static inline
implementations for argp_usage, _option_is_short, and _option_is_end.
However, this causes build issues with clang, as some function prototypes
are redefined to add the hidden attribute with libc_hidden_proto.

To avoid extensive changes to internal headers, just expand the function
implementations and avoid the macro redefine tricks.

Reviewed-by: Collin Funk <collin.funk1@gmail.com>
argp/argp-xinl.c
argp/argp.h