Use typeof() to implement NS_STDCALL_FUNCPROTO so that pointer-to-member types using stdcall work on mingw gcc. Bug 203137, r=cls, sr=dbaron.

This commit is contained in:
bryner@brianryner.com
2003-09-15 04:20:20 +00:00
parent 9f2543f5b9
commit 6379f4c9e6
5 changed files with 53 additions and 24 deletions

View File

@@ -143,6 +143,18 @@ enum RDFContentSinkParseMode {
MOZ_DECL_CTOR_COUNTER(RDFContentSinkImpl::NameSpaceEntry)
typedef
NS_STDCALL_FUNCPROTO(nsresult,
nsContainerTestFn,
nsIRDFContainerUtils, IsAlt,
(nsIRDFDataSource*, nsIRDFResource*, PRBool*));
typedef
NS_STDCALL_FUNCPROTO(nsresult,
nsMakeContainerFn,
nsIRDFContainerUtils, MakeAlt,
(nsIRDFDataSource*, nsIRDFResource*, nsIRDFContainer**));
class RDFContentSinkImpl : public nsIRDFContentSink,
public nsIExpatSink
{
@@ -192,17 +204,6 @@ public:
static nsIAtom* kXMLNSAtom;
static nsIAtom* kParseTypeAtom;
typedef nsresult
NS_STDCALL_FUNCPROTO(nsIRDFContainerUtils::*nsContainerTestFn,
(nsIRDFDataSource* aDataSource,
nsIRDFResource* aResource,
PRBool* aResult));
typedef nsresult
NS_STDCALL_FUNCPROTO(nsIRDFContainerUtils::*nsMakeContainerFn,
(nsIRDFDataSource* aDataSource,
nsIRDFResource* aContainer,
nsIRDFContainer** aResult));
typedef struct ContainerInfo {
nsIRDFResource** mType;