riched20: add stub ITextDocument

Stefan Dösinger stefandoesinger at gmx.at
Mon Jul 10 07:37:39 CDT 2006


Am Montag 10 Juli 2006 12:24 schrieb Alexandre Julliard:
> Juan Lang <juan_lang at yahoo.com> writes:
> > +#define DECL_IFACE(ifc) const I##ifc##Vtbl *lp##ifc##Vtbl;
> > +
> > +#define IFACE2IMPL(cls,ifc,iface)
> > ((cls*)((BYTE*)(iface)-offsetof(cls,lp##ifc##Vtbl))) +#define
> > IMPL2IFACE(ifc,x) ((I##ifc*)&(x)->lp##ifc##Vtbl)
>
> Please avoid that sort of macros, it makes grepping for things a lot
> harder. Just spell things out explicitly, and for IFACE2IMPL define a
> couple of inline functions instead.
If I read the macros correctly they are for defining COM interfaces and casts 
from implementation pointer to interface pointer. DDraw has a couple of 
macros for that in dlls/ddraw/ddcomimpl.h, perhaps we should move this file 
to include/wine/?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20060710/ae5e4b63/attachment-0001.pgp


More information about the wine-devel mailing list