tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xdrproc_t prototype



On Wed, Aug 24, 2011 at 02:26:10PM +0100, Iain Hibbert wrote:
> I don't think thats quite possible, since the calls can be made from
> inside generic library code which doesn't really know what the correct
> cast will be. I think thats an argument for varargs since at least it can
> pass what it likes.

An alternative would be to add dummy arguments to all functions so that
all of them get (say) 4 times a uintprt_t.

The variadic aproach can not work w/o proper casts back as David explained -
or making all the functions realy use varargs.

Martin


Home | Main Index | Thread Index | Old Index