git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: test-mergesort conflict with stdlib.h

From
Brian Gernhardt <brian@gernhardtsoftware.com>
Date
Apr 17, 2012, 18:09 UTC
Message-ID
<341E3693-9E1A-4356-A632-F5703E2829E8@gernhardtsoftware.com>
In-Reply-To
<7v8vhunsg5.fsf@alter.siamese.dyndns.org>
On Apr 17, 2012, at 2:06 PM, Junio C Hamano wrote:
Show 14 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
>> Unfortunate.  OS X shouldn't contaminate the user namespace by adding such
>> names in stdlib.h (which incidentally has qsort()), but the damage is done
>> already, so I am not opposed to rename it to llist_mergesort() or something.
> 
> Something like this.  While we are touching the code, let's add some
> documentation to the header.
> 
> commit.c         |    4 ++--
> mergesort.c      |    8 ++++----
> mergesort.h      |   16 ++++++++++++----
> test-mergesort.c |    2 +-
> 4 files changed, 19 insertions(+), 11 deletions(-)
This is basically identical to what I was going to send and it does, in fact, fix my build problem.

Thanks, ~~ Brian Gernhardt

Previous: Junio C Hamano
Message 5 of 5 in “test-mergesort conflict with stdlib.h”
  1. Brian GernhardtApr 17, 2012
  2. Junio C HamanoApr 17, 2012
  3. Brian GernhardtApr 17, 2012
  4. Junio C HamanoApr 17, 2012
  5. Brian GernhardtApr 17, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.