This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: va_list: headers


On Sun, Jul 25, 1999 at 11:15:42PM -0700, Zack Weinberg wrote:
> * Can we have something along the lines of
> 
> #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199909L
> #define va_copy(dest, src) __va_copy(dest, src)
> #endif
> 
> please?  That'll eliminate a deviation from C9x.

va_copy is defined unconditionally in <stdarg.h>; c9x
really defines va_copy at all for <varargs.h>?

> * I'd like to see the typedef name __gnuc_va_list be renamed
> __va_list, with __gnuc_va_list a backward compatibility #define.
> This is for aesthetic reasons, specifically I'm looking to remove an
> unnecessary dependency of the glibc header files on gcc.

That seems ok with me.

> * Does any port use the second argument to stdarg.h va_start?  If not,
> why don't we use the same builtin for both versions of va_start, and
> ignore the second argument to the stdarg.h version?

The final arg isn't _used_, as such, but we do verify and warn
when the argument is not the last named argument.  I think both
versions should stay.  It's all of 5 lines or so, additional.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]