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

Re: [PATCH] compat: move strdup(3) replacement to its own file

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 8, 2016, 06:59 UTC
Message-ID
<alpine.DEB.2.20.1609080859160.129229@virtualbox>
In-Reply-To
<xmqqfupbob9c.fsf@gitster.mtv.corp.google.com>
Hi,
On Wed, 7 Sep 2016, Junio C Hamano wrote:
Show 18 quoted lines
> René Scharfe <l.s.r@web.de> writes:
> 
> > Well, OK.  I think the missing point is that the original nedmalloc
> > doesn't come with strdup() and doesn't need it.  Only _users_ of
> > nedmalloc need it.  Marius added it in nedmalloc.c, but strdup.c is a
> > better place for it.
> 
> Thanks.  I'll add these lines like so:
> 
>     Move our implementation of strdup(3) out of compat/nedmalloc/ and
>     allow it to be used independently from USE_NED_ALLOCATOR.  The
>     original nedmalloc doesn't come with strdup() and doesn't need it.
>     Only _users_ of nedmalloc need it, which was added when we imported
>     it to our compat/ hierarchy.
> 
>     This reduces the difference of our copy of nedmalloc from the
>     original, making it easier to update, and allows for easier testing
>     and reusing of our version of strdup().
Excellent!

Thanks, Dscho

Previous: Junio C Hamano
Message 5 of 5 in “compat: move strdup(3) replacement to its own file”
  1. compat: move strdup(3) replacement to its own fileRené Scharfe, Sep 3, 2016
  2. Johannes SchindelinSep 4, 2016
  3. René ScharfeSep 6, 2016
  4. Junio C HamanoSep 7, 2016
  5. Johannes SchindelinSep 8, 2016

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.