Jacek Caban : msvcp90: Use __ASM_BLOCK_BEGIN and __ASM_BLOCK_END macros.

Alexandre Julliard julliard at winehq.org
Fri Apr 24 15:11:39 CDT 2020


Module: wine
Branch: master
Commit: ddd4a7c3fb4f3ecd32927d69023aec59ef11c495
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ddd4a7c3fb4f3ecd32927d69023aec59ef11c495

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Apr 24 20:10:36 2020 +0200

msvcp90: Use __ASM_BLOCK_BEGIN and __ASM_BLOCK_END macros.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcp90/exception.c | 8 ++------
 dlls/msvcp90/ios.c       | 8 ++------
 dlls/msvcp90/locale.c    | 8 ++------
 dlls/msvcp90/misc.c      | 8 ++------
 4 files changed, 8 insertions(+), 24 deletions(-)

diff --git a/dlls/msvcp90/exception.c b/dlls/msvcp90/exception.c
index e75b8cc729..15a6548b21 100644
--- a/dlls/msvcp90/exception.c
+++ b/dlls/msvcp90/exception.c
@@ -1021,9 +1021,7 @@ void __cdecl __ExceptionPtrDestroy(exception_ptr *ep)
 #define EXCEPTION_VTABLE(name,funcs) __ASM_VTABLE(name,funcs VTABLE_ADD_FUNC(MSVCP_exception__Doraise))
 #endif
 
-#ifndef __GNUC__
-void __asm_dummy_vtables(void) {
-#endif
+__ASM_BLOCK_BEGIN(exception_vtables)
     __ASM_VTABLE(type_info,
             VTABLE_ADD_FUNC(MSVCP_type_info_vector_dtor));
     EXCEPTION_VTABLE(exception,
@@ -1066,9 +1064,7 @@ void __asm_dummy_vtables(void) {
     EXCEPTION_VTABLE(range_error,
             VTABLE_ADD_FUNC(MSVCP_runtime_error_vector_dtor)
             VTABLE_ADD_FUNC(MSVCP_runtime_error_what));
-#ifndef __GNUC__
-}
-#endif
+__ASM_BLOCK_END
 
 /* Internal: throws selected exception */
 void throw_exception(exception_type et, const char *str)
diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c
index 8513965dd7..32dce89fd4 100644
--- a/dlls/msvcp90/ios.c
+++ b/dlls/msvcp90/ios.c
@@ -756,9 +756,7 @@ DEFINE_RTTI_DATA8(strstream, sizeof(strstream),
         &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
         "?AVstrstream at std@@")
 
-#ifndef __GNUC__
-void __asm_dummy_vtables(void) {
-#endif
+__ASM_BLOCK_BEGIN(ios_vtables)
     __ASM_VTABLE(iosb,
             VTABLE_ADD_FUNC(iosb_vector_dtor));
     __ASM_VTABLE(ios_base,
@@ -1181,9 +1179,7 @@ void __asm_dummy_vtables(void) {
             VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2)
 #endif
             );
-#ifndef __GNUC__
-}
-#endif
+__ASM_BLOCK_END
 
 /* ?setp@?$basic_streambuf at DU?$char_traits at D@std@@@std@@IAEXPAD00 at Z */
 /* ?setp@?$basic_streambuf at DU?$char_traits at D@std@@@std@@IEAAXPEAD00 at Z */
diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c
index 9293e0c9ac..dec87c0a4e 100644
--- a/dlls/msvcp90/locale.c
+++ b/dlls/msvcp90/locale.c
@@ -12737,9 +12737,7 @@ DEFINE_RTTI_DATA1(time_base, 0, &locale_facet_rtti_base_descriptor, ".?AUtime_ba
 DEFINE_RTTI_DATA2(time_get_char, 0, &time_base_rtti_base_descriptor, &locale_facet_rtti_base_descriptor, ".?AV?$time_get at DV?$istreambuf_iterator at DU?$char_traits at D@std@@@std@@@std@@")
 DEFINE_RTTI_DATA2(time_get_wchar, 0, &time_base_rtti_base_descriptor, &locale_facet_rtti_base_descriptor, ".?AV?$time_get at _WV?$istreambuf_iterator at _WU?$char_traits at _W@std@@@std@@@std@@")
 
-#ifndef __GNUC__
-void __asm_dummy_vtables(void) {
-#endif
+__ASM_BLOCK_BEGIN(locale_vtables)
     __ASM_VTABLE(_Facet_base,
             VTABLE_ADD_FUNC(locale_facet_vector_dtor)
             VTABLE_ADD_FUNC(locale_facet__Incref)
@@ -13104,9 +13102,7 @@ void __asm_dummy_vtables(void) {
             VTABLE_ADD_FUNC(time_get_wchar_do_get)
 #endif
             );
-#ifndef __GNUC__
-}
-#endif
+__ASM_BLOCK_END
 
 void init_locale(void *base)
 {
diff --git a/dlls/msvcp90/misc.c b/dlls/msvcp90/misc.c
index 810a0bfbc0..acb13af51c 100644
--- a/dlls/msvcp90/misc.c
+++ b/dlls/msvcp90/misc.c
@@ -2391,9 +2391,7 @@ void __thiscall _Concurrent_vector_base_v4__Internal_swap(
 }
 #endif
 
-#ifndef __GNUC__
-void __asm_dummy_vtables(void) {
-#endif
+__ASM_BLOCK_BEGIN(vtables)
 #if _MSVCP_VER == 100
     __ASM_VTABLE(iostream_category,
             VTABLE_ADD_FUNC(custom_category_vector_dtor)
@@ -2434,9 +2432,7 @@ void __asm_dummy_vtables(void) {
     __ASM_VTABLE(_Pad,
             VTABLE_ADD_FUNC(_Pad__Go));
 #endif
-#ifndef __GNUC__
-}
-#endif
+__ASM_BLOCK_END
 
 /*********************************************************************
  *  __crtInitializeCriticalSectionEx (MSVCP140.@)




More information about the wine-cvs mailing list