Re: INTERFACE definitions

Danny Smith <[email protected]> Tue, 02 Mar 2004 22:02:45 +0000
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <000901c400a2$19792c10$016d65da@DANNY>
Hi,

would you mind accepting a patch, which moves any "#undef INTERFACE"
commands after the corresponding interface struct definitions?

Here is an example - I want to use:

#define INTERFACE ITypeMarshal
DECLARE_INTERFACE_(ITypeMarshal, IUnknown)
{
        STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
..
        STDMETHOD(Free)(THIS_ PVOID) PURE;
};
#undef INTERFACE

But what about the very first #define INTERFACE (wherever that may
happen).  Doesn't that need protection too?  So each header that defines
INTERACE would need to undef before first definition.


Danny



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click