Mail Archives: djgpp-workers/2000/06/04/16:00:11
Laurynas Biveinis wrote:
> But this still does not clear things for me. Maybe I'll ask in
> comp.std.c
Here is the first reply I got there. This guy does not point
to the exact place to the standard, but he is one of the major
posters there. It seems we've got a problem there. If there
will be no other opinions in c.s.c, I'll make a patch for this
issue.
Douglas A. Gwyn wrote:
>Laurynas Biveinis wrote:
>> is it true that stdio.h cannot define va_list, although it
>> has to use it for vprintf() family prototypes? How should
>> those prototypes be written in this case?
>
>It is true that stdio.h cannot define va_list if the implementation
>is to conform to the C standard. This is but one example of a
>general issue that implementors of standard headers need to deal
>with. One solution is to have duplicate definitions of such
>things in the namespace reserved for implementation use, and use
>those where necessary:
>
>/* <stdio.h> excerpt: */
>#include <impldefs.h> /* defines __va_list, among other things */
>extern int vprintf(const char *__format, __va_list __arg);
Laurynas
- Raw text -