Michael Stefaniuc : msvcrt:
Move definition of 2 static inline functions up and remove the forward
declaration of those . Found by sparse.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 20 09:13:42 CDT 2007
Module: wine
Branch: master
Commit: 814ca1295acf7b1c2329e5e3a69b34bb3c7968d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=814ca1295acf7b1c2329e5e3a69b34bb3c7968d0
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Jun 19 22:49:04 2007 +0200
msvcrt: Move definition of 2 static inline functions up and remove the forward declaration of those. Found by sparse.
---
dlls/msvcrt/main.c | 47 ++++++++++++++++++++++-------------------------
1 files changed, 22 insertions(+), 25 deletions(-)
diff --git a/dlls/msvcrt/main.c b/dlls/msvcrt/main.c
index fa6affe..1edaa73 100644
--- a/dlls/msvcrt/main.c
+++ b/dlls/msvcrt/main.c
@@ -26,9 +26,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
/* Index to TLS */
DWORD msvcrt_tls_index;
-static inline BOOL msvcrt_init_tls(void);
-static inline BOOL msvcrt_free_tls(void);
-
static const char* msvcrt_get_reason(DWORD reason)
{
switch (reason)
@@ -41,6 +38,28 @@ static const char* msvcrt_get_reason(DWORD reason)
return "UNKNOWN";
}
+static inline BOOL msvcrt_init_tls(void)
+{
+ msvcrt_tls_index = TlsAlloc();
+
+ if (msvcrt_tls_index == TLS_OUT_OF_INDEXES)
+ {
+ ERR("TlsAlloc() failed!\n");
+ return FALSE;
+ }
+ return TRUE;
+}
+
+static inline BOOL msvcrt_free_tls(void)
+{
+ if (!TlsFree(msvcrt_tls_index))
+ {
+ ERR("TlsFree() failed!\n");
+ return FALSE;
+ }
+ return TRUE;
+}
+
/*********************************************************************
* Init
*/
@@ -95,28 +114,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE;
}
-static inline BOOL msvcrt_init_tls(void)
-{
- msvcrt_tls_index = TlsAlloc();
-
- if (msvcrt_tls_index == TLS_OUT_OF_INDEXES)
- {
- ERR("TlsAlloc() failed!\n");
- return FALSE;
- }
- return TRUE;
-}
-
-static inline BOOL msvcrt_free_tls(void)
-{
- if (!TlsFree(msvcrt_tls_index))
- {
- ERR("TlsFree() failed!\n");
- return FALSE;
- }
- return TRUE;
-}
-
/*********************************************************************
* $I10_OUTPUT (MSVCRT.@)
* Function not really understood but needed to make the DLL work
More information about the wine-cvs
mailing list