[Prev][Next][Index][Thread]

Re: Documentation suggestion





> For instance, if an object exports multiple interfaces (via multiple
> function pointers), the function pointers are at multiple positions,
> not all of which can be the first.


I think you mean to say the function table pointers ?

>  See oskit/freebsd/net/socketcomio.c
> for an example. 

Yup, you are using the dreaded trick for multiple interface objects. 

#ifndef offsetof
#define offsetof(type, member) ((size_t)(&((type *)0)->member))
#endif

> We have adopted the convention to use the first n
> slots in our implementations, but this convention is entirely
> arbitrary.  

Of course. 

Thanks,
Umar
 






References: