]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_lock.c
dos2unix
[pdclib] / opt / nothread / mtx_lock.c
index cebc07d506551e6b80ae4192d4e5276c6e6d6b2e..2c5a26df3bde69ac94390d356cfbfb94c98946c8 100644 (file)
@@ -1,19 +1,19 @@
-#ifndef REGTEST\r
-#include <threads.h>\r
-\r
-int mtx_lock(mtx_t *mtx)\r
-{\r
-       (*mtx)++;\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
-#endif\r
+#ifndef REGTEST
+#include <threads.h>
+
+int mtx_lock(mtx_t *mtx)
+{
+       (*mtx)++;
+       return thrd_success;
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif