Re: [PATCH] describe: fix --no-exact-match
- From
Jeff King <peff@peff.net>
- Date
- Aug 11, 2023, 15:13 UTC
- Message-ID
- <20230811151323.GF2303200@coredump.intra.peff.net>
- In-Reply-To
- <09f499ad-28a5-0d8b-8af6-97475bdc614b@web.de>
On Thu, Aug 10, 2023 at 09:10:33PM +0200, René Scharfe wrote:
Show 7 quoted lines
> +#define DEFINE_PARSE_OPT_CB(name) \
> +static inline int name ## __void(const struct option *opt, \
> + const char *arg, int unset) \
> +{ \
> + return name(opt, arg, unset, opt->value); \
> +} \
> +struct optionBTW, I wondered what this extra "struct option" was doing. I guess it is there to soak up the semi-colon of:
DEFINE_PARSE_OPT_CB(foo);
with a noop declaration. Both clever and gross. :)
-Peff