Alexandre Julliard : include: Move the DEFINE_REGS_ENTRYPOINT macros to the dlls that use it.
Alexandre Julliard
julliard at winehq.org
Sat Dec 27 13:45:17 CST 2008
Module: wine
Branch: master
Commit: 3ece9e9002bdfd80aa24627cd495a6b0639e87c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3ece9e9002bdfd80aa24627cd495a6b0639e87c6
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Dec 27 19:47:46 2008 +0100
include: Move the DEFINE_REGS_ENTRYPOINT macros to the dlls that use it.
---
dlls/kernel32/kernel_private.h | 11 +++++++++++
dlls/ntdll/ntdll_misc.h | 18 +++++++++++++++---
include/wine/port.h | 13 -------------
3 files changed, 26 insertions(+), 16 deletions(-)
diff --git a/dlls/kernel32/kernel_private.h b/dlls/kernel32/kernel_private.h
index f83b6c3..18d71b5 100644
--- a/dlls/kernel32/kernel_private.h
+++ b/dlls/kernel32/kernel_private.h
@@ -143,4 +143,15 @@ extern struct winedos_exports
/* returns directory handle for named objects */
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
diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h
index 4474f2f..ced68d9 100644
--- a/dlls/ntdll/ntdll_misc.h
+++ b/dlls/ntdll/ntdll_misc.h
@@ -146,6 +146,10 @@ extern void VIRTUAL_SetForceExec( BOOL enable );
extern void VIRTUAL_UseLargeAddressSpace(void);
extern struct _KUSER_SHARED_DATA *user_shared_data;
+/* completion */
+extern NTSTATUS NTDLL_AddCompletion( HANDLE hFile, ULONG_PTR CompletionValue,
+ NTSTATUS CompletionStatus, ULONG Information );
+
/* code pages */
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,
@@ -210,8 +214,16 @@ static inline struct ntdll_thread_regs *ntdll_get_thread_regs(void)
return (struct ntdll_thread_regs *)NtCurrentTeb()->SpareBytes1;
}
-/* Completion */
-extern NTSTATUS NTDLL_AddCompletion( HANDLE hFile, ULONG_PTR CompletionValue,
- NTSTATUS CompletionStatus, ULONG Information );
+/* 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
#endif
diff --git a/include/wine/port.h b/include/wine/port.h
index e445c08..817f02b 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -224,19 +224,6 @@ struct statvfs
#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)
*/
More information about the wine-cvs
mailing list