Thread (10 messages) flat view 10 messages, 6 authors, 2016-06-15

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

From: Reece Dunn <hidden>
Date: 2016-06-15 22:47:15

2009/8/17 Paolo Bonzini [off-list ref]:
On 08/17/2009 06:04 PM, Frank Li wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help