Mail Archives: djgpp-workers/2000/06/04/11:54:19
Eli Zaretskii wrote:
> > Note that stdarg.h should be included as well. Why?
>
> Because that's where va_list is supposed to be defined.
So including <stdio.h> in theory is not sufficient?
> > I found FreeBSD definition by accident in gcc mail archives:
> >
> > int vfprintf __P((FILE *, const char *, _BSD_VA_LIST_));
> > int vprintf __P((const char *, _BSD_VA_LIST_));
> > ...
> >
> > with _BSD_VA_LIST_ declared in /usr/include/machine/ansi.h as:
> >
> > #define _BSD_VA_LIST_ char *
>
> And where do they make the link to va_list?
I think in <stdarg.h>, where else could they? That mail doesn't tell it.
BTW, I've checked glibc-2.1.3. The things are pretty complicated there,
but they don't use va_list there neither. Actually they even don't provide
<stdarg.h> - they rely on that GCC one.
Laurynas
- Raw text -