msvcrt: Make an internal function static, avoid a prototype

Dmitry Timoshkov dmitry at codeweavers.com
Mon Dec 25 02:41:14 CST 2006


Hello,

Changelog:
    msvcrt: Make an internal function static, avoid a prototype.

---
 dlls/msvcrt/main.c |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/dlls/msvcrt/main.c b/dlls/msvcrt/main.c
index 50ef5de..fa6affe 100644
--- a/dlls/msvcrt/main.c
+++ b/dlls/msvcrt/main.c
@@ -28,7 +28,18 @@ DWORD msvcrt_tls_index;
 
 static inline BOOL msvcrt_init_tls(void);
 static inline BOOL msvcrt_free_tls(void);
-const char* msvcrt_get_reason(DWORD reason);
+
+static const char* msvcrt_get_reason(DWORD reason)
+{
+  switch (reason)
+  {
+  case DLL_PROCESS_ATTACH: return "DLL_PROCESS_ATTACH";
+  case DLL_PROCESS_DETACH: return "DLL_PROCESS_DETACH";
+  case DLL_THREAD_ATTACH:  return "DLL_THREAD_ATTACH";
+  case DLL_THREAD_DETACH:  return "DLL_THREAD_DETACH";
+  }
+  return "UNKNOWN";
+}
 
 /*********************************************************************
  *                  Init
@@ -106,19 +117,6 @@ static inline BOOL msvcrt_free_tls(void)
   return TRUE;
 }
 
-const char* msvcrt_get_reason(DWORD reason)
-{
-  switch (reason)
-  {
-  case DLL_PROCESS_ATTACH: return "DLL_PROCESS_ATTACH";
-  case DLL_PROCESS_DETACH: return "DLL_PROCESS_DETACH";
-  case DLL_THREAD_ATTACH:  return "DLL_THREAD_ATTACH";
-  case DLL_THREAD_DETACH:  return "DLL_THREAD_DETACH";
-  }
-  return "UNKNOWN";
-}
-
-
 /*********************************************************************
  *		$I10_OUTPUT (MSVCRT.@)
  * Function not really understood but needed to make the DLL work
-- 
1.4.4.2






More information about the wine-patches mailing list