Re: [PATCH 1/2] parse-options: add int value pointer to struct option
- From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
- Date
- Sep 11, 2023, 22:28 UTC
- Message-ID
- <ZP+UgvIon1lrIFa+@ugly>
- In-Reply-To
- <xmqq7cowv7pm.fsf@gitster.g>
On Mon, Sep 11, 2023 at 12:19:17PM -0700, Junio C Hamano wrote:
Show 9 quoted lines
>Yup, that does cross my mind, even though I would have used
>
> union {
> void *void_ptr;
> int *int_ptr;
> } value;
>
>or something without a rather meaningless 'u'.
>i'd go the opposite way and make it an anonymous union. that would require c11, though. imo not exactly an outrageous proposition in 2023, but ...
regards