Question
Per Bothner
bothner@cygnus.com
Tue Apr 21 17:38:00 GMT 1998
> Why is _IO_va_list defined as a char * (in streambuf.h)
It is not "defined as a char *" unless it has not been already defined.
And it is supposed to have been defined in _G_config.h;
if it wasn't, there is some configuration error.
> and not as a __gnuc_va_list like other va_lists ??
You mean like in libio.h?
Well, since streambuf.h includes libio.h, which defined _IO_va_list,
it seems pointless to define in in streambuf.h. I looks like some vestige
of something-or-other, which should perhaps be removed.
> It produces an error while compiling isscan.cc 'cause
> a va_list (defined as a __gnuc_va_list i.e. void * on
> my OS) is passed where a _IO_va_list (defined as a char *)
> is expected.
Well, now I am confused. Why did streambuf.h this _IO_va_list
was not defined - did libio.h not define _IO_va_list?
(Note that I am no longer maintaining libio, so perhaps I'm
misunderstanding something.)
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner
More information about the Gcc
mailing list