Varargs issues

Adriaan de Groot adridg at cs.kun.nl
Mon Dec 1 14:59:44 PST 2003


[yes, I realize I have my calendar set to Hijri.]

On Yaum al-Ithnain 06 Shawwal 1424 23:33, Peter Wemm wrote:
> The biggest problem is that 'va_args ap' is a pointer, not an integral
> copyable type.  There are a few programs that do this sort of thing:

[assigning va_args snipped] Yes, arts does / did this, but is fixed now.

> However, I suspect the real problem with the ogg123 stuff is that there is
> likely a missing #ifdef and its defaulting to assuming that longs are 32
> bit. mpg123 had the exact same problem FWIW.

You can see in my test program (I suppose varargs was a bad subject: for this 
thread, since it's really about ... parameters, not varargs - but I don't 
know what else to call them) that there is no such thing. It's just that the 
stack alignment gets out of whack.

-- 
pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot at kde.org>
            If the door is ajar, can we fill it with door-jamb?


More information about the freebsd-amd64 mailing list