Use __forceinline so -O0 does not generate call references

git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6251 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
Jonathan Yong 2013-09-09 13:42:59 +00:00
parent 38b7c7e452
commit 180f808e87
2 changed files with 6 additions and 6 deletions

View File

@ -23178,7 +23178,7 @@ void __RPC_STUB INamespaceWalk_GetIDArrayResult_Stub(
#endif /* __INamespaceWalk_INTERFACE_DEFINED__ */
__inline void FreeIDListArray(PIDLIST_RELATIVE *ppidls, UINT cItems) {
__forceinline void FreeIDListArray(PIDLIST_RELATIVE *ppidls, UINT cItems) {
UINT i;
for (i = 0; i < cItems; i++) {
CoTaskMemFree(ppidls[i]);
@ -23186,13 +23186,13 @@ void __RPC_STUB INamespaceWalk_GetIDArrayResult_Stub(
CoTaskMemFree(ppidls);
}
#if defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)
__inline void FreeIDListArrayFull(PIDLIST_ABSOLUTE *ppidls, UINT cItems) {
__forceinline void FreeIDListArrayFull(PIDLIST_ABSOLUTE *ppidls, UINT cItems) {
UINT i;
for (i = 0; i < cItems; i++)
CoTaskMemFree(ppidls[i]);
CoTaskMemFree(ppidls);
}
__inline void FreeIDListArrayChild(PITEMID_CHILD *ppidls, UINT cItems) {
__forceinline void FreeIDListArrayChild(PITEMID_CHILD *ppidls, UINT cItems) {
UINT i;
for (i = 0; i < cItems; i++)
CoTaskMemFree(ppidls[i]);

View File

@ -2468,7 +2468,7 @@ cpp_quote("")
}
cpp_quote("")
cpp_quote(" __inline void FreeIDListArray(PIDLIST_RELATIVE *ppidls, UINT cItems) {")
cpp_quote(" __forceinline void FreeIDListArray(PIDLIST_RELATIVE *ppidls, UINT cItems) {")
cpp_quote(" UINT i;")
cpp_quote(" for (i = 0; i < cItems; i++) {")
cpp_quote(" CoTaskMemFree(ppidls[i]);")
@ -2476,13 +2476,13 @@ cpp_quote(" }")
cpp_quote(" CoTaskMemFree(ppidls);")
cpp_quote(" }")
cpp_quote("#if defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)")
cpp_quote(" __inline void FreeIDListArrayFull(PIDLIST_ABSOLUTE *ppidls, UINT cItems) {")
cpp_quote(" __forceinline void FreeIDListArrayFull(PIDLIST_ABSOLUTE *ppidls, UINT cItems) {")
cpp_quote(" UINT i;")
cpp_quote(" for (i = 0; i < cItems; i++)")
cpp_quote(" CoTaskMemFree(ppidls[i]);")
cpp_quote(" CoTaskMemFree(ppidls);")
cpp_quote(" }")
cpp_quote(" __inline void FreeIDListArrayChild(PITEMID_CHILD *ppidls, UINT cItems) {")
cpp_quote(" __forceinline void FreeIDListArrayChild(PITEMID_CHILD *ppidls, UINT cItems) {")
cpp_quote(" UINT i;")
cpp_quote(" for (i = 0; i < cItems; i++)")
cpp_quote(" CoTaskMemFree(ppidls[i]);")