summaryrefslogtreecommitdiff
path: root/dll.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /dll.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'dll.c')
-rw-r--r--dll.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/dll.c b/dll.c
index 9c8d69d..d9c3176 100644
--- a/dll.c
+++ b/dll.c
@@ -54,14 +54,9 @@
* Dear c++: Please don't mangle this name. -thanks
*/
extern "C"
-#endif /* __cplusplus */
-
-BOOL WINAPI
-DllMain (
- HINSTANCE hinstDll,
- DWORD fdwReason,
- LPVOID lpvReserved
-)
+#endif /* __cplusplus */
+ BOOL WINAPI
+DllMain (HINSTANCE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
{
BOOL result = PTW32_TRUE;
@@ -69,26 +64,26 @@ DllMain (
{
case DLL_PROCESS_ATTACH:
- result = pthread_win32_process_attach_np();
+ result = pthread_win32_process_attach_np ();
break;
case DLL_THREAD_ATTACH:
/*
* A thread is being created
*/
- result = pthread_win32_thread_attach_np();
+ result = pthread_win32_thread_attach_np ();
break;
case DLL_THREAD_DETACH:
/*
* A thread is exiting cleanly
*/
- result = pthread_win32_thread_detach_np();
+ result = pthread_win32_thread_detach_np ();
break;
case DLL_PROCESS_DETACH:
- (void) pthread_win32_thread_detach_np();
- result = pthread_win32_process_detach_np();
+ (void) pthread_win32_thread_detach_np ();
+ result = pthread_win32_process_detach_np ();
break;
}
return (result);