Mail Archives: djgpp-workers/2000/06/19/13:53:59
Eli Zaretskii wrote:
>
> On Sun, 18 Jun 2000, Laurynas Biveinis wrote:
>
> > Also, it is possible to implement new C99 macro,
> > va_copy. However, this patch doesn't do that, because
> > I don't know how to implement it for GCC 2.95 or
> > earlier (w/o builtins)
>
> Just don't do anything about it. If somebody uses va_copy with GCC 2.95
> or earlier, they will get an error message, which is appropriate, since
> this feature is not supported.
>
> Or am I missing something?
Sorry, I don't understand. Following this logic, one may conclude, that
all the va_list company should not be implemented for GCC 2.95, because
it did not provide builtins for that. va_copy is defined in C99, not
as GNU C extension.
BTW, provided that our va_list is a pointer to somewhere in the stack,
I think that simple
#define va_copy(dest, source) (dest) = (source)
should DTRT, shouldn't it?.
Laurynas
- Raw text -