Alexandre Julliard : msvcrt: Mark function that are only called from assembly as hidden.

Alexandre Julliard julliard at winehq.org
Tue Jul 25 16:11:26 CDT 2017


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jul 25 11:49:07 2017 +0200

msvcrt: Mark function that are only called from assembly as hidden.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/except_i386.c | 6 +++---
 dlls/msvcrt/misc.c        | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msvcrt/except_i386.c b/dlls/msvcrt/except_i386.c
index f777ba6..0400ce5 100644
--- a/dlls/msvcrt/except_i386.c
+++ b/dlls/msvcrt/except_i386.c
@@ -135,7 +135,7 @@ typedef struct
 DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame,
                                PCONTEXT context, EXCEPTION_REGISTRATION_RECORD** dispatch,
                                const cxx_function_descr *descr,
-                               EXCEPTION_REGISTRATION_RECORD* nested_frame, int nested_trylevel );
+                               EXCEPTION_REGISTRATION_RECORD* nested_frame, int nested_trylevel ) DECLSPEC_HIDDEN;
 
 /* call a function with a given ebp */
 static inline void *call_ebp_func( void *func, void *ebp )
@@ -1054,7 +1054,7 @@ __ASM_GLOBAL_FUNC( longjmp_set_regs,
  *		_setjmp (MSVCRT.@)
  */
 DEFINE_SETJMP_ENTRYPOINT(MSVCRT__setjmp)
-int CDECL __regs_MSVCRT__setjmp(struct MSVCRT___JUMP_BUFFER *jmp)
+int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp(struct MSVCRT___JUMP_BUFFER *jmp)
 {
     jmp->Registration = (unsigned long)NtCurrentTeb()->Tib.ExceptionList;
     if (jmp->Registration == ~0UL)
@@ -1071,7 +1071,7 @@ int CDECL __regs_MSVCRT__setjmp(struct MSVCRT___JUMP_BUFFER *jmp)
  *		_setjmp3 (MSVCRT.@)
  */
 DEFINE_SETJMP_ENTRYPOINT( MSVCRT__setjmp3 )
-int CDECL __regs_MSVCRT__setjmp3(struct MSVCRT___JUMP_BUFFER *jmp, int nb_args, ...)
+int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp3(struct MSVCRT___JUMP_BUFFER *jmp, int nb_args, ...)
 {
     jmp->Cookie = MSVCRT_JMP_MAGIC;
     jmp->UnwindFunc = 0;
diff --git a/dlls/msvcrt/misc.c b/dlls/msvcrt/misc.c
index 9e38364..b9dadac 100644
--- a/dlls/msvcrt/misc.c
+++ b/dlls/msvcrt/misc.c
@@ -237,7 +237,7 @@ __ASM_GLOBAL_FUNC(_chkesp,
                   __ASM_CFI(".cfi_same_value %ebp\n\t")
                   "ret")
 
-void CDECL MSVCRT_chkesp_fail(void)
+void CDECL DECLSPEC_HIDDEN MSVCRT_chkesp_fail(void)
 {
   ERR("Stack pointer incorrect after last function call - Bad prototype/spec entry?\n");
   DebugBreak();




More information about the wine-cvs mailing list