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

Re: [PATCH 05/11] Remove va_copy at MSVC because there are va_copy.

From
RDReece Dunn <msclrhd@googlemail.com>
Date
Aug 17, 2009, 16:56 UTC
Message-ID
<3f4fd2640908170956j556fcba7o1ec4c2107197dbd@mail.gmail.com>
In-Reply-To
<4A898B27.3040507@gnu.org>
2009/8/17 Paolo Bonzini <bonzini@gnu.org>:
Show 15 quoted lines
> On 08/17/2009 06:04 PM, Frank Li wrote:
>>
>> MSVs have not implemented va_copy. remove va_copy at MSVC environment.
>> It will malloc buffer each time.
>
> ... but only a 257-byte buffer as dscho pointed out.
>
> In many places that do not have va_copy, a simple assignment works.  And
> va_end is almost always a no-op. So what about
>
> #ifndef va_copy
> #define va_copy(dst, src)       ((dst) = (src))
> #endif
>
> if it works on MSVC?

According to http://stackoverflow.com/questions/558223/vacopy-porting-to-visual-c that should work.

- Reece
Previous: Paolo BonziniNext: Erik Faye-Lund
Message 5 of 10 in “Remove va_copy at MSVC because there are va_copy.”
  1. 05/11 Remove va_copy at MSVC because there are va_copy.Frank Li, Aug 17, 2009
  2. Johannes SchindelinAug 17, 2009
  3. Joshua JensenAug 17, 2009
  4. Paolo BonziniAug 17, 2009
  5. Reece DunnAug 17, 2009
  6. Erik Faye-LundAug 17, 2009
  7. Erik Faye-LundAug 17, 2009
  8. Johannes SchindelinAug 17, 2009
  9. Frank LiAug 18, 2009
  10. Johannes SchindelinAug 18, 2009

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.