]> pd.if.org Git - pdclib/blobdiff - functions/stdio/funlockfile.c
dos2unix
[pdclib] / functions / stdio / funlockfile.c
index 4e9ed045f4c12df547721cd8f138f092888565cc..98a375c971d051273f8cb6ac3a88eb503ca1c105 100644 (file)
@@ -1,38 +1,38 @@
-/* funlockfile( FILE * )\r
-\r
-   This file is part of the Public Domain C Library (PDCLib).\r
-   Permission is granted to use, modify, and / or redistribute at will.\r
-*/\r
-\r
-#include <stdio.h>\r
-#include <stdarg.h>\r
-\r
-#ifndef REGTEST\r
-#include "_PDCLIB_io.h"\r
-#include <threads.h>\r
-#include <stdlib.h>\r
-\r
-void _PDCLIB_funlockfile( FILE * file )\r
-{\r
-    int res = mtx_unlock( &file->lock );\r
-    switch(res) {\r
-        case thrd_success:\r
-            return;\r
-\r
-        default:\r
-            abort();\r
-    }\r
-}\r
-\r
-#endif\r
-\r
-#ifdef TEST\r
-#include "_PDCLIB_test.h"\r
-\r
-int main( void )\r
-{\r
-    // Not tested here - tested by other stdio test drivers\r
-    return TEST_RESULTS;\r
-}\r
-\r
-#endif\r
+/* funlockfile( FILE * )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <stdio.h>
+#include <stdarg.h>
+
+#ifndef REGTEST
+#include "_PDCLIB_io.h"
+#include <threads.h>
+#include <stdlib.h>
+
+void _PDCLIB_funlockfile( FILE * file )
+{
+    int res = mtx_unlock( &file->lock );
+    switch(res) {
+        case thrd_success:
+            return;
+
+        default:
+            abort();
+    }
+}
+
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    // Not tested here - tested by other stdio test drivers
+    return TEST_RESULTS;
+}
+
+#endif