Mail Archives: djgpp-workers/2000/06/03/15:28:07
Eli Zaretskii wrote:
>
> > Date: Sat, 03 Jun 2000 11:29:18 +0300
> > From: Laurynas Biveinis <lauras AT softhome DOT net>
> >
> > And what about the original point: "stdio.h needs to have access to
> > that data type, but *must not use that name*."?
>
> I wonder how can this be, given the fact that stdio.h defines
> prototypes for vfprintf and its ilk, which the ANSI Standard defines
> via va_list.
BTW, that C standard draft I'm using and DJGPP lib reference defines vfprintf
family's prototypes like
#include <stdarg.h>
#include <stdio.h>
int vfprintf(..., va_list args);
Note that stdarg.h should be included as well. Why?
> Can someone tell how do other systems define their headers?
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 *
But this still does not clear things for me. Maybe I'll ask in
comp.std.c
Laurynas
- Raw text -