Commit e9003720 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msvcrt: Remove DECLSPEC_HIDDEN usage.

parent f078d5b4
...@@ -315,8 +315,8 @@ typedef struct ...@@ -315,8 +315,8 @@ typedef struct
LONG *ref; /* not binary compatible with native msvcr100 */ LONG *ref; /* not binary compatible with native msvcr100 */
} exception_ptr; } exception_ptr;
void throw_exception(const char*) DECLSPEC_HIDDEN; void throw_exception(const char*);
void exception_ptr_from_record(exception_ptr*,EXCEPTION_RECORD*) DECLSPEC_HIDDEN; void exception_ptr_from_record(exception_ptr*,EXCEPTION_RECORD*);
void __cdecl __ExceptionPtrCreate(exception_ptr*); void __cdecl __ExceptionPtrCreate(exception_ptr*);
void __cdecl __ExceptionPtrDestroy(exception_ptr*); void __cdecl __ExceptionPtrDestroy(exception_ptr*);
......
...@@ -144,7 +144,7 @@ typedef struct ...@@ -144,7 +144,7 @@ typedef struct
DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame, DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame,
PCONTEXT context, EXCEPTION_REGISTRATION_RECORD** dispatch, PCONTEXT context, EXCEPTION_REGISTRATION_RECORD** dispatch,
const cxx_function_descr *descr, const cxx_function_descr *descr,
catch_func_nested_frame* nested_frame ) DECLSPEC_HIDDEN; catch_func_nested_frame* nested_frame );
/* call a copy constructor */ /* call a copy constructor */
extern void call_copy_ctor( void *func, void *this, void *src, int has_vbase ); extern void call_copy_ctor( void *func, void *this, void *src, int has_vbase );
...@@ -1025,7 +1025,7 @@ typedef void (__stdcall *MSVCRT_unwind_function)(const _JUMP_BUFFER *); ...@@ -1025,7 +1025,7 @@ typedef void (__stdcall *MSVCRT_unwind_function)(const _JUMP_BUFFER *);
* _setjmp (MSVCRT.@) * _setjmp (MSVCRT.@)
*/ */
DEFINE_SETJMP_ENTRYPOINT(MSVCRT__setjmp) DEFINE_SETJMP_ENTRYPOINT(MSVCRT__setjmp)
int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp(_JUMP_BUFFER *jmp) int CDECL __regs_MSVCRT__setjmp(_JUMP_BUFFER *jmp)
{ {
jmp->Registration = (unsigned long)NtCurrentTeb()->Tib.ExceptionList; jmp->Registration = (unsigned long)NtCurrentTeb()->Tib.ExceptionList;
if (jmp->Registration == ~0UL) if (jmp->Registration == ~0UL)
...@@ -1042,7 +1042,7 @@ int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp(_JUMP_BUFFER *jmp) ...@@ -1042,7 +1042,7 @@ int CDECL DECLSPEC_HIDDEN __regs_MSVCRT__setjmp(_JUMP_BUFFER *jmp)
* _setjmp3 (MSVCRT.@) * _setjmp3 (MSVCRT.@)
*/ */
DEFINE_SETJMP_ENTRYPOINT( MSVCRT__setjmp3 ) DEFINE_SETJMP_ENTRYPOINT( MSVCRT__setjmp3 )
int WINAPIV DECLSPEC_HIDDEN __regs_MSVCRT__setjmp3(_JUMP_BUFFER *jmp, int nb_args, ...) int WINAPIV __regs_MSVCRT__setjmp3(_JUMP_BUFFER *jmp, int nb_args, ...)
{ {
jmp->Cookie = MSVCRT_JMP_MAGIC; jmp->Cookie = MSVCRT_JMP_MAGIC;
jmp->UnwindFunc = 0; jmp->UnwindFunc = 0;
......
...@@ -236,7 +236,7 @@ __ASM_GLOBAL_FUNC(_chkesp, ...@@ -236,7 +236,7 @@ __ASM_GLOBAL_FUNC(_chkesp,
__ASM_CFI(".cfi_same_value %ebp\n\t") __ASM_CFI(".cfi_same_value %ebp\n\t")
"ret") "ret")
void CDECL DECLSPEC_HIDDEN chkesp_fail(void) void CDECL chkesp_fail(void)
{ {
ERR("Stack pointer incorrect after last function call - Bad prototype/spec entry?\n"); ERR("Stack pointer incorrect after last function call - Bad prototype/spec entry?\n");
DebugBreak(); DebugBreak();
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#undef strncpy #undef strncpy
#undef wcsncpy #undef wcsncpy
extern BOOL sse2_supported DECLSPEC_HIDDEN; extern BOOL sse2_supported;
#define DBL80_MAX_10_EXP 4932 #define DBL80_MAX_10_EXP 4932
#define DBL80_MIN_10_EXP -4951 #define DBL80_MIN_10_EXP -4951
...@@ -128,7 +128,7 @@ void msvcrt_free_handler4(void); ...@@ -128,7 +128,7 @@ void msvcrt_free_handler4(void);
#endif #endif
/* TLS data */ /* TLS data */
extern DWORD msvcrt_tls_index DECLSPEC_HIDDEN; extern DWORD msvcrt_tls_index;
#define LOCALE_FREE 0x1 #define LOCALE_FREE 0x1
#define LOCALE_THREAD 0x2 #define LOCALE_THREAD 0x2
...@@ -184,20 +184,20 @@ struct __thread_data { ...@@ -184,20 +184,20 @@ struct __thread_data {
typedef struct __thread_data thread_data_t; typedef struct __thread_data thread_data_t;
extern thread_data_t *CDECL msvcrt_get_thread_data(void) DECLSPEC_HIDDEN; extern thread_data_t *CDECL msvcrt_get_thread_data(void);
BOOL locale_to_sname(const char*, unsigned short*, BOOL*, WCHAR*) DECLSPEC_HIDDEN; BOOL locale_to_sname(const char*, unsigned short*, BOOL*, WCHAR*);
extern _locale_t MSVCRT_locale DECLSPEC_HIDDEN; extern _locale_t MSVCRT_locale;
extern __lc_time_data cloc_time_data DECLSPEC_HIDDEN; extern __lc_time_data cloc_time_data;
extern unsigned int MSVCRT___lc_codepage; extern unsigned int MSVCRT___lc_codepage;
extern int MSVCRT___lc_collate_cp; extern int MSVCRT___lc_collate_cp;
extern WORD MSVCRT__ctype [257]; extern WORD MSVCRT__ctype [257];
extern BOOL initial_locale DECLSPEC_HIDDEN; extern BOOL initial_locale;
extern WORD *MSVCRT__pwctype; extern WORD *MSVCRT__pwctype;
void msvcrt_set_errno(int) DECLSPEC_HIDDEN; void msvcrt_set_errno(int);
#if _MSVCR_VER >= 80 #if _MSVCR_VER >= 80
void throw_bad_alloc(void) DECLSPEC_HIDDEN; void throw_bad_alloc(void);
#endif #endif
void __cdecl _purecall(void); void __cdecl _purecall(void);
...@@ -206,10 +206,10 @@ void __cdecl _amsg_exit(int errnum); ...@@ -206,10 +206,10 @@ void __cdecl _amsg_exit(int errnum);
extern char **MSVCRT__environ; extern char **MSVCRT__environ;
extern wchar_t **MSVCRT__wenviron; extern wchar_t **MSVCRT__wenviron;
extern char ** msvcrt_SnapshotOfEnvironmentA(char **) DECLSPEC_HIDDEN; extern char ** msvcrt_SnapshotOfEnvironmentA(char **);
extern wchar_t ** msvcrt_SnapshotOfEnvironmentW(wchar_t **) DECLSPEC_HIDDEN; extern wchar_t ** msvcrt_SnapshotOfEnvironmentW(wchar_t **);
wchar_t *msvcrt_wstrdupa(const char *) DECLSPEC_HIDDEN; wchar_t *msvcrt_wstrdupa(const char *);
extern unsigned int MSVCRT__commode; extern unsigned int MSVCRT__commode;
...@@ -224,31 +224,31 @@ typedef void* (__cdecl *malloc_func_t)(size_t); ...@@ -224,31 +224,31 @@ typedef void* (__cdecl *malloc_func_t)(size_t);
typedef void (__cdecl *free_func_t)(void*); typedef void (__cdecl *free_func_t)(void*);
/* Setup and teardown multi threaded locks */ /* Setup and teardown multi threaded locks */
extern void msvcrt_init_mt_locks(void) DECLSPEC_HIDDEN; extern void msvcrt_init_mt_locks(void);
extern void msvcrt_free_locks(void) DECLSPEC_HIDDEN; extern void msvcrt_free_locks(void);
extern void msvcrt_init_exception(void*) DECLSPEC_HIDDEN; extern void msvcrt_init_exception(void*);
extern BOOL msvcrt_init_locale(void) DECLSPEC_HIDDEN; extern BOOL msvcrt_init_locale(void);
extern void msvcrt_init_math(void*) DECLSPEC_HIDDEN; extern void msvcrt_init_math(void*);
extern void msvcrt_init_io(void) DECLSPEC_HIDDEN; extern void msvcrt_init_io(void);
extern void msvcrt_free_io(void) DECLSPEC_HIDDEN; extern void msvcrt_free_io(void);
extern void msvcrt_free_console(void) DECLSPEC_HIDDEN; extern void msvcrt_free_console(void);
extern void msvcrt_init_args(void) DECLSPEC_HIDDEN; extern void msvcrt_init_args(void);
extern void msvcrt_free_args(void) DECLSPEC_HIDDEN; extern void msvcrt_free_args(void);
extern void msvcrt_init_signals(void) DECLSPEC_HIDDEN; extern void msvcrt_init_signals(void);
extern void msvcrt_free_signals(void) DECLSPEC_HIDDEN; extern void msvcrt_free_signals(void);
extern void msvcrt_free_popen_data(void) DECLSPEC_HIDDEN; extern void msvcrt_free_popen_data(void);
extern BOOL msvcrt_init_heap(void) DECLSPEC_HIDDEN; extern BOOL msvcrt_init_heap(void);
extern void msvcrt_destroy_heap(void) DECLSPEC_HIDDEN; extern void msvcrt_destroy_heap(void);
extern void msvcrt_init_clock(void) DECLSPEC_HIDDEN; extern void msvcrt_init_clock(void);
#if _MSVCR_VER >= 100 #if _MSVCR_VER >= 100
extern void msvcrt_init_concurrency(void*) DECLSPEC_HIDDEN; extern void msvcrt_init_concurrency(void*);
extern void msvcrt_free_concurrency(void) DECLSPEC_HIDDEN; extern void msvcrt_free_concurrency(void);
extern void msvcrt_free_scheduler_thread(void) DECLSPEC_HIDDEN; extern void msvcrt_free_scheduler_thread(void);
#endif #endif
extern BOOL msvcrt_create_io_inherit_block(WORD*, BYTE**) DECLSPEC_HIDDEN; extern BOOL msvcrt_create_io_inherit_block(WORD*, BYTE**);
/* run-time error codes */ /* run-time error codes */
#define _RT_STACK 0 #define _RT_STACK 0
...@@ -299,14 +299,14 @@ extern FILE MSVCRT__iob[]; ...@@ -299,14 +299,14 @@ extern FILE MSVCRT__iob[];
#define _MAX__TIME64_T (((__time64_t)0x00000007 << 32) | 0x93406FFF) #define _MAX__TIME64_T (((__time64_t)0x00000007 << 32) | 0x93406FFF)
_locale_t CDECL get_current_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN; _locale_t CDECL get_current_locale_noalloc(_locale_t locale);
void CDECL free_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN; void CDECL free_locale_noalloc(_locale_t locale);
pthreadlocinfo CDECL get_locinfo(void) DECLSPEC_HIDDEN; pthreadlocinfo CDECL get_locinfo(void);
pthreadmbcinfo CDECL get_mbcinfo(void) DECLSPEC_HIDDEN; pthreadmbcinfo CDECL get_mbcinfo(void);
threadmbcinfo* create_mbcinfo(int, LCID, threadmbcinfo*) DECLSPEC_HIDDEN; threadmbcinfo* create_mbcinfo(int, LCID, threadmbcinfo*);
void free_locinfo(pthreadlocinfo) DECLSPEC_HIDDEN; void free_locinfo(pthreadlocinfo);
void free_mbcinfo(pthreadmbcinfo) DECLSPEC_HIDDEN; void free_mbcinfo(pthreadmbcinfo);
int __cdecl __crtLCMapStringA(LCID, DWORD, const char*, int, char*, int, unsigned int, int) DECLSPEC_HIDDEN; int __cdecl __crtLCMapStringA(LCID, DWORD, const char*, int, char*, int, unsigned int, int);
enum fpmod { enum fpmod {
FP_ROUND_ZERO, /* only used when dropped part contains only zeros */ FP_ROUND_ZERO, /* only used when dropped part contains only zeros */
...@@ -324,8 +324,8 @@ struct fpnum { ...@@ -324,8 +324,8 @@ struct fpnum {
enum fpmod mod; enum fpmod mod;
}; };
struct fpnum fpnum_parse(wchar_t (*)(void*), void (*)(void*), struct fpnum fpnum_parse(wchar_t (*)(void*), void (*)(void*),
void*, pthreadlocinfo, BOOL) DECLSPEC_HIDDEN; void*, pthreadlocinfo, BOOL);
int fpnum_double(struct fpnum*, double*) DECLSPEC_HIDDEN; int fpnum_double(struct fpnum*, double*);
/* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd) /* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
* #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0) * #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)
* #define MSVCRT_CHECK_PMT(x) ((x) ? TRUE : MSVCRT_INVALID_PMT(#x),FALSE) * #define MSVCRT_CHECK_PMT(x) ((x) ? TRUE : MSVCRT_INVALID_PMT(#x),FALSE)
...@@ -349,13 +349,13 @@ typedef union _printf_arg ...@@ -349,13 +349,13 @@ typedef union _printf_arg
} printf_arg; } printf_arg;
typedef printf_arg (*args_clbk)(void*, int, int, va_list*); typedef printf_arg (*args_clbk)(void*, int, int, va_list*);
int pf_printf_a(puts_clbk_a, void*, const char*, _locale_t, int pf_printf_a(puts_clbk_a, void*, const char*, _locale_t,
DWORD, args_clbk, void*, va_list*) DECLSPEC_HIDDEN; DWORD, args_clbk, void*, va_list*);
int pf_printf_w(puts_clbk_w, void*, const wchar_t*, _locale_t, int pf_printf_w(puts_clbk_w, void*, const wchar_t*, _locale_t,
DWORD, args_clbk, void*, va_list*) DECLSPEC_HIDDEN; DWORD, args_clbk, void*, va_list*);
int create_positional_ctx_a(void*, const char*, va_list) DECLSPEC_HIDDEN; int create_positional_ctx_a(void*, const char*, va_list);
int create_positional_ctx_w(void*, const wchar_t*, va_list) DECLSPEC_HIDDEN; int create_positional_ctx_w(void*, const wchar_t*, va_list);
printf_arg arg_clbk_valist(void*, int, int, va_list*) DECLSPEC_HIDDEN; printf_arg arg_clbk_valist(void*, int, int, va_list*);
printf_arg arg_clbk_positional(void*, int, int, va_list*) DECLSPEC_HIDDEN; printf_arg arg_clbk_positional(void*, int, int, va_list*);
extern char* __cdecl __unDName(char *,const char*,int,malloc_func_t,free_func_t,unsigned short int); extern char* __cdecl __unDName(char *,const char*,int,malloc_func_t,free_func_t,unsigned short int);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment