Re: "#define precompose_argv(c,v) /* empty */" is evil
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 7, 2020, 06:42 UTC
- Message-ID
- <xmqqd043hs7w.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200807043436.GA21829@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
>> Yes, of course, but as I wrote in my response to Brian, the whole >> point of using these replacement implementation macros is so that we >> do not have to sprinkle the main code with such #ifdef/#endif, so >> I think the code like that is what needs to be corrected ;-) > > I'm not sure if I made my point clearly. ...
Sorry, indeed I missed it.
Using the implementation of precompose_argv() itself as an example, instead of generic looking some_func(), does help to explain why at some point we are bound to have some API calls that are compiled on some platforms and not on others.