include: Move the DEFINE_REGS_ENTRYPOINT macros to the dlls that use it.

This commit is contained in:
Alexandre Julliard 2008-12-27 19:47:46 +01:00
parent 0ce0af5f16
commit 3ece9e9002
3 changed files with 26 additions and 16 deletions

View File

@ -143,4 +143,15 @@ extern struct winedos_exports
/* returns directory handle for named objects */ /* returns directory handle for named objects */
extern HANDLE get_BaseNamedObjects_handle(void); extern HANDLE get_BaseNamedObjects_handle(void);
/* Register functions */
#ifdef __i386__
#define DEFINE_REGS_ENTRYPOINT( name, args, pop_args ) \
__ASM_GLOBAL_FUNC( name, \
"pushl %eax\n\t" \
"call " __ASM_NAME("__wine_call_from_32_regs") "\n\t" \
".long " __ASM_NAME("__regs_") #name "-.\n\t" \
".byte " #args "," #pop_args )
#endif
#endif #endif

View File

@ -146,6 +146,10 @@ extern void VIRTUAL_SetForceExec( BOOL enable );
extern void VIRTUAL_UseLargeAddressSpace(void); extern void VIRTUAL_UseLargeAddressSpace(void);
extern struct _KUSER_SHARED_DATA *user_shared_data; extern struct _KUSER_SHARED_DATA *user_shared_data;
/* completion */
extern NTSTATUS NTDLL_AddCompletion( HANDLE hFile, ULONG_PTR CompletionValue,
NTSTATUS CompletionStatus, ULONG Information );
/* code pages */ /* code pages */
extern int ntdll_umbstowcs(DWORD flags, const char* src, int srclen, WCHAR* dst, int dstlen); extern int ntdll_umbstowcs(DWORD flags, const char* src, int srclen, WCHAR* dst, int dstlen);
extern int ntdll_wcstoumbs(DWORD flags, const WCHAR* src, int srclen, char* dst, int dstlen, extern int ntdll_wcstoumbs(DWORD flags, const WCHAR* src, int srclen, char* dst, int dstlen,
@ -210,8 +214,16 @@ static inline struct ntdll_thread_regs *ntdll_get_thread_regs(void)
return (struct ntdll_thread_regs *)NtCurrentTeb()->SpareBytes1; return (struct ntdll_thread_regs *)NtCurrentTeb()->SpareBytes1;
} }
/* Completion */ /* Register functions */
extern NTSTATUS NTDLL_AddCompletion( HANDLE hFile, ULONG_PTR CompletionValue,
NTSTATUS CompletionStatus, ULONG Information ); #ifdef __i386__
#define DEFINE_REGS_ENTRYPOINT( name, args, pop_args ) \
__ASM_GLOBAL_FUNC( name, \
"pushl %eax\n\t" \
"call " __ASM_NAME("__wine_call_from_32_regs") "\n\t" \
".long " __ASM_NAME("__regs_") #name "-.\n\t" \
".byte " #args "," #pop_args )
/* FIXME: add support for other CPUs */
#endif
#endif #endif

View File

@ -224,19 +224,6 @@ struct statvfs
#endif /* __GNUC__ */ #endif /* __GNUC__ */
/* Register functions */
#ifdef __i386__
#define DEFINE_REGS_ENTRYPOINT( name, args, pop_args ) \
__ASM_GLOBAL_FUNC( name, \
"pushl %eax\n\t" \
"call " __ASM_NAME("__wine_call_from_32_regs") "\n\t" \
".long " __ASM_NAME("__regs_") #name "-.\n\t" \
".byte " #args "," #pop_args )
/* FIXME: add support for other CPUs */
#endif /* __i386__ */
/**************************************************************** /****************************************************************
* Function definitions (only when using libwine_port) * Function definitions (only when using libwine_port)
*/ */