INTERFACE definitions

"Martin Fuchs" <[email protected]> Tue, 02 Mar 2004 11:32:59 +0100
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
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


instead of:

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


I know, this is not what the MS headers do. But it's cleaner to un-define t=
emporary
used macros immediatelly after using them. ...and it harmonizes with WINE c=
ode.


Regards,

   Martin


-------------------------------------------------------
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