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
Joshua Jensen <jjensen@workspacewhiz.com>
Date
Aug 17, 2009, 18:22 UTC
Message-ID
<4A899FFD.3080607@workspacewhiz.com>
In-Reply-To
<alpine.DEB.1.00.0908171840450.4991@intel-tinevez-2-302>
----- Original Message -----
From: Johannes Schindelin
Date: 8/17/2009 10:49 AM
Show 7 quoted lines
> How about this instead?
>
> 	Work around Microsoft Visual C++ not having va_copy()
>
> 	In winansi.c, Git wants to know the length of the formatted string 
> 	so it can allocate enough space for it.  But Microsoft Visual C++
> 	does not have va_copy(), so we have to guess

I did not look at the surrounding code, but could Microsoft's C runtime extension _vscprintf, which returns the number of characters in the formatted string, be of use here?

Josh
Previous: Johannes SchindelinNext: Paolo Bonzini
Message 3 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.