Mail Archives: djgpp-workers/2000/06/06/09:43:15
Hans-Bernhard Broeker wrote:
> Actually, the only reason I can see for importing the definition of
> va_list into <stdio.h> is that the compiler cannot accept that header,
> without it. Code that actually does use vfprintf() & friends will always
> have to #include <stdarg.h> to be portable.
DJGPP allows this kind of unportable code, that's the reason we won't
fix it (now?)
> The remaining question is whether the *name* of the va_list type, as
> defined and used in <stdio.h> may have to be moved away from the public
> name space, i.e. renamed to something like
>
> __dj_va_list
>
> with <stdarg.h> containing the same <sys/djtypes.h> use as <stdio.h> and
> an additional
>
> typedef __dj_va_list va_list;
>
> to provide the 'official' name of that type.
That was the key question from the beginning and this was exactly the solution
I was thinking about.
Laurynas
- Raw text -