]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/_PDCLIB_fileops.c
dos2unix
[pdclib] / platform / example / functions / _PDCLIB / _PDCLIB_fileops.c
index 1316cd6d691f85eec167c1910247993275484a93..bfe3d85b63196e148c62bc311c287f0f148c5983 100644 (file)
@@ -1,56 +1,56 @@
-/* _PDCLIB_fileops\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
-#ifndef REGTEST\r
-#include <stdio.h>\r
-#include <stdint.h>\r
-#include "_PDCLIB_glue.h"\r
-#include <errno.h>\r
-\r
-static bool readf( _PDCLIB_fd_t self, void * buf, size_t length, \r
-                   size_t * numBytesRead )\r
-{\r
-    errno = ENOTSUP;\r
-    return false;\r
-}\r
-\r
-static bool writef( _PDCLIB_fd_t self, const void * buf, size_t length, \r
-                   size_t * numBytesWritten )\r
-{\r
-    errno = ENOTSUP;\r
-    return false;\r
-}\r
-static bool seekf( _PDCLIB_fd_t self, int_fast64_t offset, int whence,\r
-    int_fast64_t* newPos )\r
-{\r
-    errno = ENOTSUP;\r
-    return false;\r
-}\r
-\r
-static void closef( _PDCLIB_fd_t self )\r
-{\r
-    errno = ENOTSUP;\r
-}\r
-\r
-const _PDCLIB_fileops_t _PDCLIB_fileops = {\r
-    .read  = readf,\r
-    .write = writef,\r
-    .seek  = seekf,\r
-    .close = closef,\r
-};\r
-\r
-#endif\r
-\r
-#ifdef TEST\r
-#include "_PDCLIB_test.h"\r
-\r
-int main( void )\r
-{\r
-    // Tested by stdio test cases\r
-    return TEST_RESULTS;\r
-}\r
-\r
-#endif\r
+/* _PDCLIB_fileops
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#ifndef REGTEST
+#include <stdio.h>
+#include <stdint.h>
+#include "_PDCLIB_glue.h"
+#include <errno.h>
+
+static bool readf( _PDCLIB_fd_t self, void * buf, size_t length, 
+                   size_t * numBytesRead )
+{
+    errno = ENOTSUP;
+    return false;
+}
+
+static bool writef( _PDCLIB_fd_t self, const void * buf, size_t length, 
+                   size_t * numBytesWritten )
+{
+    errno = ENOTSUP;
+    return false;
+}
+static bool seekf( _PDCLIB_fd_t self, int_fast64_t offset, int whence,
+    int_fast64_t* newPos )
+{
+    errno = ENOTSUP;
+    return false;
+}
+
+static void closef( _PDCLIB_fd_t self )
+{
+    errno = ENOTSUP;
+}
+
+const _PDCLIB_fileops_t _PDCLIB_fileops = {
+    .read  = readf,
+    .write = writef,
+    .seek  = seekf,
+    .close = closef,
+};
+
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    // Tested by stdio test cases
+    return TEST_RESULTS;
+}
+
+#endif