Re: [cc65] va_copy(): Any alternatives

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2005-05-07 13:55:58
Hello Oliver,

* On Fri, May 06, 2005 at 02:54:28PM +0200 Oliver Schmidt wrote:
 
> > I tried with the work-around for the Watcom C compiler (from
> > /src/common/va_copy.h). ...
> 
> I don't know that one but this works at least for some var-arg
> implementations:
> 
> #define va_copy(dest, src) ((dest) = (src))

Thank you. At least, it compiles with gcc 2.95. ;-)

Ok, it does not only compile, but the library can be built. Thus, it
seems this worked. Thank you.


BTW: Uz, in src/common/va_copy.h, you define va_copy to be

#define va_copy(src,dest)       memcpy((src), (dest), sizeof (va_list))

for the Watcom C compiler. You have mixed the names of the arguments two
times, which results in correct behaviour, anyway. ;-)


Regards,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat May 7 13:56:10 2005

This archive was generated by hypermail 2.1.8 : 2005-05-07 13:56:13 CEST