]> 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>
Thu, 21 Jul 2022 17:12:01 +0000 (14:12 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 27 Oct 2025 19:10:22 +0000 (16:10 -0300)
commit23feb05c875b6940a2c8f3d4702c023b3744e33e
tree3743f92d2bb8856eaff7a246991ec1dc39cab3f5
parent34982f9132d069b77c623b90d5d4fc4d09efbe8c
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.
argp/argp-xinl.c
argp/argp.h