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: Paolo Bonzini <hidden>
Date: 2016-06-15 22:47:15

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?

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help