stdarg: safe to pass va_list * and have callees va_arg(*args, type)??

Lawrence Kirby fred@genesis.demon.co.uk
Fri Oct 1 00:00:00 GMT 1999


In article < 87906vtk8h.fsf@pfaffben.user.msu.edu >
           pfaffben@msu.edu "Ben Pfaff" writes:

>fred@genesis.demon.co.uk (Lawrence Kirby) writes:
>
>   In article < 877lmgwz3c.fsf@pfaffben.user.msu.edu >
>              pfaffben@msu.edu "Ben Pfaff" writes:
>
>   >Basically, the Standard says that va_list is an opaque type.
>
>   Nevertheless it is an object type.
>
>You have a point.  I bow to your superior wisdom.
>
>I'll point out for our gnu.gcc.help audience that GNU C defines a
>function-like macro __va_copy for copying va_list types.  The info
>page says that this ``will hopefully also be available in the next
>update of the ISO C standard'' but doesn't say if it is actually in
>the C9x draft.

The C9X draft does specify a va_copy macro.

-- 
-----------------------------------------
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
-----------------------------------------



More information about the Gcc-help mailing list