]> pd.if.org Git - pdclib/blobdiff - platform/win32/functions/threads/mtx_init.c
dos2unix
[pdclib] / platform / win32 / functions / threads / mtx_init.c
index 72055519128933d52d93dcbfb3e3feb94d9bca02..b97b366c2a9c2430975ea497cf31fe64c0ddc89b 100644 (file)
@@ -1,29 +1,29 @@
-#ifndef REGTEST\r
-#include <threads.h>\r
-#include <windows.h>\r
-\r
-int mtx_init(mtx_t *mtx, int type)\r
-{\r
-    mtx->_WaitEvHandle = CreateEvent(NULL, \r
-        /* bManualReset*/   FALSE, \r
-        /* bInitialState*/  FALSE, \r
-        /* name*/           NULL);\r
-    if(mtx->_WaitEvHandle == NULL)\r
-        return thrd_error;\r
-    \r
-    mtx->_ThreadId     = 0;\r
-    mtx->_NestCount    = 0;;\r
-\r
-    return thrd_success;\r
-}\r
-#endif\r
-\r
-#ifdef TEST\r
-#include "_PDCLIB_test.h"\r
-\r
-int main( void )\r
-{\r
-    return TEST_RESULTS;\r
-}\r
-\r
+#ifndef REGTEST
+#include <threads.h>
+#include <windows.h>
+
+int mtx_init(mtx_t *mtx, int type)
+{
+    mtx->_WaitEvHandle = CreateEvent(NULL, 
+        /* bManualReset*/   FALSE, 
+        /* bInitialState*/  FALSE, 
+        /* name*/           NULL);
+    if(mtx->_WaitEvHandle == NULL)
+        return thrd_error;
+    
+    mtx->_ThreadId     = 0;
+    mtx->_NestCount    = 0;;
+
+    return thrd_success;
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
 #endif
\ No newline at end of file