Re: riched20: add stub ITextDocument

2006-07-10 Thread Alexandre Julliard
Stefan Dösinger <[EMAIL PROTECTED]> writes: > 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/?

Re: riched20: add stub ITextDocument

2006-07-10 Thread Stefan Dösinger
Am Montag 10 Juli 2006 12:24 schrieb Alexandre Julliard: > Juan Lang <[EMAIL PROTECTED]> 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##

Re: riched20: add stub ITextDocument

2006-07-10 Thread Alexandre Julliard
Juan Lang <[EMAIL PROTECTED]> 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 mak