summaryrefslogtreecommitdiff
path: root/src/vm
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-05-16 14:30:36 +0900
committerJonghyun Park <parjong@gmail.com>2017-05-22 15:20:40 +0900
commitd25366cbf3831a058e32491b472df629c72d2d8b (patch)
tree42dc0865ee612a6df08b94bde3e7a867b0e96ab8 /src/vm
parent9a6125d007152407087998f63cef236280c75639 (diff)
downloadcoreclr-d25366cbf3831a058e32491b472df629c72d2d8b.tar.gz
coreclr-d25366cbf3831a058e32491b472df629c72d2d8b.tar.bz2
coreclr-d25366cbf3831a058e32491b472df629c72d2d8b.zip
[x86/Linux] Use CDECL (instead of STDCALL) as STDMETHODCALLTYPE
Diffstat (limited to 'src/vm')
-rw-r--r--src/vm/profilingenumerators.h16
-rw-r--r--src/vm/rejit.h12
-rw-r--r--src/vm/typeparse.cpp26
-rw-r--r--src/vm/typeparse.h30
-rw-r--r--src/vm/typestring.cpp30
-rw-r--r--src/vm/typestring.h30
6 files changed, 72 insertions, 72 deletions
diff --git a/src/vm/profilingenumerators.h b/src/vm/profilingenumerators.h
index 7162ba0552..479345c8ab 100644
--- a/src/vm/profilingenumerators.h
+++ b/src/vm/profilingenumerators.h
@@ -39,20 +39,20 @@ public:
// IUnknown functions
- virtual HRESULT __stdcall QueryInterface(REFIID id, void** pInterface);
- virtual ULONG __stdcall AddRef();
- virtual ULONG __stdcall Release();
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID id, void** pInterface);
+ virtual ULONG STDMETHODCALLTYPE AddRef();
+ virtual ULONG STDMETHODCALLTYPE Release();
// This template assumes that the enumerator confors to the interface
//
// (this matches the IEnumXXX interface documented in MSDN)
- virtual HRESULT __stdcall Skip(ULONG count);
- virtual HRESULT __stdcall Reset();
- virtual HRESULT __stdcall Clone(EnumInterface** ppEnum);
- virtual HRESULT __stdcall GetCount(ULONG *count);
- virtual HRESULT __stdcall Next(ULONG count,
+ virtual HRESULT STDMETHODCALLTYPE Skip(ULONG count);
+ virtual HRESULT STDMETHODCALLTYPE Reset();
+ virtual HRESULT STDMETHODCALLTYPE Clone(EnumInterface** ppEnum);
+ virtual HRESULT STDMETHODCALLTYPE GetCount(ULONG *count);
+ virtual HRESULT STDMETHODCALLTYPE Next(ULONG count,
Element elements[],
ULONG* elementsFetched);
diff --git a/src/vm/rejit.h b/src/vm/rejit.h
index d2471740f9..3c8bfd66b2 100644
--- a/src/vm/rejit.h
+++ b/src/vm/rejit.h
@@ -40,14 +40,14 @@ public:
virtual ~ProfilerFunctionControl();
// IUnknown functions
- virtual HRESULT __stdcall QueryInterface(REFIID id, void** pInterface);
- virtual ULONG __stdcall AddRef();
- virtual ULONG __stdcall Release();
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID id, void** pInterface);
+ virtual ULONG STDMETHODCALLTYPE AddRef();
+ virtual ULONG STDMETHODCALLTYPE Release();
// ICorProfilerFunctionControl functions
- virtual HRESULT __stdcall SetCodegenFlags(DWORD flags);
- virtual HRESULT __stdcall SetILFunctionBody(ULONG cbNewILMethodHeader, LPCBYTE pbNewILMethodHeader);
- virtual HRESULT __stdcall SetILInstrumentedCodeMap(ULONG cILMapEntries, COR_IL_MAP * rgILMapEntries);
+ virtual HRESULT STDMETHODCALLTYPE SetCodegenFlags(DWORD flags);
+ virtual HRESULT STDMETHODCALLTYPE SetILFunctionBody(ULONG cbNewILMethodHeader, LPCBYTE pbNewILMethodHeader);
+ virtual HRESULT STDMETHODCALLTYPE SetILInstrumentedCodeMap(ULONG cILMapEntries, COR_IL_MAP * rgILMapEntries);
// Accessors
DWORD GetCodegenFlags();
diff --git a/src/vm/typeparse.cpp b/src/vm/typeparse.cpp
index 68ff76273d..9a7dcd08e9 100644
--- a/src/vm/typeparse.cpp
+++ b/src/vm/typeparse.cpp
@@ -22,7 +22,7 @@
//
// TypeNameFactory
//
-HRESULT __stdcall TypeNameFactory::QueryInterface(REFIID riid, void **ppUnk)
+HRESULT STDMETHODCALLTYPE TypeNameFactory::QueryInterface(REFIID riid, void **ppUnk)
{
WRAPPER_NO_CONTRACT;
@@ -64,7 +64,7 @@ HRESULT TypeNameFactoryCreateObject(REFIID riid, void **ppUnk)
}
-HRESULT __stdcall TypeNameFactory::ParseTypeName(LPCWSTR szTypeName, DWORD* pError, ITypeName** ppTypeName)
+HRESULT STDMETHODCALLTYPE TypeNameFactory::ParseTypeName(LPCWSTR szTypeName, DWORD* pError, ITypeName** ppTypeName)
{
CONTRACTL
{
@@ -107,7 +107,7 @@ HRESULT __stdcall TypeNameFactory::ParseTypeName(LPCWSTR szTypeName, DWORD* pErr
return hr;
}
-HRESULT __stdcall TypeNameFactory::GetTypeNameBuilder(ITypeNameBuilder** ppTypeNameBuilder)
+HRESULT STDMETHODCALLTYPE TypeNameFactory::GetTypeNameBuilder(ITypeNameBuilder** ppTypeNameBuilder)
{
CONTRACTL
{
@@ -166,7 +166,7 @@ SString* TypeName::ToString(SString* pBuf, BOOL bAssemblySpec, BOOL bSignature,
}
-DWORD __stdcall TypeName::AddRef()
+DWORD STDMETHODCALLTYPE TypeName::AddRef()
{
LIMITED_METHOD_CONTRACT;
@@ -175,7 +175,7 @@ DWORD __stdcall TypeName::AddRef()
return m_count;
}
-DWORD __stdcall TypeName::Release()
+DWORD STDMETHODCALLTYPE TypeName::Release()
{
CONTRACTL
{
@@ -210,7 +210,7 @@ TypeName::~TypeName()
m_genericArguments[i]->Release();
}
-HRESULT __stdcall TypeName::QueryInterface(REFIID riid, void **ppUnk)
+HRESULT STDMETHODCALLTYPE TypeName::QueryInterface(REFIID riid, void **ppUnk)
{
WRAPPER_NO_CONTRACT;
@@ -227,7 +227,7 @@ HRESULT __stdcall TypeName::QueryInterface(REFIID riid, void **ppUnk)
return S_OK;
}
-HRESULT __stdcall TypeName::GetNameCount(DWORD* pCount)
+HRESULT STDMETHODCALLTYPE TypeName::GetNameCount(DWORD* pCount)
{
WRAPPER_NO_CONTRACT;
@@ -239,7 +239,7 @@ HRESULT __stdcall TypeName::GetNameCount(DWORD* pCount)
return S_OK;
}
-HRESULT __stdcall TypeName::GetNames(DWORD count, BSTR* bszName, DWORD* pFetched)
+HRESULT STDMETHODCALLTYPE TypeName::GetNames(DWORD count, BSTR* bszName, DWORD* pFetched)
{
CONTRACTL
{
@@ -270,7 +270,7 @@ HRESULT __stdcall TypeName::GetNames(DWORD count, BSTR* bszName, DWORD* pFetched
return hr;
}
-HRESULT __stdcall TypeName::GetTypeArgumentCount(DWORD* pCount)
+HRESULT STDMETHODCALLTYPE TypeName::GetTypeArgumentCount(DWORD* pCount)
{
WRAPPER_NO_CONTRACT;
@@ -282,7 +282,7 @@ HRESULT __stdcall TypeName::GetTypeArgumentCount(DWORD* pCount)
return S_OK;
}
-HRESULT __stdcall TypeName::GetTypeArguments(DWORD count, ITypeName** ppArguments, DWORD* pFetched)
+HRESULT STDMETHODCALLTYPE TypeName::GetTypeArguments(DWORD count, ITypeName** ppArguments, DWORD* pFetched)
{
WRAPPER_NO_CONTRACT;
@@ -306,7 +306,7 @@ HRESULT __stdcall TypeName::GetTypeArguments(DWORD count, ITypeName** ppArgument
return S_OK;
}
-HRESULT __stdcall TypeName::GetModifierLength(DWORD* pCount)
+HRESULT STDMETHODCALLTYPE TypeName::GetModifierLength(DWORD* pCount)
{
WRAPPER_NO_CONTRACT;
@@ -318,7 +318,7 @@ HRESULT __stdcall TypeName::GetModifierLength(DWORD* pCount)
return S_OK;
}
-HRESULT __stdcall TypeName::GetModifiers(DWORD count, DWORD* pModifiers, DWORD* pFetched)
+HRESULT STDMETHODCALLTYPE TypeName::GetModifiers(DWORD count, DWORD* pModifiers, DWORD* pFetched)
{
WRAPPER_NO_CONTRACT;
@@ -339,7 +339,7 @@ HRESULT __stdcall TypeName::GetModifiers(DWORD count, DWORD* pModifiers, DWORD*
return S_OK;
}
-HRESULT __stdcall TypeName::GetAssemblyName(BSTR* pszAssemblyName)
+HRESULT STDMETHODCALLTYPE TypeName::GetAssemblyName(BSTR* pszAssemblyName)
{
CONTRACTL
{
diff --git a/src/vm/typeparse.h b/src/vm/typeparse.h
index bf5b010a62..66cbd86282 100644
--- a/src/vm/typeparse.h
+++ b/src/vm/typeparse.h
@@ -59,13 +59,13 @@ public:
static HRESULT CreateObject(REFIID riid, void **ppUnk);
public:
- virtual HRESULT __stdcall QueryInterface(REFIID riid, void **ppUnk);
- virtual ULONG __stdcall AddRef() { LIMITED_METHOD_CONTRACT; m_count++; return m_count; }
- virtual ULONG __stdcall Release() { LIMITED_METHOD_CONTRACT; SUPPORTS_DAC_HOST_ONLY; m_count--; ULONG count = m_count; if (count == 0) delete this; return count; }
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppUnk);
+ virtual ULONG STDMETHODCALLTYPE AddRef() { LIMITED_METHOD_CONTRACT; m_count++; return m_count; }
+ virtual ULONG STDMETHODCALLTYPE Release() { LIMITED_METHOD_CONTRACT; SUPPORTS_DAC_HOST_ONLY; m_count--; ULONG count = m_count; if (count == 0) delete this; return count; }
public:
- virtual HRESULT __stdcall ParseTypeName(LPCWSTR szName, DWORD* pError, ITypeName** ppTypeName);
- virtual HRESULT __stdcall GetTypeNameBuilder(ITypeNameBuilder** ppTypeBuilder);
+ virtual HRESULT STDMETHODCALLTYPE ParseTypeName(LPCWSTR szName, DWORD* pError, ITypeName** ppTypeName);
+ virtual HRESULT STDMETHODCALLTYPE GetTypeNameBuilder(ITypeNameBuilder** ppTypeBuilder);
public:
TypeNameFactory() : m_count(0)
@@ -278,18 +278,18 @@ private:
friend class TypeName::TypeNameParser;
public:
- virtual HRESULT __stdcall QueryInterface(REFIID riid, void **ppUnk);
- virtual ULONG __stdcall AddRef();
- virtual ULONG __stdcall Release();
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppUnk);
+ virtual ULONG STDMETHODCALLTYPE AddRef();
+ virtual ULONG STDMETHODCALLTYPE Release();
public:
- virtual HRESULT __stdcall GetNameCount(DWORD* pCount);
- virtual HRESULT __stdcall GetNames(DWORD count, BSTR* rgbszNames, DWORD* pFetched);
- virtual HRESULT __stdcall GetTypeArgumentCount(DWORD* pCount);
- virtual HRESULT __stdcall GetTypeArguments(DWORD count, ITypeName** rgpArguments, DWORD* pFetched);
- virtual HRESULT __stdcall GetModifierLength(DWORD* pCount);
- virtual HRESULT __stdcall GetModifiers(DWORD count, DWORD* rgModifiers, DWORD* pFetched);
- virtual HRESULT __stdcall GetAssemblyName(BSTR* rgbszAssemblyNames);
+ virtual HRESULT STDMETHODCALLTYPE GetNameCount(DWORD* pCount);
+ virtual HRESULT STDMETHODCALLTYPE GetNames(DWORD count, BSTR* rgbszNames, DWORD* pFetched);
+ virtual HRESULT STDMETHODCALLTYPE GetTypeArgumentCount(DWORD* pCount);
+ virtual HRESULT STDMETHODCALLTYPE GetTypeArguments(DWORD count, ITypeName** rgpArguments, DWORD* pFetched);
+ virtual HRESULT STDMETHODCALLTYPE GetModifierLength(DWORD* pCount);
+ virtual HRESULT STDMETHODCALLTYPE GetModifiers(DWORD count, DWORD* rgModifiers, DWORD* pFetched);
+ virtual HRESULT STDMETHODCALLTYPE GetAssemblyName(BSTR* rgbszAssemblyNames);
public:
TypeName(LPCWSTR szTypeName, DWORD* pError) : m_bIsGenericArgument(FALSE), m_count(0)
diff --git a/src/vm/typestring.cpp b/src/vm/typestring.cpp
index ba103c42fa..7f5393575d 100644
--- a/src/vm/typestring.cpp
+++ b/src/vm/typestring.cpp
@@ -1415,7 +1415,7 @@ bool TypeString::ContainsReservedChar(LPCWSTR pTypeName)
return false;
}
-HRESULT __stdcall TypeNameBuilderWrapper::QueryInterface(REFIID riid, void **ppUnk)
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::QueryInterface(REFIID riid, void **ppUnk)
{
CONTRACTL
{
@@ -1439,7 +1439,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::QueryInterface(REFIID riid, void **ppU
return S_OK;
}
-ULONG __stdcall TypeNameBuilderWrapper::AddRef()
+ULONG STDMETHODCALLTYPE TypeNameBuilderWrapper::AddRef()
{
CONTRACTL
{
@@ -1453,7 +1453,7 @@ ULONG __stdcall TypeNameBuilderWrapper::AddRef()
return InterlockedIncrement(&m_ref);
}
-ULONG __stdcall TypeNameBuilderWrapper::Release()
+ULONG STDMETHODCALLTYPE TypeNameBuilderWrapper::Release()
{
CONTRACTL
{
@@ -1479,7 +1479,7 @@ ULONG __stdcall TypeNameBuilderWrapper::Release()
}
-HRESULT __stdcall TypeNameBuilderWrapper::OpenGenericArguments()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::OpenGenericArguments()
{
CONTRACTL
{
@@ -1496,7 +1496,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::OpenGenericArguments()
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::CloseGenericArguments()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::CloseGenericArguments()
{
CONTRACTL
{
@@ -1513,7 +1513,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::CloseGenericArguments()
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::OpenGenericArgument()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::OpenGenericArgument()
{
CONTRACTL
{
@@ -1530,7 +1530,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::OpenGenericArgument()
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::CloseGenericArgument()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::CloseGenericArgument()
{
CONTRACTL
{
@@ -1547,7 +1547,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::CloseGenericArgument()
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::AddName(LPCWSTR szName)
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::AddName(LPCWSTR szName)
{
CONTRACTL
{
@@ -1564,7 +1564,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::AddName(LPCWSTR szName)
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::AddPointer()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::AddPointer()
{
CONTRACTL
{
@@ -1581,7 +1581,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::AddPointer()
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::AddByRef()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::AddByRef()
{
CONTRACTL
{
@@ -1598,7 +1598,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::AddByRef()
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::AddSzArray()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::AddSzArray()
{
CONTRACTL
{
@@ -1615,7 +1615,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::AddSzArray()
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::AddArray(DWORD rank)
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::AddArray(DWORD rank)
{
CONTRACTL
{
@@ -1632,7 +1632,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::AddArray(DWORD rank)
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::AddAssemblySpec(LPCWSTR szAssemblySpec)
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::AddAssemblySpec(LPCWSTR szAssemblySpec)
{
CONTRACTL
{
@@ -1649,7 +1649,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::AddAssemblySpec(LPCWSTR szAssemblySpec
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::ToString(BSTR* pszStringRepresentation)
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::ToString(BSTR* pszStringRepresentation)
{
WRAPPER_NO_CONTRACT;
@@ -1660,7 +1660,7 @@ HRESULT __stdcall TypeNameBuilderWrapper::ToString(BSTR* pszStringRepresentation
return hr;
}
-HRESULT __stdcall TypeNameBuilderWrapper::Clear()
+HRESULT STDMETHODCALLTYPE TypeNameBuilderWrapper::Clear()
{
CONTRACTL
{
diff --git a/src/vm/typestring.h b/src/vm/typestring.h
index 84a8e40447..e9b032f8f2 100644
--- a/src/vm/typestring.h
+++ b/src/vm/typestring.h
@@ -153,22 +153,22 @@ private:
class TypeNameBuilderWrapper : public ITypeNameBuilder
{
public:
- virtual HRESULT __stdcall QueryInterface(REFIID riid, void **ppUnk);
- virtual ULONG __stdcall AddRef();
- virtual ULONG __stdcall Release();
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppUnk);
+ virtual ULONG STDMETHODCALLTYPE AddRef();
+ virtual ULONG STDMETHODCALLTYPE Release();
- virtual HRESULT __stdcall OpenGenericArguments();
- virtual HRESULT __stdcall CloseGenericArguments();
- virtual HRESULT __stdcall OpenGenericArgument();
- virtual HRESULT __stdcall CloseGenericArgument();
- virtual HRESULT __stdcall AddName(LPCWSTR szName);
- virtual HRESULT __stdcall AddPointer();
- virtual HRESULT __stdcall AddByRef();
- virtual HRESULT __stdcall AddSzArray();
- virtual HRESULT __stdcall AddArray(DWORD rank);
- virtual HRESULT __stdcall AddAssemblySpec(LPCWSTR szAssemblySpec);
- virtual HRESULT __stdcall ToString(BSTR* pszStringRepresentation);
- virtual HRESULT __stdcall Clear();
+ virtual HRESULT STDMETHODCALLTYPE OpenGenericArguments();
+ virtual HRESULT STDMETHODCALLTYPE CloseGenericArguments();
+ virtual HRESULT STDMETHODCALLTYPE OpenGenericArgument();
+ virtual HRESULT STDMETHODCALLTYPE CloseGenericArgument();
+ virtual HRESULT STDMETHODCALLTYPE AddName(LPCWSTR szName);
+ virtual HRESULT STDMETHODCALLTYPE AddPointer();
+ virtual HRESULT STDMETHODCALLTYPE AddByRef();
+ virtual HRESULT STDMETHODCALLTYPE AddSzArray();
+ virtual HRESULT STDMETHODCALLTYPE AddArray(DWORD rank);
+ virtual HRESULT STDMETHODCALLTYPE AddAssemblySpec(LPCWSTR szAssemblySpec);
+ virtual HRESULT STDMETHODCALLTYPE ToString(BSTR* pszStringRepresentation);
+ virtual HRESULT STDMETHODCALLTYPE Clear();
TypeNameBuilderWrapper() : m_ref(0) { WRAPPER_NO_CONTRACT; }
virtual ~TypeNameBuilderWrapper() {}